diff mbox series

[RFC,3/4] libcap-ng-python: Rename site-packages path if needed

Message ID 20260326150225.2083962-4-zboszor@gmail.com
State New
Headers show
Series Enable Python free-threading | expand

Commit Message

Zoltán Böszörményi March 26, 2026, 2:35 p.m. UTC
libcap-ng-python installs into the ABI-less ${libdir}/pythonX.Y
directory, even if Python free-threading is enabled.

Move it to the correct location.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
 meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb b/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
index f13c2eba17..4e01c320fd 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
+++ b/meta/recipes-support/libcap-ng/libcap-ng-python_0.9.1.bb
@@ -12,6 +12,9 @@  EXTRA_OECONF += "--with-python3"
 
 do_install() {
     oe_runmake 'DESTDIR=${D}' install -C ${B}/bindings/python3
+    if [ ! -d ${D}${libdir}/${PYTHON_DIR} ]; then
+        mv ${D}${libdir}/python${PYTHON_BASEVERSION} ${D}${libdir}/${PYTHON_DIR}
+    fi
 }
 
 FILES:${PN} = "${libdir}/${PYTHON_DIR}"