diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2014-08-28 16:05:50 +0200 |
---|---|---|
committer | Andreas Oberritter <obi@opendreambox.org> | 2018-05-07 23:25:22 +0200 |
commit | d29c44e8634e2e4ec19a01914edd8e4ad4954183 (patch) | |
tree | b93858bdf232110ddc95fe11e9ebe9116db0604f /meta | |
parent | e2eee03768e66519182c56f1293e0afbd68c0d60 (diff) | |
download | openembedded-core-contrib-d29c44e8634e2e4ec19a01914edd8e4ad4954183.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')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index dfde4e9fbf..03588b1a23 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-* |