[oe] package_deb and update-alteernatives-dpkg-native on amd64 fails

Michael Westermann michael at awek-microdata.de
Fri Apr 30 07:01:35 UTC 2010


Hi,

I use openembeeded too make a short distro for our embedded boards. We
use a arm mx27 cpu. The Host system is a amd64 debian sid linux.
I use the git version from openembedded-dev.

I've the follow mistake/problem, on the rootfs the update-alternatives
dont work. I get the foolow messages:

Can't locate dpkg-gettext.pl 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 . ../usr/lib/dpkg) at
/opt/oe/platform/cwmx27-awek-smartstorage-rel1/staging/x86_64-linux/usr/sbin/update-alternatives
line 7.

/opt/oe/platform/rel1/staging/x86_64-linux/usr/sbin/update-alternatives 

in /usr/sbin/update-alternatives are the

$admindir= "/var/lib/dpkg"; 
$dpkglibdir= "/usr/lib/dpkg";

but this is are paths from the host-system, the location from
dpkg-gettext.pl is:

/opt/oe/platform/rel1/staging/x86_64-linux/usr/lib/dpkg/dpkg-gettext.pl

How can I set the correct this paths?

I've test different versions from update-alternatives-dpkg-native e.g.

PREFERRED_VERSION_update-alternatives-native = "1.13.22"
PREFERRED_VERSION_dpkg-native = "1.13.22"

Michael




More information about the Openembedded-devel mailing list