[oe-commits] Tom Rini : klcc-cross: Add patch to use /usr/bin/env perl
git version control
git at git.openembedded.org
Thu Jan 6 00:17:46 UTC 2011
Module: openembedded.git
Branch: master
Commit: 676cbb54d42c89a4832871064cfcb7ee2ad372ee
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=676cbb54d42c89a4832871064cfcb7ee2ad372ee
Author: Tom Rini <tom_rini at mentor.com>
Date: Wed Jan 5 16:17:31 2011 -0700
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 at mentor.com>
---
recipes/klibc/klcc-cross_1.5.20.bb | 5 ++++-
recipes/klibc/klibc-1.5.20/use-env-for-perl.patch | 17 +++++++++++++++++
2 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/recipes/klibc/klcc-cross_1.5.20.bb b/recipes/klibc/klcc-cross_1.5.20.bb
index 6b6d74d..ef01449 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 0000000..8609864
--- /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";
More information about the Openembedded-commits
mailing list