* [meta-networking][PATCH] vpnc: use nativeperl to run perl scripts
@ 2014-10-29 5:23 jackie.huang
2014-11-04 21:28 ` Joe MacDonald
0 siblings, 1 reply; 2+ messages in thread
From: jackie.huang @ 2014-10-29 5:23 UTC (permalink / raw)
To: openembedded-devel
From: Jackie Huang <jackie.huang@windriver.com>
inhert perlnative and make sure we use nativeperl
to run perl scripts when compile.
fixed:
| ./makeman.pl
| Can't locate Fatal.pm in @INC
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
index 986416a..4efc412 100644
--- a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
+++ b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
@@ -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
--
2.0.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-networking][PATCH] vpnc: use nativeperl to run perl scripts
2014-10-29 5:23 [meta-networking][PATCH] vpnc: use nativeperl to run perl scripts jackie.huang
@ 2014-11-04 21:28 ` Joe MacDonald
0 siblings, 0 replies; 2+ messages in thread
From: Joe MacDonald @ 2014-11-04 21:28 UTC (permalink / raw)
To: jackie.huang; +Cc: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1437 bytes --]
Merged, thanks.
-J.
[[oe] [meta-networking][PATCH] vpnc: use nativeperl to run perl scripts] On 14.10.29 (Wed 01:23) jackie.huang@windriver.com wrote:
> From: Jackie Huang <jackie.huang@windriver.com>
>
> inhert perlnative and make sure we use nativeperl
> to run perl scripts when compile.
>
> fixed:
> | ./makeman.pl
> | Can't locate Fatal.pm in @INC
>
> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
> ---
> meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
> index 986416a..4efc412 100644
> --- a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
> +++ b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb
> @@ -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
> --
> 2.0.0
>
--
-Joe MacDonald.
:wq
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 501 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-04 21:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 5:23 [meta-networking][PATCH] vpnc: use nativeperl to run perl scripts jackie.huang
2014-11-04 21:28 ` Joe MacDonald
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.