dpkg 1.15.8.7: bad interpreter when long tmpdir
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 4 Jul 2012 10:15:54 +0000 (18:15 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Jul 2012 15:01:32 +0000 (16:01 +0100)
commit0d5b593ed65fbd33d2b4d978bf8c48da7713aee7
tree5fe80fb76d8e742371e2364c6c72e10dd9165b69
parentbe716d5e8f46812c3885959243b9c7c0b773a894
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]

(From OE-Core rev: 7d3281be18567207de8ce2cabce03957bf2cbca8)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/dpkg/dpkg.inc