summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/dpkg/dpkg.inc
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-06-12 17:21:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-13 17:37:58 +0100
commitc4f987239fe78783d732df673a5e592bb05a877d (patch)
tree1e84a8ad6ddf7974535d840953ce2c859ae236a3 /meta/recipes-devtools/dpkg/dpkg.inc
parentdb13f10d233873148156880ab709ec76f8d3c329 (diff)
downloadopenembedded-core-c4f987239fe78783d732df673a5e592bb05a877d.tar.gz
openembedded-core-c4f987239fe78783d732df673a5e592bb05a877d.tar.bz2
openembedded-core-c4f987239fe78783d732df673a5e592bb05a877d.zip
dpkg: drop the usage of create_wrapper
create_wrapper was previously abused to invoke the Perl interpretter directly instead of relying on #! parsing, which is read into a 128 byte buffer so breaks with deep build directories. However we already install a "nativeperl" binary into the native sysroot, so use sed to change the #! line to /usr/bin/env nativeperl. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc10
1 files changed, 1 insertions, 9 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 28c4f89d5c..b9d4da18f3 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -45,21 +45,13 @@ do_install_append () {
if [ "${PN}" = "dpkg-native" ]; then
# update-alternatives doesn't have an offline mode
rm ${D}${bindir}/update-alternatives
+ sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env nativeperl|' ${D}${bindir}/dpkg-*
else
mv ${D}${bindir}/update-alternatives ${D}${sbindir}
sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env perl|' ${D}${bindir}/dpkg-*
fi
}
-# Create a wrapper for the perl script to avoid the "bad interpreter"
-# error when the tmpdir is longer than 150.
-do_install_append_class-native () {
- tmp=`find ${D}${bindir} -type f -exec grep -m 1 -l '#!/.*/perl-native/perl' {} \;`
- for i in $tmp; do
- create_wrapper $i ${STAGING_BINDIR_NATIVE}/perl-native/perl
- done
-}
-
pkg_postinst_${PN} () {
#!/bin/sh
if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then