]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
dpkg-native: hardcode SYSCONFDIR to sysconfdir_native in update-alternatives
authorAndreas Oberritter <obi@opendreambox.org>
Thu, 28 Aug 2014 14:05:50 +0000 (16:05 +0200)
committerAndreas Oberritter <obi@opendreambox.org>
Mon, 7 May 2018 21:25:22 +0000 (23:25 +0200)
It needs to be relative to DPKG_INSTDIR when installing.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
meta/recipes-devtools/dpkg/dpkg.inc

index dfde4e9fbf02c0b84003160cbab60adaeac5541d..03588b1a238d99f80d87193b99e6704b696c045a 100644 (file)
@@ -44,6 +44,10 @@ PACKAGECONFIG[liblzma] = "--with-liblzma,--without-liblzma, xz"
 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_install_append () {
        if [ "${PN}" = "dpkg-native" ]; then
                sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env nativeperl|' ${D}${bindir}/dpkg-*