aboutsummaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/klibc-1.5.26/use-env-for-perl.patch
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2012-05-03 22:30:51 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-05-10 16:38:13 +0200
commit32d316edae416b88159472a3b4f904a830090000 (patch)
tree401a180f31a56e32121e121fae37b0042805a07b /meta-initramfs/recipes-devtools/klibc/klibc-1.5.26/use-env-for-perl.patch
parent1beefee9cd3fb01def4af8131d65291b4cd83c28 (diff)
downloadmeta-openembedded-contrib-32d316edae416b88159472a3b4f904a830090000.tar.gz
klibc: upgrade from 1.5.25 to 1.5.26
* minor updates, still waiting for release 2.0 * v2 adds another (sometimes) missing header Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc-1.5.26/use-env-for-perl.patch')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-1.5.26/use-env-for-perl.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-1.5.26/use-env-for-perl.patch b/meta-initramfs/recipes-devtools/klibc/klibc-1.5.26/use-env-for-perl.patch
new file mode 100644
index 0000000000..eac128cc09
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-1.5.26/use-env-for-perl.patch
@@ -0,0 +1,25 @@
+Patch was imported from the OpenEmbedded git server
+(git://git.openembedded.org/openembedded)
+as of commit id 676cbb54d42c89a4832871064cfcb7ee2ad372ee
+
+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 <tom_rini@mentor.com>
+
+Index: klibc-1.5.20/klcc/makeklcc.pl
+===================================================================
+--- a/klcc/makeklcc.pl
++++ b/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";