Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] dpkg 1.15.8.7: bad interpreter when long tmpdir
@ 2012-07-04 10:15 Robert Yang
  2012-07-04 10:15 ` [PATCH 1/1] " Robert Yang
  2012-07-05 17:28 ` [PATCH 0/1] " Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2012-07-04 10:15 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

The following changes since commit a6b6df1350149c116050cb93c3c7b4802c709d31:

  task-core-tools-debug: Added openssh-sftp-server. (2012-07-03 14:52:38 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib robert/dpkg
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/dpkg

Robert Yang (1):
  dpkg 1.15.8.7: bad interpreter when long tmpdir

 meta/recipes-devtools/dpkg/dpkg.inc |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] dpkg 1.15.8.7: bad interpreter when long tmpdir
  2012-07-04 10:15 [PATCH 0/1] dpkg 1.15.8.7: bad interpreter when long tmpdir Robert Yang
@ 2012-07-04 10:15 ` Robert Yang
  2012-07-05 17:28 ` [PATCH 0/1] " Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2012-07-04 10:15 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

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>
---
 meta/recipes-devtools/dpkg/dpkg.inc |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 09bfbbc..7f4f620 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 = ""
 
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] dpkg 1.15.8.7: bad interpreter when long tmpdir
  2012-07-04 10:15 [PATCH 0/1] dpkg 1.15.8.7: bad interpreter when long tmpdir Robert Yang
  2012-07-04 10:15 ` [PATCH 1/1] " Robert Yang
@ 2012-07-05 17:28 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-07-05 17:28 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao

On 07/04/2012 03:15 AM, Robert Yang wrote:
> The following changes since commit a6b6df1350149c116050cb93c3c7b4802c709d31:
>
>    task-core-tools-debug: Added openssh-sftp-server. (2012-07-03 14:52:38 +0100)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib robert/dpkg
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/dpkg
>
> Robert Yang (1):
>    dpkg 1.15.8.7: bad interpreter when long tmpdir
>
>   meta/recipes-devtools/dpkg/dpkg.inc |   11 ++++++++++-
>   1 files changed, 10 insertions(+), 1 deletions(-)
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>

Merged into OE-Core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-05 17:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-04 10:15 [PATCH 0/1] dpkg 1.15.8.7: bad interpreter when long tmpdir Robert Yang
2012-07-04 10:15 ` [PATCH 1/1] " Robert Yang
2012-07-05 17:28 ` [PATCH 0/1] " Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox