From daba6521fa5a8baa1bd53312d025982e201d022a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 2 Mar 2022 19:55:02 -0800 Subject: [PATCH] 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 Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- .../recipes-extended/python-blivet/python3-blivet_3.4.3.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-python/recipes-extended/python-blivet/python3-blivet_3.4.3.bb b/meta-python/recipes-extended/python-blivet/python3-blivet_3.4.3.bb index d79fc7d003..85575df7b5 100644 --- a/meta-python/recipes-extended/python-blivet/python3-blivet_3.4.3.bb +++ b/meta-python/recipes-extended/python-blivet/python3-blivet_3.4.3.bb @@ -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 \