Skip to contentSkip to conversation

python3-blivet: Adjust install location for binaries and systemd units

PATCH In review Khem Raj 2 participants 2 messages Mar 3, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-blivet: Adjust install location for binaries and systemd units

With wheels changes it is also getting installed under PYTHON_SITEPACKAGES_DIR perhaps something to fix in setup.py but this fix works better from a packager point of view.

Moves the systemd unit files and daemon into /usr/lib and /usr/libexec dirs

---
 .../recipes-extended/python-blivet/python3-blivet_3.4.3.bb  | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-extended/python-blivet/python3-blivet_3.4.3.bb +6 -0
index d79fc7d003..85575df7b5 100644
@@ -23,6 +23,12 @@ inherit pypi features_check systemd setuptools3
 
 REQUIRED_DISTRO_FEATURES = "systemd"
 
+do_install:append() {
+    mv ${D}${PYTHON_SITEPACKAGES_DIR}${exec_prefix}/* ${D}${exec_prefix}
+    mv ${D}${PYTHON_SITEPACKAGES_DIR}${sysconfdir} ${D}
+    mv ${D}${PYTHON_SITEPACKAGES_DIR}${base_libdir} ${D}
+}
+
 RDEPENDS:${PN} += "python3-pykickstart python3-pyudev \
                   parted python3-pyparted multipath-tools \
                   lsof cryptsetup libblockdev \
Signature · 1 line
2.35.1
#1 lore raw

FWIW, this happens with ufw too when it's ported to use setuptools.

Ross

Quoted 42 lines · Khem Raj

With wheels changes it is also getting installed under PYTHON_SITEPACKAGES_DIR perhaps something to fix in setup.py but this fix works better from a packager point of view.

Moves the systemd unit files and daemon into /usr/lib and /usr/libexec dirs

---
 .../recipes-extended/python-blivet/python3-blivet_3.4.3.bb  | 6 ++++++
 1 file changed, 6 insertions(+)
meta-python/recipes-extended/python-blivet/python3-blivet_3.4.3.bb +6 -1
index d79fc7d003..85575df7b5 100644
@@ -23,6 +23,12 @@ inherit pypi features_check systemd setuptools3
 
 REQUIRED_DISTRO_FEATURES = "systemd"
 
+do_install:append() {
+    mv ${D}${PYTHON_SITEPACKAGES_DIR}${exec_prefix}/* ${D}${exec_prefix}
+    mv ${D}${PYTHON_SITEPACKAGES_DIR}${sysconfdir} ${D}
+    mv ${D}${PYTHON_SITEPACKAGES_DIR}${base_libdir} ${D}
+}
+
 RDEPENDS:${PN} += "python3-pykickstart python3-pyudev \
                   parted python3-pyparted multipath-tools \
                   lsof cryptsetup libblockdev \
--

2.35.1

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