From: Andreas Oberritter Date: Thu, 28 Aug 2014 14:05:50 +0000 (+0200) Subject: dpkg-native: hardcode SYSCONFDIR to sysconfdir_native in update-alternatives X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=017fa4ea10965d3a7393aaab95b6b1fbd0dc5cb0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git dpkg-native: hardcode SYSCONFDIR to sysconfdir_native in update-alternatives It needs to be relative to DPKG_INSTDIR when installing. Signed-off-by: Andreas Oberritter --- diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index 866b2b02e09..817a9f7252f 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc @@ -37,6 +37,10 @@ EXTRA_OECONF_append_class-target = " --disable-update-alternatives DEB_HOST_ARCH PACKAGECONFIG = "liblzma" PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz" +do_configure_prepend_class-native() { + sed -i -e 's|SYSCONFDIR|"${sysconfdir_native}"|' ${S}/utils/update-alternatives.c +} + do_install_append () { if [ "${PN}" = "dpkg-native" ]; then sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env nativeperl|' ${D}${bindir}/dpkg-*