mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
meta: drop _PYTHON_SYSCONFIGDATA_NAME hacks
(From OE-Core rev: 94a8eff9a95313e29683ebaecb83378a3c776b48) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 7901859e38de06c56b8535a8425e76cb114c57dc) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a7ce6533ed
commit
c2feb63de8
|
|
@ -5,7 +5,6 @@ DEPENDS += "python3-scons-native"
|
|||
EXTRA_OESCONS ?= ""
|
||||
|
||||
do_configure() {
|
||||
unset _PYTHON_SYSCONFIGDATA_NAME
|
||||
if [ -n "${CONFIGURESTAMPFILE}" ]; then
|
||||
if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
|
||||
${STAGING_BINDIR_NATIVE}/scons --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
|
||||
|
|
@ -17,13 +16,11 @@ do_configure() {
|
|||
}
|
||||
|
||||
scons_do_compile() {
|
||||
unset _PYTHON_SYSCONFIGDATA_NAME
|
||||
${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
|
||||
die "scons build execution failed."
|
||||
}
|
||||
|
||||
scons_do_install() {
|
||||
unset _PYTHON_SYSCONFIGDATA_NAME
|
||||
${STAGING_BINDIR_NATIVE}/scons install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} install || \
|
||||
die "scons install execution failed."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,10 +3,6 @@
|
|||
#
|
||||
|
||||
def prserv_make_conn(d, check = False):
|
||||
# Otherwise this fails when called from recipes which e.g. inherit python3native (which sets _PYTHON_SYSCONFIGDATA_NAME) with:
|
||||
# No module named '_sysconfigdata'
|
||||
if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ:
|
||||
del os.environ['_PYTHON_SYSCONFIGDATA_NAME']
|
||||
import prserv.serv
|
||||
host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f])
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -34,10 +34,6 @@ DEPENDS_append_class-target = "${@' gtk-doc' if d.getVar('GTKDOC_ENABLED') == 'T
|
|||
|
||||
GTKDOC_MESON_OPTION = "gtk_doc"
|
||||
|
||||
# This avoids the need to depend on target python3, which in case of mingw is not even possible.
|
||||
# meson's python configuration pokes into python3 configuration, so this provides the native config to it.
|
||||
unset _PYTHON_SYSCONFIGDATA_NAME
|
||||
|
||||
S = "${WORKDIR}/glib-${PV}"
|
||||
|
||||
PACKAGECONFIG ??= "system-pcre libmount \
|
||||
|
|
|
|||
|
|
@ -48,11 +48,6 @@ PROVIDES = " \
|
|||
|
||||
inherit meson pkgconfig python3native gettext features_check
|
||||
|
||||
# Unset these to stop python trying to report the target Python setup
|
||||
_PYTHON_SYSCONFIGDATA_NAME[unexport] = "1"
|
||||
STAGING_INCDIR[unexport] = "1"
|
||||
STAGING_LIBDIR[unexport] = "1"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
ANY_OF_DISTRO_FEATURES_class-target = "opengl vulkan"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user