All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] perl-native: Fix for when shebang is too many characters.
@ 2015-02-04 13:51 Jacob Stiffler
  2015-02-05 15:16 ` Denys Dmytriyenko
  0 siblings, 1 reply; 2+ messages in thread
From: Jacob Stiffler @ 2015-02-04 13:51 UTC (permalink / raw)
  To: meta-arago

* Currently perl-native is installing perl scripts with the
  absolute path to the native  perl interpreter in the shebang.
* Due to the directory structure of Yocto, this path may exceed
  the shebang character limit in bash.
* This is a workaround to get the correct perl interpreter from
  the environment.
* This solution has been obtained from:
  http://patchwork.openembedded.org/patch/79251/
* This may be dropped after migrating to dizzy as this has been
  upstreamed: http://cgit.openembedded.org/openembedded-core/commit/?id=83dec26849a120d0f1de64e63025354fa7108491

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 .../perl/perl-native_5.14.3.bbappend               |    9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/perl/perl-native_5.14.3.bbappend

diff --git a/meta-arago-extras/recipes-devtools/perl/perl-native_5.14.3.bbappend b/meta-arago-extras/recipes-devtools/perl/perl-native_5.14.3.bbappend
new file mode 100644
index 0000000..2b16416
--- /dev/null
+++ b/meta-arago-extras/recipes-devtools/perl/perl-native_5.14.3.bbappend
@@ -0,0 +1,9 @@
+
+PR_append = "a"
+
+do_install_append() {
+	for f in `grep -Il '#! *${bindir}/perl' ${D}/${bindir}/*`; do
+		sed -i -e 's|${bindir}/perl|/usr/bin/env nativeperl|' $f
+	done
+}
+
-- 
1.7.9.5



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

end of thread, other threads:[~2015-02-05 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-04 13:51 [PATCH v2] perl-native: Fix for when shebang is too many characters Jacob Stiffler
2015-02-05 15:16 ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.