dpkg-native: Fix the admindir location.
authorFilip Zyzniewski <filip.zyzniewski@gmail.com>
Mon, 7 Feb 2011 02:00:35 +0000 (02:00 +0000)
committerTom Rini <tom_rini@mentor.com>
Tue, 8 Feb 2011 14:20:15 +0000 (07:20 -0700)
Until now the admindir was specified as $STAGING_DIR_NATIVE/var/dpkg,
which caused update-alternatives to put alternative definitions there.
This patch causes the definitions to be put into the host's rootfs
during rootfs_deb_do_rootfs (when running busybox postinst for
example).

resulting line in Dpkg.pm: our $admindir="$ENV{D}/var/dpkg"

Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/dpkg/dpkg-native.inc

index a230f29..f7b243c 100644 (file)
@@ -18,6 +18,7 @@ EXTRA_OECONF = "--without-static-progs \
                --with-zlib \
                --with-bz2lib \
                --without-selinux \
+               --with-admindir='\$\$$ENV{D}/var/dpkg' \
                --without-sgml-doc"
 
 do_stage_append() {