On Thu, 2023-06-29 at 12:37 +0000, Louis Rannou wrote: > Append the install task to move the python library from ${base_libdir} > to ${PYTHON_SITEPACKAGES_DIR}. > > Signed-off-by: Louis Rannou <lran...@baylibre.com> > --- > As we install libraries of util-linux in ${base_libdir} (/lib), the > python library pylibmount is also installed there. An issue was raised > when pylibmount was added to PACKAGECONFIG. > --- > meta/recipes-core/util-linux/util-linux_2.38.1.bb | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-core/util-linux/util-linux_2.38.1.bb > b/meta/recipes-core/util-linux/util-linux_2.38.1.bb > index 9ea7a04e8a..f9a9fdcfaf 100644 > --- a/meta/recipes-core/util-linux/util-linux_2.38.1.bb > +++ b/meta/recipes-core/util-linux/util-linux_2.38.1.bb > @@ -1,7 +1,7 @@ > require util-linux.inc > > #gtk-doc is not enabled as it requires xmlto which requires util-linux > -inherit autotools gettext manpages pkgconfig systemd update-alternatives > python3-dir bash-completion ptest > +inherit autotools gettext manpages pkgconfig systemd update-alternatives > python3-dir python3targetconfig bash-completion ptest > DEPENDS = "libcap-ng ncurses virtual/crypt zlib util-linux-libuuid" > > PACKAGES =+ "${PN}-swaponoff" > @@ -320,3 +320,12 @@ do_install_ptest() { > rm -rf ${D}${PTEST_PATH}/tests/ts/chfn > fi > } > + > +do_install:append() { > + if [ -d ${D}${base_libdir}/${PYTHON_DIR}/site-packages/libmount ] > + then > + install -d ${D}${PYTHON_SITEPACKAGES_DIR} > + mv ${D}${base_libdir}/${PYTHON_DIR}/site-packages/libmount > ${D}${PYTHON_SITEPACKAGES_DIR}/ > + rm -rf ${D}${base_libdir}/${PYTHON_DIR} > + fi > +}
When it is being installed, can we not pass the right path into the build system so it ends up in the right place? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#183623): https://lists.openembedded.org/g/openembedded-core/message/183623 Mute This Topic: https://lists.openembedded.org/mt/99849709/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-