[oe] [meta-networking][PATCH] vpnc: use nativeperl to run perl scripts

Joe MacDonald Joe_MacDonald at mentor.com
Tue Nov 4 21:28:37 UTC 2014


Merged, thanks.
-J.

[[oe] [meta-networking][PATCH] vpnc: use nativeperl to run perl scripts] On 14.10.29 (Wed 01:23) jackie.huang at windriver.com wrote:

> From: Jackie Huang <jackie.huang at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20141104/f765a12f/attachment-0002.sig>


More information about the Openembedded-devel mailing list