]> code.ossystems Code Review - openembedded-core.git/commit
pythonnative.bbclass, python3native.bbclass: export STAGING_INCDIR, STAGING_LIBDIR...
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Wed, 22 Jun 2016 12:06:35 +0000 (15:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Jul 2016 15:08:44 +0000 (16:08 +0100)
commitc1e0eb62f2d89b10b187016200018830b1c77945
treec42bcb9e32f8f0aebf6470036111d6837f134766
parent2ec8db434c6da54333cbdc54763bb5561b6e4d10
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 <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/gobject-introspection.bbclass
meta/classes/python3native.bbclass
meta/classes/pythonnative.bbclass
meta/recipes-core/glib-2.0/glib.inc
meta/recipes-core/libxml/libxml2_2.9.4.bb
meta/recipes-devtools/python/python3-dbus_1.2.4.bb
meta/recipes-extended/libuser/libuser_0.62.bb
meta/recipes-extended/newt/libnewt_0.52.19.bb
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.48.0.bb
meta/recipes-kernel/perf/perf.bb
meta/recipes-support/libcap-ng/libcap-ng_0.7.7.bb