Skip to contentSkip to conversation

vpnc: use nativeperl to run perl scripts

PATCH Applied [email protected] 2 participants 2 messages Oct 29, 2014 – Nov 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vpnc: use nativeperl to run perl scripts

From: Jackie Huang <[email protected]>

inhert perlnative and make sure we use nativeperl
to run perl scripts when compile.

fixed:
| ./makeman.pl
| Can't locate Fatal.pm in @INC

---
 meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb +7 -0
index 986416a..4efc412 100644
@@ -7,9 +7,16 @@ LICENSE = "GPL-2.0+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=173b74cb8ac640a9992c03f3bce22a33"
 DEPENDS = "libgcrypt"
 
+inherit perlnative
+
 CFLAGS_append = ' -DVERSION=\\"${PV}\\"'
 LDFLAGS_append = " -lgcrypt -lgpg-error"
 
+do_configure_append () {
+    # Make sure we use our nativeperl wrapper
+    sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl
+}
+
 do_install () {
     sed -i s:m600:m\ 600:g Makefile    
     oe_runmake 'DESTDIR=${D}' 'PREFIX=/usr' install
Signature · 1 line
2.0.0
#1 lore raw

Merged, thanks.
-J.

Quoted 38 lines · [[oe] [meta-networking][PATCH] vpnc: use nativeperl to run perl scripts] On…

From: Jackie Huang <[email protected]>

inhert perlnative and make sure we use nativeperl
to run perl scripts when compile.

fixed:
| ./makeman.pl
| Can't locate Fatal.pm in @INC

---
 meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb +7 -0
index 986416a..4efc412 100644
@@ -7,9 +7,16 @@ LICENSE = "GPL-2.0+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=173b74cb8ac640a9992c03f3bce22a33"
 DEPENDS = "libgcrypt"
 
+inherit perlnative
+
 CFLAGS_append = ' -DVERSION=\\"${PV}\\"'
 LDFLAGS_append = " -lgcrypt -lgpg-error"
 
+do_configure_append () {
+    # Make sure we use our nativeperl wrapper
+    sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl
+}
+
 do_install () {
     sed -i s:m600:m\ 600:g Makefile    
     oe_runmake 'DESTDIR=${D}' 'PREFIX=/usr' install
Signature · 1 line
2.0.0
Signature · 2 lines
-Joe MacDonald.
:wq