Bug 1157

Summary: perl-native is not relocatable with sstate
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Dexuan Cui <dexuan.cui>
Component: coreAssignee: Wenzong.Fan <wenzong.fan>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: kevin.tian, meta.mr.watcher, meta.watcher, nitin.a.kamble, richard.purdie, sgw, yi.zhao
Version: unspecified   
Target Milestone: 1.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Dexuan Cui 2011-06-09 23:11:41 UTC
I found this issue when I used 
commit 7f34cd1eb2a459709006ae985a14decd4d2152e6
Date:   Fri Jun 3 14:57:17 2011 -0700
(so the perl-native change is not there)

How to reproduce the issue:
1) I "bitbake perl-native" in /poky.git/build/;
2) mv /poky.git/build /poky.git/build.bak;
3) in /poky.git/build2/, modify the conf/local.conf to set SSTATE_MIRRORS to point to /poky.git/build.bak/sstate-cache/, and "bitbake sgmlspl-native" would fail in do_compile:
"Can't locate ExtUtils/Command.pm in @INC (@INC contains: /poky.git/build/tmp/sysroots/i686-linux/usr/lib/perl/5.12.3 /poky.git/build/tmp/sysroots/i686-linux/usr/lib/perl/5.12.3 /poky.git/build/tmp/sysroots/i686-"linux/usr/lib/perl/5.12.3"

Is this an existing bug? 

[Comments from RP]:
Looks like it. This did work but it looks like its been broken
somehow :(
Comment 1 Dexuan Cui 2011-06-19 19:06:05 UTC
looks this is a duplicate of bug 829.
Comment 2 Nitin Kamble 2011-08-09 17:23:46 UTC
Assigning it to wenzong.fan@windriver.com as he is the owner of 829, which is duplicate of this bug.
Comment 3 Wenzong.Fan 2011-08-12 00:50:18 UTC
This is a common issue to the packages which using 'MakeMaker.pm' to generate their Makefiles. The function 'find_perl()' in 'MM_Unix.pm' will be used to figure out the path of 'PERL/FULLPERL', but it always find the 'perl.real' instead of perl wrapper. Patch to 'find_perl()' would fix this issue.
Comment 4 Wenzong.Fan 2011-08-20 01:54:17 UTC
Fix has been merged
Comment 5 Wenzong.Fan 2011-08-20 01:56:15 UTC
*** Bug 829 has been marked as a duplicate of this bug. ***
Comment 6 Wenzong.Fan 2011-08-29 19:59:51 UTC
The commit id for this fix is:
    d66c0672a4a9fef298d52d9ce2eac70caefbf685
Comment 7 Yi Zhao 2011-08-29 20:31:45 UTC
Verified with latest master branch.
git info: 6c2b7beac3cd23ed44bd3e195c6360a0932876bf