From 8219bdf0a4b074be5de37222d8b9b73c1da2c3df Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 28 Aug 2014 16:05:50 +0200 Subject: dpkg-native: hardode SYSCONFDIR to /etc 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(+) (limited to 'meta') diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index d35982e651..76c4d4c980 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc @@ -39,6 +39,10 @@ DPKG_DEB_COMPRESSOR ?= "${@base_contains('PACKAGECONFIG', 'xz', 'xz', 'gzip', d) EXTRA_OECONF += "--sbindir=${base_sbindir} --with-dpkg-deb-compressor=${DPKG_DEB_COMPRESSOR}" +do_configure_prepend_class-native() { + sed -i -e 's|SYSCONFDIR|"/etc"|' ${S}/utils/update-alternatives.c +} + do_install_append_class-native() { sed -i -e 's|^#!${PERL}|#!/usr/bin/env nativeperl|' ${D}${bindir}/dpkg-* } -- cgit 1.2.3-korg