Skip to contentSkip to conversation

suricata: run whole autotools_do_configure not just oe_runconf

PATCH New Martin Jansa 1 participant 1 message Sep 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 suricata: run whole autotools_do_configure not just oe_runconf

Otherwise Makefile isn't regenerated and do_compile fails with:
suricata/7.0.0/suricata-7.0.0/missing: line 81: aclocal-1.16: command not found after automake upgrade from 1.16.5 to 1.17 from:
https://git.openembedded.org/openembedded-core/commit/?id=b98328a6ff07119e7ba4f1072090d789e69edef8

Fixes:

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash 'TOPDIR/BUILD/work/mach-distro-linux/suricata/7.0.0/suricata-7.0.0/missing' aclocal-1.16 -I m4 TOPDIR/BUILD/work/mach-distro-linux/suricata/7.0.0/suricata-7.0.0/missing: line 81: aclocal-1.16: command not found
WARNING: 'aclocal-1.16' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<https://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<https://www.gnu.org/software/autoconf>
<https://www.gnu.org/software/m4/>
<https://www.perl.org/>
make: *** [Makefile:465: aclocal.m4] Error 127

---
 recipes-ids/suricata/suricata_7.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-ids/suricata/suricata_7.0.0.bb +1 -1
index 9795e95..6e6c426 100644
@@ -68,7 +68,7 @@ do_configure:prepend () {
     # use host for RUST_SURICATA_LIB_XC_DIR
     sed -i -e 's,\${host_alias},${RUST_HOST_SYS},' ${S}/configure.ac
     sed -i -e 's,libsuricata_rust.a,libsuricata.a,' ${S}/configure.ac
-    oe_runconf
+    autotools_do_configure
 }
 
 CFLAGS += "-Wno-error=incompatible-pointer-types"
Signature · 1 line
2.46.0