generic-poky/meta/recipes-devtools/autoconf/autoconf
Serhii Popovych e44946bff1 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>
(From OE-Core rev: 443d2d31732fa5700aa00ff020a0d79ab245c114)

Signed-off-by: Serhii Popovych <spopovyc@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-01 23:28:20 +01:00
..
AC_HEADER_MAJOR-port-to-glibc-2.25.patch autoconf: Fix AC_HEADER_MAJOR with glibc 2.25 2016-12-20 15:22:16 +00:00
add_musl_config.patch autoconf: Add musl support 2015-12-12 23:42:54 +00:00
autoconf-replace-w-option-in-shebangs-with-modern-use-warnings.patch autoconf: Adjust shebang lines to remove interpreter path hardcode 2017-04-01 23:28:20 +01:00
autoreconf-exclude.patch autoconf: upgrade from 2.65 to 2.68 2011-06-06 15:58:39 +01:00
autoreconf-gnuconfigize.patch autoconf: upgrade from 2.65 to 2.68 2011-06-06 15:58:39 +01:00
autotest-automake-result-format.patch autoconf: new autotest/testsuite option to enable automake test result format 2014-03-30 10:10:32 +01:00
check-automake-cross-warning.patch autoconf: use --warning=cross only if supported 2012-09-10 13:01:51 +01:00
config_site.patch autoconf: upgrade from 2.65 to 2.68 2011-06-06 15:58:39 +01:00
fix_path_xtra.patch autoconf: upgrade from 2.65 to 2.68 2011-06-06 15:58:39 +01:00
performance.patch autoconf: Disable macro which causes excessive delays when using dash as sh 2015-12-14 22:30:56 +00:00
preferbash.patch python3/gcc/autoconf: Fix Upstream-Status in some patches I authored 2014-05-07 15:14:34 +01:00
program_prefix.patch autoconf: upgrade from 2.65 to 2.68 2011-06-06 15:58:39 +01:00
remove-usr-local-lib-from-m4.patch autoconf: Remove code checking for hardcoded /usr/local 2011-08-05 17:16:00 +01:00