diff mbox series

[meta-gnome,01/15] libuser: Support Python freethreading

Message ID 20260325122046.1211090-2-zboszor@gmail.com
State Under Review
Headers show
Series Support Python freethreading | expand

Commit Message

Böszörményi Zoltán March 25, 2026, 12:19 p.m. UTC
PYTHON_DIR now contains PYTHON_ABI, use only that.

Move the installed site-packages directory to the correct
location.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta-gnome/recipes-support/libuser/libuser_0.64.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-gnome/recipes-support/libuser/libuser_0.64.bb b/meta-gnome/recipes-support/libuser/libuser_0.64.bb
index 27cbb43486..dbba5877c2 100644
--- a/meta-gnome/recipes-support/libuser/libuser_0.64.bb
+++ b/meta-gnome/recipes-support/libuser/libuser_0.64.bb
@@ -26,7 +26,7 @@  inherit autotools features_check gettext python3native python3-dir pkgconfig gtk
 
 REQUIRED_DISTRO_FEATURES = "pam"
 
-EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
+EXTRA_OEMAKE = "PYTHON_CPPFLAGS=-I${STAGING_INCDIR}/${PYTHON_DIR}"
 
 do_configure:prepend() {
     install -d ${S}/admin -d ${S}/m4
@@ -36,6 +36,12 @@  do_configure:prepend() {
     cd -
 }
 
+do_install:append () {
+    if [ ! -d ${D}${libdir}/${PYTHON_DIR} ]; then
+        mv ${D}${libdir}/python${PYTHON_BASEVERSION} ${D}${libdir}/${PYTHON_DIR}
+    fi
+}
+
 PACKAGES += "${PN}-python "
 
 FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"