diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-08-27 22:40:05 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-28 15:12:43 +0100 |
commit | 89a2b841c11717b9da786405ceb1b593f199860f (patch) | |
tree | 9f4739f75b42c033303523de875d33e71d42a958 | |
parent | 38dbebfc130d3922b16b2e88a118619dcc2a0f2e (diff) | |
download | poky-89a2b841c11717b9da786405ceb1b593f199860f.tar.gz |
perl-native: fixed bad interpreter error
We may get the error on some hosts when build in deeper dir:
/bin/sh: /path/to/tmp/sysroots/i686-linux/usr/bin/perl-native/pod2man: /path/to/tmp/sysroots/i686-li:
bad interpreter: No such file or directory
Note the "i686-li", it should be "i686-linux", but is truncated by the
host.
We can use "/usr/bin/env nativeperl" as we have done in cpan.bbclass for
other recipe's perl script to fix the problem.
(From OE-Core rev: 83dec26849a120d0f1de64e63025354fa7108491)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/perl/perl-native_5.20.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-native_5.20.0.bb b/meta/recipes-devtools/perl/perl-native_5.20.0.bb index 4364d41b35..069696ae0c 100644 --- a/meta/recipes-devtools/perl/perl-native_5.20.0.bb +++ b/meta/recipes-devtools/perl/perl-native_5.20.0.bb | |||
@@ -105,6 +105,11 @@ do_install () { | |||
105 | 105 | ||
106 | create_wrapper ${D}${bindir}/perl PERL5LIB='$PERL5LIB:${STAGING_LIBDIR}/perl/${PV}:${STAGING_LIBDIR}/perl/' | 106 | create_wrapper ${D}${bindir}/perl PERL5LIB='$PERL5LIB:${STAGING_LIBDIR}/perl/${PV}:${STAGING_LIBDIR}/perl/' |
107 | create_wrapper ${D}${bindir}/perl${PV} PERL5LIB='$PERL5LIB:${STAGING_LIBDIR}/perl/${PV}:${STAGING_LIBDIR}/perl/' | 107 | create_wrapper ${D}${bindir}/perl${PV} PERL5LIB='$PERL5LIB:${STAGING_LIBDIR}/perl/${PV}:${STAGING_LIBDIR}/perl/' |
108 | |||
109 | # Use /usr/bin/env nativeperl for the perl script. | ||
110 | for f in `grep -Il '#! *${bindir}/perl' ${D}/${bindir}/*`; do | ||
111 | sed -i -e 's|${bindir}/perl|/usr/bin/env nativeperl|' $f | ||
112 | done | ||
108 | } | 113 | } |
109 | 114 | ||
110 | SYSROOT_PREPROCESS_FUNCS += "perl_sysroot_create_wrapper" | 115 | SYSROOT_PREPROCESS_FUNCS += "perl_sysroot_create_wrapper" |