]> code.ossystems Code Review - openembedded-core.git/commit
autoconf: Adjust shebang lines to remove interpreter path hardcode
authorSerhii Popovych <spopovyc@cisco.com>
Fri, 31 Mar 2017 11:46:57 +0000 (11:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 Apr 2017 07:22:04 +0000 (08:22 +0100)
commit443d2d31732fa5700aa00ff020a0d79ab245c114
tree8b1bd40455c3d6b7801b002a4b33bceb739a3436
parent9e97ff174458f7245fc27a4c407f21a9d2e317ab
autoconf: Adjust shebang lines to remove interpreter path hardcode

If build host perl (and other tools) is old and we use some kind
of toolchain to provide recent perl/python/etc to the OE build
we still locked to use build host perl due to hardcoded shebang
lines in autoconf scripts.

Behaviour was observed with Enterprise Linux 6 and devtoolset
toolchain from SCL (Software Collections) used to provide recent
version of perl (not provided with default buildtools-tarball).

Pass /usr/bin/env perl in ac_cv_path_PERL configuration variables
for class-native and class-nativesdk. Use patch to autoconf to replace
-w option in shebang line with modern way to enable warnings on perl
(i.e. "use warnings").

Also add nativesdk-m4 and nativesdk-gnu-config to RDEPENDS to bring
runtime dependencies inline with other targets.

Note that ac_cv_path_PERL must be valid perl interpreter path
since configure will check perl version and Flock implementation.
It is not possible currently to use nativeperl from native
sysroot because autoconf does not DEPENDS on perl-native (and
doing so fails due to circular dependencies). Only possible
solution is to overwrite shebangs with nativeperl somewhere at
do_install() and update RDEPENDS for class-native. Or add perl
symlinks to nativeperl in sysroot.

For now it seems good to use perl found by /usr/bin/env from
autoconf-native.

Cc: XE-Linux <xe-linux-external@cisco.com>
Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/autoconf/autoconf.inc
meta/recipes-devtools/autoconf/autoconf/autoconf-replace-w-option-in-shebangs-with-modern-use-warnings.patch [new file with mode: 0644]
meta/recipes-devtools/autoconf/autoconf_2.69.bb