From b6b784d8a5c2a56a623f6165a7d2333a226a7f1a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 16 Apr 2019 03:26:58 -0500 Subject: Fix autoreconf failure due to automake calling host perl The host perl and the native perl may not always be compatible Make sure the naive perl is always called when autoreconf and friends are run --- meta/recipes-devtools/automake/automake_1.16.1.bb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meta/recipes-devtools') diff --git a/meta/recipes-devtools/automake/automake_1.16.1.bb b/meta/recipes-devtools/automake/automake_1.16.1.bb index 41008d3..fdfaba4 100644 --- a/meta/recipes-devtools/automake/automake_1.16.1.bb +++ b/meta/recipes-devtools/automake/automake_1.16.1.bb @@ -38,6 +38,14 @@ CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'" do_install_append () { install -d ${D}${datadir} + + # Use /usr/bin/env nativeperl for the perl script. + for i in aclocal aclocal-${NAMEVER} automake automake-${NAMEVER}; do + if [ -f ${D}${bindir}/$i ]; then + sed -i -e 's|/usr/bin/env perl|/usr/bin/perl-native/perl|' \ + ${D}${bindir}/$i + fi + done } BBCLASSEXTEND = "native nativesdk" -- cgit v1.1