libuser installs its python module into the ABI-less
site-packages directory.

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

Signed-off-by: Zoltán Böszörményi <[email protected]>
---
 meta-gnome/recipes-support/libuser/libuser_0.64.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta-gnome/recipes-support/libuser/libuser_0.64.bb 
b/meta-gnome/recipes-support/libuser/libuser_0.64.bb
index 64b51e6c97..dbba5877c2 100644
--- a/meta-gnome/recipes-support/libuser/libuser_0.64.bb
+++ b/meta-gnome/recipes-support/libuser/libuser_0.64.bb
@@ -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}"
-- 
2.53.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#125755): 
https://lists.openembedded.org/g/openembedded-devel/message/125755
Mute This Topic: https://lists.openembedded.org/mt/118520416/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to