autoconf-nativesdk: fix builds on fedora 17
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 16 Apr 2012 09:15:58 +0000 (17:15 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Apr 2012 21:53:00 +0000 (22:53 +0100)
commit7a2d2677a5ab068b56e167c684872542e82e3903
treec5b2d0844335ea6e553033b79e897d0506e9128c
parent64292be5225db69f9f40b26d2e1fa62bb2a9ec3c
autoconf-nativesdk: fix builds on fedora 17

Generally distros keep perl at /usr/bin/perl
Fedora 17 also has /bin/perl

this causes autoconf-nativesdk build on such distros to put perl
interpreter path in the perl scripts as /bin/perl

But we set perl location for target as /usr/bin/perl

This mismatch of perl path causes failure of rootfs image creation
like this:

| error: Failed dependencies:
|       /bin/perl is needed by autoconf-nativesdk-2.68-r6.x86_64.rpm
NOTE: package meta-toolchain-gmae-1.0-r7: task do_populate_sdk: Failed

The second sed command is for such a case:

eval 'case $# in 0) exec /bin/perl -S "$0";; *) exec /bin/perl -S "$0" "$@";; esac'

This line has two "/bin/perl" and we can't use a line number to tell
sed which line it is since the line numbers in different files are
defferent.

[YOCTO #2304]

(From OE-Core rev: 393908e53b243b16ab984da7f073be371e062946)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/autoconf/autoconf.inc
meta/recipes-devtools/autoconf/autoconf_2.68.bb