Bug 3099

Summary: LSB 4.1: perl test ../lib/Config.t 435 fails
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Kai Kang <kai.kang>
Component: coreAssignee: Kai Kang <kai.kang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: kai.kang, meta.mr.watcher, meta.watcher, sstncr, tom.zanussi, yi.zhao, zhenfeng.zhao
Version: 1.3   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: (Patch Merged)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Kai Kang 2012-09-13 06:50:42 UTC
run single test
# ./single_test ../lib/Config.t
...
not ok 162 - Expect archlibexp '/usr/lib/perl/5.14.2/' to be in @INC
...

So check the @INC
# perl -V
...
  @INC:
    /etc/perl
    /usr/lib/perl/site_perl/5.14.2/
    /usr/lib/perl/site_perl/5.14.2
    /usr/lib/perl/vendor_perl/5.14.2/
    /usr/lib/perl/vendor_perl/5.14.2
    /mnt/sda10/poky-all-platform/build-ppc/tmp/sysroots/mpc8315e-rdb/usr/lib/perl/5.14.2/
    /usr/lib/perl/5.14.2
    /usr/local/lib/site_perl
    /usr/lib/perl/5.14.2
    .

It shows that host dir is involved in perl @INC, and revert 
Yocto commit aeca6512f3a5468b8f65e2986024ab07d2ce45b4 
perl: use @STAGINGDIR@ in config.sh

could fix this issue.
Comment 1 Kai Kang 2012-09-19 08:36:40 UTC
x86 is ok, fails on ppc.
Comment 2 Kai Kang 2012-10-11 02:07:16 UTC
Patch from Tom Zanussi is merged as Yocto commit d38325cbcad40d2fa0c60e2a7f2afd72bd97a455.
Comment 3 Stefan Stanacar 2012-11-07 13:44:45 UTC
Hi Kai

I can confirm this is Verified on x86, but can you verifiy on ppc? I don't have hw to test...
Comment 4 Yi Zhao 2012-11-08 02:11:11 UTC
Verified. Both on x86 and ppc.