summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2014-08-28 16:05:50 +0200
committerAndreas Oberritter <obi@opendreambox.org>2020-07-02 12:15:54 +0200
commit017fa4ea10965d3a7393aaab95b6b1fbd0dc5cb0 (patch)
tree70fa62eb9868bd96e09db51cbdf5162eceb3c56f /meta/recipes-devtools
parentcc7381d1c8aeca43aea9736d676c8bfe6ff1e8bf (diff)
downloadopenembedded-core-contrib-017fa4ea10965d3a7393aaab95b6b1fbd0dc5cb0.tar.gz
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 <obi@opendreambox.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc4
1 files changed, 4 insertions, 0 deletions
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-*