Skip to contentSkip to conversation

dpkg-native: Fix the admindir location.

PATCH New Filip Zyzniewski 1 participant 1 message Feb 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dpkg-native: Fix the admindir location.

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"

---
 recipes/dpkg/dpkg-native.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
recipes/dpkg/dpkg-native.inc +1 -0
index a230f29..f7b243c 100644
@@ -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() {
Signature · 1 line
1.7.1