From 017fa4ea10965d3a7393aaab95b6b1fbd0dc5cb0 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 28 Aug 2014 16:05:50 +0200 Subject: 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 866b2b02e0..817a9f7252 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-* -- cgit 1.2.3-korg