perl-native: fixed bad interpreter error
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 28 Aug 2014 05:40:05 +0000 (22:40 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Aug 2014 14:12:43 +0000 (15:12 +0100)
commitc9cc76c2b75423fbeaccbea43bd0ef1164c63157
tree94cbf6a2fc6102d224e663217aed18faa9f22d02
parent378e2abd597be2d0f11c75f641689854b5fac58b
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>
meta/recipes-devtools/perl/perl-native_5.20.0.bb