aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2014-08-28 16:04:21 +0200
committerAndreas Oberritter <obi@opendreambox.org>2018-05-07 23:25:22 +0200
commit48eca3179bcca03e070b63e4f2b141380be0de4e (patch)
treee04704fe1429bea9de7fc8b12e16a79a79ee441b
parent597f57f42767660c48dbf5a601cfcc9079bfeae8 (diff)
downloadopenembedded-core-contrib-48eca3179bcca03e070b63e4f2b141380be0de4e.tar.gz
dpkg: simplify replacing perl interpreter in scripts
Target scripts already contain the correct value. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index d172f19a5a..3453244a6c 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -47,13 +47,11 @@ 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-*
- else
- sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env perl|' ${D}${bindir}/dpkg-*
- fi
+do_install_append_class-native() {
+ sed -i -e 's|^#!${PERL}|#!/usr/bin/env nativeperl|' ${D}${bindir}/dpkg-*
+}
+do_install_append () {
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)};then
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/dpkg-configure.service ${D}${systemd_unitdir}/system/