* [meta-python][PATCH] python3-blivet: Adjust install location for binaries and systemd units
@ 2022-03-03 4:04 Khem Raj
2022-03-03 11:06 ` [oe] " Ross Burton
0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2022-03-03 4:04 UTC (permalink / raw)
To: openembedded-devel; +Cc: 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
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../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 \
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [oe] [meta-python][PATCH] python3-blivet: Adjust install location for binaries and systemd units
2022-03-03 4:04 [meta-python][PATCH] python3-blivet: Adjust install location for binaries and systemd units Khem Raj
@ 2022-03-03 11:06 ` Ross Burton
0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2022-03-03 11:06 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-devel
FWIW, this happens with ufw too when it's ported to use setuptools.
Ross
On Thu, 3 Mar 2022 at 04:04, Khem Raj <raj.khem@gmail.com> wrote:
>
> 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 <raj.khem@gmail.com>
> ---
> .../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 \
> --
> 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: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ross@burtonini.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-03 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 4:04 [meta-python][PATCH] python3-blivet: Adjust install location for binaries and systemd units Khem Raj
2022-03-03 11:06 ` [oe] " Ross Burton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.