From d29c44e8634e2e4ec19a01914edd8e4ad4954183 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 28 Aug 2014 16:05:50 +0200 Subject: [PATCH] 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 --- 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 dfde4e9fbf0..03588b1a238 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc @@ -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-* -- 2.47.2