[oe] [meta-networking][PATCH] ntop: Pass PYTHON and PYTHON_CONFIG to configure
Khem Raj
raj.khem at gmail.com
Thu Jan 23 05:07:15 UTC 2020
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
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
meta-networking/recipes-support/ntop/ntop_5.0.1.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-networking/recipes-support/ntop/ntop_5.0.1.bb b/meta-networking/recipes-support/ntop/ntop_5.0.1.bb
index 2d37969a70..f06e2dc1f8 100644
--- a/meta-networking/recipes-support/ntop/ntop_5.0.1.bb
+++ b/meta-networking/recipes-support/ntop/ntop_5.0.1.bb
@@ -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}
--
2.25.0
More information about the Openembedded-devel
mailing list