summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-03-12 13:11:14 -0700
committerKhem Raj <raj.khem@gmail.com>2019-03-14 07:24:03 -0700
commit9d8943fd2ec43868a1ca76712fd15dcc144f75ff (patch)
tree68909cd0d6afcafc83f952785e9dc7fea90c164e /meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch
parent0597e79805b0e7d51c292b3767f3b8d097daf8de (diff)
downloadmeta-openembedded-9d8943fd2ec43868a1ca76712fd15dcc144f75ff.tar.gz
klibc: Upgrade to 2.0.6 release
Drop staging related patches which are not needed anymore Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch b/meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch
new file mode 100644
index 0000000000..eac128cc09
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch
@@ -0,0 +1,25 @@
1Patch was imported from the OpenEmbedded git server
2(git://git.openembedded.org/openembedded)
3as of commit id 676cbb54d42c89a4832871064cfcb7ee2ad372ee
4
5klcc-cross: Add patch to use /usr/bin/env perl
6Certain configurations (such as autobuilders) may build in very
7deep paths (that are longer than the #! mechanism allows) which
8makes it unsafe to use the direct path for perl. In our case we know
9that /usr/bin/env perl will always return ours (if it has been built).
10
11Signed-off-by: Tom Rini <tom_rini@mentor.com>
12
13Index: klibc-1.5.20/klcc/makeklcc.pl
14===================================================================
15--- a/klcc/makeklcc.pl
16+++ b/klcc/makeklcc.pl
17@@ -26,7 +26,7 @@ sub pathsearch($) {
18 return undef;
19 }
20
21-print "#!${perlpath}\n";
22+print "#!/usr/bin/env perl\n";
23
24 open(KLIBCCONF, "< $klibcconf\0")
25 or die "$0: cannot open $klibcconf: $!\n";