Bug 1298

Summary: [deb]: 'do_rootfs' failed: core-image-sato-sdk.bb - Can't locate Dpkg/Compression/FileHandle.pm in @INC
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Wenzong.Fan <wenzong.fan>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dexuan.cui, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard: Plan for fix by end of August (03-Aug-2011)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 1070    

Description Wenzong.Fan 2011-07-27 23:34:28 UTC
Can't locate Dpkg/Compression/FileHandle.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/wenzong/sdb2/builds/1070/tmp/sysroots/x86_64-linux/usr/bin/dpkg-scanpackages line 31.
BEGIN failed--compilation aborted at /home/wenzong/sdb2/builds/1070/tmp/sysroots/x86_64-linux/usr/bin/dpkg-scanpackages line 31.
Can't locate Dpkg/Compression/FileHandle.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/wenzong/sdb2/builds/1070/tmp/sysroots/x86_64-linux/usr/bin/dpkg-scanpackages line 31.
BEGIN failed--compilation aborted at /home/wenzong/sdb2/builds/1070/tmp/sysroots/x86_64-linux/usr/bin/dpkg-scanpackages line 31.
Can't locate Dpkg/Compression/FileHandle.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/wenzong/sdb2/builds/1070/tmp/sysroots/x86_64-linux/usr/bin/dpkg-scanpackages line 31.
BEGIN failed--compilation aborted at /home/wenzong/sdb2/builds/1070/tmp/sysroots/x86_64-linux/usr/bin/dpkg-scanpackages line 31.
Ign file: ./ Release.gpg
Ign file: ./ Release.gpg
Ign file: ./ Release.gpg
Get:1 file: ./ Release [15B]
Get:2 file: ./ Release [15B]
Get:3 file: ./ Release [11B]
Reading package lists...
Reading package lists...
Building dependency tree...
E: Couldn't find package glibc-localedata-i18n
ERROR: Function 'do_rootfs' failed (see /home/wenzong/sdb2/builds/1070/tmp/work/qemuarm-poky-linux-gnueabi/core-image-sato-sdk-1.0-r0/temp/log.do_rootfs.21889 for further information)
Comment 1 Wenzong.Fan 2011-07-29 01:00:36 UTC
Two issues here:
1) dpkg-scanpackages was calling perl on local host instead of perl-native;
2) The perl module 'Dpkg' is not in a searchable path for perl-native:
    .../tmp/sysroots/x86_64-linux/usr/share/perl5

This path should be added to $PERL5LIB and @INC.
Comment 2 Saul Wold 2011-08-10 20:00:32 UTC
Fixed, but I think I think hit 1070, which is being worked on.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3a0942ec51e537befb86c5e2fe771e771d54fe59