From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: martin.jansa@gmail.com
Cc: meta-virtualization@lists.yoctoproject.org,
Hieu Van Nguyen <hieu2.nguyen@lge.com>
Subject: Re: [meta-virtualization] [master-next][PATCH v2] libvirt: convert more WORKDIR references to UNPACKDIR
Date: Fri, 31 May 2024 15:03:46 +0000 [thread overview]
Message-ID: <Zlnm0uHVibnTPKLZ@gmail.com> (raw)
In-Reply-To: <20240530142845.1822812-1-martin.jansa@gmail.com>
In message: [meta-virtualization] [master-next][PATCH v2] libvirt: convert more WORKDIR references to UNPACKDIR
on 30/05/2024 Martin Jansa via lists.yoctoproject.org wrote:
> From: Hieu Van Nguyen <hieu2.nguyen@lge.com>
>
> unpacked source files are now in UNPACKDIR, so we adjust our
> operations to match.
>
> Some references were missed in previous commit as they
> are behind conditional.
>
> Use BP subdir for python, to build it inside ${S}.
>
> Need cd - to go back to $${B} so that gnutls-helper.py
> is executed there instead of python subdirectory.
>
> Use mix of tabs and spaces for indentation like other lines
> around :).
It depends on the weather and day of the week whether
spaces or tabs are used!
>
> Signed-off-by: Hieu Van Nguyen <hieu2.nguyen@lge.com>
> Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> ---
> recipes-extended/libvirt/libvirt-python.inc | 8 +++++---
> recipes-extended/libvirt/libvirt_10.0.0.bb | 21 ++++++++++-----------
> 2 files changed, 15 insertions(+), 14 deletions(-)
>
> diff --git a/recipes-extended/libvirt/libvirt-python.inc b/recipes-extended/libvirt/libvirt-python.inc
> index 6fb2b68c..40c362d6 100644
> --- a/recipes-extended/libvirt/libvirt-python.inc
> +++ b/recipes-extended/libvirt/libvirt-python.inc
> @@ -18,7 +18,7 @@ FILES:${PN}-python = "${bindir}/* ${libdir}/* ${libdir}/${PYTHON_DIR}/*"
> # Currently the libvirt-python debug libraries contain buildpaths
> INSANE_SKIP:${PN}-dbg += "buildpaths"
>
> -SRC_URI += "http://libvirt.org/sources/python/libvirt-python-${PV}.tar.gz;name=libvirt_python"
> +SRC_URI += "http://libvirt.org/sources/python/${BPN}-python-${PV}.tar.gz;name=libvirt_python;subdir=${BP}"
>
> SRC_URI[libvirt_python.sha256sum] = "a82588f0e7db53eda7b7dbcbc448b0ec43e00a8c77cac69644495299b410c20d"
>
> @@ -46,8 +46,9 @@ do_compile:append() {
> # the syroot staged pkgconfig entries. So we clear the sysroot
> # for just this portion.
> export PKG_CONFIG_SYSROOT_DIR=
> - cd ${WORKDIR}/${BPN}-python-${PV} && \
> + cd ${S}/${BPN}-python-${PV} && \
> ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py build
> + cd -
Alternatively we could wrap this in a subshell (), which is
what I normally do to avoid needing to change back.
But that's something I can tweak after this patch if any
issues pop up.
I've got this under test now, and expect to push it shortly.
Bruce
> fi
> }
>
> @@ -57,8 +58,9 @@ do_install:append() {
> # the syroot staged pkgconfig entries. So we clear the sysroot
> # for just this portion.
> export PKG_CONFIG_SYSROOT_DIR=
> - cd ${WORKDIR}/${BPN}-python-${PV} && \
> + cd ${S}/${BPN}-python-${PV} && \
> ${STAGING_BINDIR_NATIVE}/python3-native/python3 setup.py install \
> --install-lib=${D}/${PYTHON_SITEPACKAGES_DIR} ${LIBVIRT_INSTALL_ARGS}
> + cd -
> fi
> }
> diff --git a/recipes-extended/libvirt/libvirt_10.0.0.bb b/recipes-extended/libvirt/libvirt_10.0.0.bb
> index 9ad1f798..8e54406a 100644
> --- a/recipes-extended/libvirt/libvirt_10.0.0.bb
> +++ b/recipes-extended/libvirt/libvirt_10.0.0.bb
> @@ -24,12 +24,12 @@ RDEPENDS:libvirt-libvirtd:append:aarch64 = " dmidecode"
> #connman blocks the 53 port and libvirtd can't start its DNS service
> RCONFLICTS:${PN}_libvirtd = "connman"
>
> -SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \
> +SRC_URI = "http://libvirt.org/sources/${BP}.tar.xz;name=libvirt \
> file://libvirtd.sh \
> file://libvirtd.conf \
> file://dnsmasq.conf \
> file://hook_support.py \
> - file://gnutls-helper.py \
> + file://gnutls-helper.py;subdir=${BP} \
> file://0001-prevent-gendispatch.pl-generating-build-path-in-code.patch \
> file://0001-messon.build-remove-build-path-information-to-avoid-.patch \
> "
> @@ -286,21 +286,20 @@ do_install:append() {
>
> if ${@bb.utils.contains('PACKAGECONFIG','gnutls','true','false',d)}; then
> # Generate sample keys and certificates.
> - cd ${WORKDIR}
> - ${WORKDIR}/gnutls-helper.py -y
> + ${S}/gnutls-helper.py -y
>
> # Deploy all sample keys and certificates of CA, server and client
> # to target so that libvirtd is able to boot successfully and local
> # connection via 127.0.0.1 is available out of box.
> install -d ${D}/etc/pki/CA
> install -d ${D}/etc/pki/libvirt/private
> - install -m 0755 ${WORKDIR}/gnutls-helper.py ${D}/${bindir}
> - install -m 0644 ${WORKDIR}/cakey.pem ${D}/${sysconfdir}/pki/libvirt/private/cakey.pem
> - install -m 0644 ${WORKDIR}/cacert.pem ${D}/${sysconfdir}/pki/CA/cacert.pem
> - install -m 0644 ${WORKDIR}/serverkey.pem ${D}/${sysconfdir}/pki/libvirt/private/serverkey.pem
> - install -m 0644 ${WORKDIR}/servercert.pem ${D}/${sysconfdir}/pki/libvirt/servercert.pem
> - install -m 0644 ${WORKDIR}/clientkey.pem ${D}/${sysconfdir}/pki/libvirt/private/clientkey.pem
> - install -m 0644 ${WORKDIR}/clientcert.pem ${D}/${sysconfdir}/pki/libvirt/clientcert.pem
> + install -m 0755 ${S}/gnutls-helper.py ${D}/${bindir}
> + install -m 0644 cakey.pem ${D}/${sysconfdir}/pki/libvirt/private/cakey.pem
> + install -m 0644 cacert.pem ${D}/${sysconfdir}/pki/CA/cacert.pem
> + install -m 0644 serverkey.pem ${D}/${sysconfdir}/pki/libvirt/private/serverkey.pem
> + install -m 0644 servercert.pem ${D}/${sysconfdir}/pki/libvirt/servercert.pem
> + install -m 0644 clientkey.pem ${D}/${sysconfdir}/pki/libvirt/private/clientkey.pem
> + install -m 0644 clientcert.pem ${D}/${sysconfdir}/pki/libvirt/clientcert.pem
>
> # Force the connection to be tls.
> sed -i -e 's/^\(listen_tls\ =\ .*\)/#\1/' -e 's/^\(listen_tcp\ =\ .*\)/#\1/' ${D}/etc/libvirt/libvirtd.conf
> --
> 2.45.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#8788): https://lists.yoctoproject.org/g/meta-virtualization/message/8788
> Mute This Topic: https://lists.yoctoproject.org/mt/106389420/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
prev parent reply other threads:[~2024-05-31 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 14:28 [master-next][PATCH v2] libvirt: convert more WORKDIR references to UNPACKDIR Martin Jansa
2024-05-31 15:03 ` Bruce Ashfield [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zlnm0uHVibnTPKLZ@gmail.com \
--to=bruce.ashfield@gmail.com \
--cc=hieu2.nguyen@lge.com \
--cc=martin.jansa@gmail.com \
--cc=meta-virtualization@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.