Skip to contentSkip to conversation

ntop: Pass PYTHON and PYTHON_CONFIG to configure

PATCH Superseded Khem Raj 1 participant 1 message Jan 23, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 ntop: Pass PYTHON and PYTHON_CONFIG to configure

This aids cross-building, otherwise configure goes into weeks to find these especially python-config and starts to poke at host files e.g. if /etc/debian_release exists then it errors out, but if it does not then it deploys a workaround and continues build, as a result we see ntop fail the build on debian-like build hosts but not on others eg. archlinux

Fixes
checking for arm-yoe-linux-gnueabi-python-config... no checking for python-config... no
Please install python-dev and rerun configure

---
 meta-networking/recipes-support/ntop/ntop_5.0.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-support/ntop/ntop_5.0.1.bb +2 -0
index 2d37969a70..f06e2dc1f8 100644
@@ -37,6 +37,8 @@ PACKAGECONFIG[plugins] = "--enable-plugins=yes, --disable-plugins, ,"
 
 EXTRA_OECONF += "ac_cv_file_aclocal_m4=yes ac_cv_file_depcomp=no"
 
+CONFIGUREOPTS += "PYTHON=python3 PYTHON_CONFIG=python3-config"
+
 do_configure() {
     cp ${STAGING_DATADIR_NATIVE}/aclocal/libtool.m4 libtool.m4.in
     install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
Signature · 1 line
2.25.0