diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2014-08-28 16:05:50 +0200 |
---|---|---|
committer | Andreas Oberritter <obi@opendreambox.org> | 2015-02-23 17:15:51 +0100 |
commit | 8219bdf0a4b074be5de37222d8b9b73c1da2c3df (patch) | |
tree | 5036eed1f4f477bc4d8f5f207da9adb41b575642 | |
parent | df7aec18f2c6c89e09c8dbca1c757ea794b70869 (diff) | |
download | openembedded-core-contrib-8219bdf0a4b074be5de37222d8b9b73c1da2c3df.tar.gz |
dpkg-native: hardode SYSCONFDIR to /etc in update-alternatives
It needs to be relative to DPKG_INSTDIR when installing.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
-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 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-* } |