From c1e0eb62f2d89b10b187016200018830b1c77945 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Wed, 22 Jun 2016 15:06:35 +0300 Subject: pythonnative.bbclass, python3native.bbclass: export STAGING_INCDIR, STAGING_LIBDIR, PYTHON variables We patch Python's distutils modules to access STAGING_INCDIR/LIBDIR, so when they are not set, scripts that utilize distutils (e.g. python-config) fail. Several recipes need to export those manually to prevent such failures, so let's do that in the class instead. PYTHON variable is exported because otherwise autotools' python.m4 macro will pick up its own internal default, which may not be the version that we want. glib recipe in particular was previously using Python 2.x during build due to python.m4 defaulting to it - now it's using Python 3.x, and so needs a small fix in deletion of *.pyc files. Signed-off-by: Alexander Kanavin Signed-off-by: Ross Burton --- meta/recipes-support/libcap-ng/libcap-ng_0.7.7.bb | 3 --- 1 file changed, 3 deletions(-) (limited to 'meta/recipes-support/libcap-ng') diff --git a/meta/recipes-support/libcap-ng/libcap-ng_0.7.7.bb b/meta/recipes-support/libcap-ng/libcap-ng_0.7.7.bb index 5608f495e6..a38a818c03 100644 --- a/meta/recipes-support/libcap-ng/libcap-ng_0.7.7.bb +++ b/meta/recipes-support/libcap-ng/libcap-ng_0.7.7.bb @@ -17,9 +17,6 @@ SRC_URI[sha256sum] = "615549ce39b333f6b78baee0c0b4ef18bc726c6bf1cca123dfd89dd963 DEPENDS += "swig-native python3" -export PYTHON -export STAGING_INCDIR -export STAGING_LIBDIR EXTRA_OECONF += "--with-python --with-python3" EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' PYINC='${STAGING_INCDIR}/${PYLIBVER}'" -- cgit 1.2.3-korg