[OE-core] [PATCH v2 03/33] dpkg-native: hardcode SYSCONFDIR to sysconfdir_native in update-alternatives

Andreas Oberritter obi at opendreambox.org
Thu Dec 8 21:47:27 UTC 2016


It needs to be relative to DPKG_INSTDIR when installing.

Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
---
 v2: Use ${sysconfdir_native} instead of /etc.

 meta/recipes-devtools/dpkg/dpkg.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 2285f23..4fd0f2a 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -42,6 +42,10 @@ EXTRA_OECONF = "\
 EXTRA_OECONF += "TAR=tar"
 EXTRA_OECONF_append_class-target = " DEB_HOST_ARCH=${DPKG_ARCH}"
 
+do_configure_prepend_class-native() {
+    sed -i -e 's|SYSCONFDIR|"${sysconfdir_native}"|' ${S}/utils/update-alternatives.c
+}
+
 do_configure () {
     echo >> ${S}/m4/compiler.m4
     sed -i -e 's#PERL_LIBDIR=.*$#PERL_LIBDIR="${libdir}/perl"#' ${S}/configure
-- 
2.7.4




More information about the Openembedded-core mailing list