Bug 1298 - [deb]: 'do_rootfs' failed: core-image-sato-sdk.bb - Can't locate Dpkg/Compression/FileHandle.pm in @INC
Summary: [deb]: 'do_rootfs' failed: core-image-sato-sdk.bb - Can't locate Dpkg/Compres...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard: Plan for fix by end of August (03-Aug...
Depends on:
Blocks: 1070
  Show dependency tree
 
Reported: 2011-07-27 23:34 UTC by Wenzong.Fan
Modified: 2011-08-10 20:00 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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