From: Tom Rini Date: Wed, 5 Jan 2011 23:17:31 +0000 (-0700) Subject: klcc-cross: Add patch to use /usr/bin/env perl X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=676cbb54d42c89a4832871064cfcb7ee2ad372ee;p=openembedded.git klcc-cross: Add patch to use /usr/bin/env perl Certain configurations (such as autobuilders) may build in very deep paths (that are longer than the #! mechanism allows) which makes it unsafe to use the direct path for perl. In our case we know that /usr/bin/env perl will always return ours (if it has been built). Signed-off-by: Tom Rini --- diff --git a/recipes/klibc/klcc-cross_1.5.20.bb b/recipes/klibc/klcc-cross_1.5.20.bb index 6b6d74d3b2..ef0144905c 100644 --- a/recipes/klibc/klcc-cross_1.5.20.bb +++ b/recipes/klibc/klcc-cross_1.5.20.bb @@ -1,7 +1,10 @@ -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" require klibc.inc require klibc-checksums_${PV}.inc + +SRC_URI += "file://use-env-for-perl.patch" + DEPENDS = "klibc" FILESPATHPKG =. "klibc-${PV}:" diff --git a/recipes/klibc/klibc-1.5.20/use-env-for-perl.patch b/recipes/klibc/klibc-1.5.20/use-env-for-perl.patch new file mode 100644 index 0000000000..8609864251 --- /dev/null +++ b/recipes/klibc/klibc-1.5.20/use-env-for-perl.patch @@ -0,0 +1,17 @@ +--- + klcc/makeklcc.pl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: klibc-1.5.20/klcc/makeklcc.pl +=================================================================== +--- klibc-1.5.20.orig/klcc/makeklcc.pl ++++ klibc-1.5.20/klcc/makeklcc.pl +@@ -26,7 +26,7 @@ sub pathsearch($) { + return undef; + } + +-print "#!${perlpath}\n"; ++print "#!/usr/bin/env perl\n"; + + open(KLIBCCONF, "< $klibcconf\0") + or die "$0: cannot open $klibcconf: $!\n";