Pass CACHED_CONFIGUREVARS to configure to fix the following error:

ERROR: autoconf-2.13-native-2.13-r0 do_populate_sysroot: QA Issue: :
/work/x86_64-linux/autoconf-2.13-native/2.13/sysroot-destdir/work/x86_64-linux/autoconf-2.13-native/2.13/recipe-sysroot-native/usr/bin/autoscan213
 maximum shebang size exceeded, the maximum size is 128. [shebang-size]

Signed-off-by: Yi Zhao <[email protected]>
---
 .../autoconf-2.13/autoconf-2.13-native_2.13.bb           | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/meta-oe/recipes-devtools/autoconf-2.13/autoconf-2.13-native_2.13.bb 
b/meta-oe/recipes-devtools/autoconf-2.13/autoconf-2.13-native_2.13.bb
index d0e0446eb..be184da05 100644
--- a/meta-oe/recipes-devtools/autoconf-2.13/autoconf-2.13-native_2.13.bb
+++ b/meta-oe/recipes-devtools/autoconf-2.13/autoconf-2.13-native_2.13.bb
@@ -25,8 +25,11 @@ DEPENDS += "m4-native gnu-config-native"
 RDEPENDS:${PN} = "m4-native gnu-config-native"
 
 PERL = "${USRBINPATH}/perl"
+PERL:class-native = "/usr/bin/env perl"
 
-CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'"
+CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}' \
+                         ac_cv_path_M4=m4 \
+                        "
 
 CONFIGUREOPTS = " \
     --build=${BUILD_SYS} \
@@ -49,10 +52,8 @@ CONFIGUREOPTS = " \
     --disable-silent-rules \
 "
 
-EXTRA_OECONF += "ac_cv_path_M4=m4 ac_cv_prog_TEST_EMACS=no"
-
 do_configure() {
-    ./configure ${CONFIGUREOPTS}
+    ${CACHED_CONFIGUREVARS} ./configure ${CONFIGUREOPTS}
 }
 
 do_install() {
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#113749): 
https://lists.openembedded.org/g/openembedded-devel/message/113749
Mute This Topic: https://lists.openembedded.org/mt/109444395/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to