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)
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.
Fixed, but I think I think hit 1070, which is being worked on. http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3a0942ec51e537befb86c5e2fe771e771d54fe59