Skip to contentSkip to conversation

gedit: Inherit python3targetconfig

PATCH New akuster 1 participant 5 messages Feb 20, 2021

lore
Share & tools
lore

akuster

author
#0 lore raw

PATCH 1/5 gedit: Inherit python3targetconfig

From: Khem Raj <[email protected]>

This is needed to find _PYTHON_SYSCONFIGDATA_NAME

(cherry picked from commit a06cdf5a4cd3769982ca861aa9aaff312277df51)
(cherry picked from commit 4a5719ffb1fee9ee7657d93994e3ac880396c048)
---
 meta-gnome/recipes-gnome/gedit/gedit_3.34.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-gnome/gedit/gedit_3.34.1.bb +1 -1
index 850ba4df98..d6c8957dc1 100644
@@ -19,7 +19,7 @@ DEPENDS = " \
     gtksourceview4 \
 "
 
-inherit gnomebase gsettings itstool gnome-help gobject-introspection gtk-doc vala gettext features_check upstream-version-is-even mime-xdg
+inherit gnomebase gsettings itstool gnome-help gobject-introspection gtk-doc vala gettext features_check upstream-version-is-even mime-xdg python3targetconfig
 
 REQUIRED_DISTRO_FEATURES = "x11"
 
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/5 openipmi: Inherit python3targetconfig

From: Khem Raj <[email protected]>

Fixes

configure: error:
Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LIBS environment variable.
Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"

(cherry picked from commit 59f817bbe374799e4398766c2a444692d932d979)
(cherry picked from commit 59d3d64e902d4d2e7ea9c3d2e1fec442912bcdd5)
---
 meta-networking/recipes-support/openipmi/openipmi_2.0.29.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/openipmi/openipmi_2.0.29.bb +1 -1
index 85634a70eb..6918485870 100644
@@ -38,7 +38,7 @@ S = "${WORKDIR}/OpenIPMI-${PV}"
 SRC_URI[md5sum] = "46b452e95d69c92e4172b3673ed88d52"
 SRC_URI[sha256sum] = "2244124579afb14e569f34393e9ac61e658a28b6ffa8e5c0d2c1c12a8ce695cd"
 
-inherit autotools-brokensep pkgconfig python3native perlnative update-rc.d systemd cpan-base
+inherit autotools-brokensep pkgconfig python3native perlnative update-rc.d systemd cpan-base python3targetconfig
 
 EXTRA_OECONF = "--disable-static \
                 --with-perl='${STAGING_BINDIR_NATIVE}/perl-native/perl' \
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 3/5 libplist: Inherit python3targetconfig

In reply to akuster

From: Khem Raj <[email protected]>

Fixes

configure: error:
Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LIBS environment variable.
Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"

(cherry picked from commit be7d2286bfe80835e8e014114aaf587e2930c683)
(cherry picked from commit a0c26ca2b4c5e18a22b8d6f3c952fb00caf2bd34)
---
 meta-oe/recipes-extended/libimobiledevice/libplist_2.1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/libimobiledevice/libplist_2.1.0.bb +1 -1
index 36659e752d..a990deb91f 100644
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ebb5c50ab7cab4baeffba14977030c07 \
 
 DEPENDS = "libxml2 glib-2.0 swig python3"
 
-inherit autotools pkgconfig python3native
+inherit autotools pkgconfig python3native python3targetconfig
 
 SRCREV = "3df02d4d0e9008771e8622fdc10de8333b3f0d85"
 SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https \
Signature · 1 line
2.17.1
author
#3 lore raw

PATCH 4/5 postgresql: Inherit python3targetconfig

In reply to akuster

From: Khem Raj <[email protected]>

it now ends up searching native python shared libraries and tries to link with it and fails on non-host architectures

recipe-sysroot-native/usr/lib/libpython3.9.so: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status

(cherry picked from commit c499aaeef80b5af8d20521658449c4148f3d0806)
(cherry picked from commit 572d4148267c6ff1b43dd3498020349cb0aa77c7)
---
 meta-oe/recipes-dbs/postgresql/postgresql.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-dbs/postgresql/postgresql.inc +1 -1
index 5b5bfb0886..2294a3de42 100644
@@ -36,7 +36,7 @@ LEAD_SONAME = "libpq.so"
 # LDFLAGS for shared libraries
 export LDFLAGS_SL = "${LDFLAGS}"
 
-inherit autotools pkgconfig perlnative python3native useradd update-rc.d systemd gettext cpan-base
+inherit autotools pkgconfig perlnative python3native python3targetconfig useradd update-rc.d systemd gettext cpan-base
 
 CFLAGS += "-I${STAGING_INCDIR}/${PYTHON_DIR} -I${STAGING_INCDIR}/tcl8.6"
 
Signature · 1 line
2.17.1
author
#4 lore raw

PATCH 5/5 python3-pykwalify: Do not unset _PYTHON_SYSCONFIGDATA_NAME

In reply to akuster

From: Khem Raj <[email protected]>

its been shoved out of setuptools3 in oe-core now

(cherry picked from commit 50bbf80abf570d1d652ec2f4bc5878e939c688d3)
(cherry picked from commit fbe2e79ab0dd4e0b2fd6433d0cfe10d66c7c7181)
---
 meta-python/recipes-devtools/python/python3-pykwalify_1.7.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pykwalify_1.7.0.bb +1 -1
index 1bbde6986a..9251eccebe 100644
@@ -10,8 +10,8 @@ SRC_URI[sha256sum] = "7e8b39c5a3a10bc176682b3bd9a7422c39ca247482df198b402e8015de
 SRC_URI += "file://0001-rule.py-fix-missing-comma.patch"
 
 PYPI_PACKAGE = "pykwalify"
+
 inherit setuptools3 pypi
-unset _PYTHON_SYSCONFIGDATA_NAME
 
 RDEPENDS_${PN} = "\
     ${PYTHON_PN}-dateutil \
Signature · 1 line
2.17.1