summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-07-04 18:15:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-05 14:23:44 +0100
commit7d3281be18567207de8ce2cabce03957bf2cbca8 (patch)
treea599ba6ded8296b95c68773d248a864c549a6f6a /meta/recipes-devtools
parent5beb7176d361d4bfa279bbfab5a17b8fe4fa3b73 (diff)
downloadopenembedded-core-7d3281be18567207de8ce2cabce03957bf2cbca8.tar.gz
openembedded-core-7d3281be18567207de8ce2cabce03957bf2cbca8.tar.bz2
openembedded-core-7d3281be18567207de8ce2cabce03957bf2cbca8.zip
dpkg 1.15.8.7: bad interpreter when long tmpdir
When use PACKAGE_CLASSES = "package_deb", and the length of tmpdir is longer than 177, the error occurs during the image generation: /very/long/path/totmp/sysroots/x86_64-linux/usr/bin/dpkg-scanpackages: bad interpreter: No such file or directory The interpreter is perl, and it does exist, this is because the first line: #!/very/long/path/to/perl in the script can't be very long. Create a wrapper for it would fix the problem. [YOCTO #2640] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 09bfbbcd09..7f4f620783 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -2,7 +2,7 @@ DESCRIPTION = "Package maintenance system for Debian."
LICENSE = "GPLv2.0+"
SECTION = "base"
-INC_PR = "r16"
+INC_PR = "r17"
SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2 \
file://ignore_extra_fields.patch"
@@ -56,6 +56,15 @@ do_install_append () {
fi
}
+# Create a wrapper for the perl script to avoid the "bad interpreter"
+# error when the tmpdir is longer than 150.
+do_install_append_virtclass-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
+}
+
PROV = "virtual/update-alternatives"
PROV_virtclass-native = ""