All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Xiangyu Chen <xiangyu.chen@eng.windriver.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH] libvirt: fix libraries contain build folder path cause QA warning
Date: Thu, 19 Jan 2023 15:45:05 -0500	[thread overview]
Message-ID: <Y8mr0fWOQBB094zX@gmail.com> (raw)
In-Reply-To: <20230119092412.630153-1-xiangyu.chen@eng.windriver.com>

merged.

Bruce

In message: [meta-virtualization][PATCH] libvirt: fix libraries contain build folder path cause QA warning
on 19/01/2023 Xiangyu Chen wrote:

> From: Xiangyu Chen <xiangyu.chen@windriver.com>
> 
> libvirt debug trace contains source path, and some utils was located to
> yocto sysroot folder, those full source path cause yocto QA buildpath
> check failed and report "xxxx contains reference to TMPDIR" warnings.
> 
> Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> ---
>  ...ove-build-path-information-to-avoid-.patch | 58 +++++++++++++++++++
>  recipes-extended/libvirt/libvirt_8.1.0.bb     |  1 +
>  2 files changed, 59 insertions(+)
>  create mode 100644 recipes-extended/libvirt/libvirt/0001-messon.build-remove-build-path-information-to-avoid-.patch
> 
> diff --git a/recipes-extended/libvirt/libvirt/0001-messon.build-remove-build-path-information-to-avoid-.patch b/recipes-extended/libvirt/libvirt/0001-messon.build-remove-build-path-information-to-avoid-.patch
> new file mode 100644
> index 0000000..1e09cd6
> --- /dev/null
> +++ b/recipes-extended/libvirt/libvirt/0001-messon.build-remove-build-path-information-to-avoid-.patch
> @@ -0,0 +1,58 @@
> +From 9660b76325c841a5f5c7d5b2fb439a1fd64105c9 Mon Sep 17 00:00:00 2001
> +From: Xiangyu Chen <xiangyu.chen@windriver.com>
> +Date: Thu, 19 Jan 2023 17:07:37 +0800
> +Subject: [PATCH] messon.build: remove build path information to avoid yocto QA
> + buildpath check warnings
> +
> +libvirt debug trace contains source path, and some utils was located to
> +yocto sysroot folder, those full source path cause yocto QA buildpath check failed and report warnings as below:
> +
> +WARNING: libvirt-8.1.0-r0 do_package_qa: QA Issue: File /usr/libexec/libvirt_lxc in package libvirt contains reference to TMPDIR
> +File /usr/lib64/libvirt.so.0.8001.0 in package libvirt contains reference to TMPDIR
> +File /usr/lib64/libvirt/lock-driver/lockd.so in package libvirt contains reference to TMPDIR
> +File /usr/lib64/libvirt/connection-driver/libvirt_driver_lxc.so in package libvirt contains reference to TMPDIR
> +File /usr/lib64/libvirt/connection-driver/libvirt_driver_storage.so in package libvirt contains reference to TMPDIR
> +File /usr/lib64/libvirt/connection-driver/libvirt_driver_network.so in package libvirt contains reference to TMPDIR
> +File /usr/lib64/libvirt/storage-backend/libvirt_storage_backend_fs.so in package libvirt contains reference to TMPDIR
> +File /usr/lib64/libvirt/storage-backend/libvirt_storage_backend_disk.so in package libvirt contains reference to TMPDIR
> +File /usr/bin/virt-ssh-helper in package libvirt contains reference to TMPDIR [buildpaths]
> +
> +
> +Upstream-Status: Inappropriate [oe specific]
> +
> +Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> +---
> + meson.build | 10 +++++-----
> + 1 file changed, 5 insertions(+), 5 deletions(-)
> +
> +diff --git a/meson.build b/meson.build
> +index 9016c04..fb78d44 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -26,8 +26,8 @@ endif
> + conf = configuration_data()
> + 
> + conf.set('_GNU_SOURCE', 1)
> +-conf.set_quoted('abs_top_builddir', meson.build_root())
> +-conf.set_quoted('abs_top_srcdir', meson.source_root())
> ++conf.set_quoted('abs_top_builddir', ' ')
> ++conf.set_quoted('abs_top_srcdir', ' ')
> + conf.set_quoted('PACKAGE', meson.project_name())
> + conf.set_quoted('PACKAGE_NAME', meson.project_name())
> + conf.set_quoted('PACKAGE_VERSION', meson.project_version())
> +@@ -1830,9 +1830,9 @@ if conf.has('WITH_LIBVIRTD')
> +       use_storage = true
> + 
> +       conf.set('WITH_STORAGE_FS', 1)
> +-      conf.set_quoted('MOUNT', mount_prog.path())
> +-      conf.set_quoted('UMOUNT', umount_prog.path())
> +-      conf.set_quoted('MKFS', mkfs_prog.path())
> ++      conf.set_quoted('MOUNT', '/usr/bin/mount')
> ++      conf.set_quoted('UMOUNT', '/usr/bin/umount')
> ++      conf.set_quoted('MKFS', '/usr/sbin/mkfs')
> + 
> +       showmount_prog = find_program('showmount', required: false, dirs: libvirt_sbin_path)
> +       showmount_path = ''
> +-- 
> +2.17.1
> +
> diff --git a/recipes-extended/libvirt/libvirt_8.1.0.bb b/recipes-extended/libvirt/libvirt_8.1.0.bb
> index 0ffd510..d529db1 100644
> --- a/recipes-extended/libvirt/libvirt_8.1.0.bb
> +++ b/recipes-extended/libvirt/libvirt_8.1.0.bb
> @@ -30,6 +30,7 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \
>             file://gnutls-helper.py \
>             file://0001-qemu-segmentation-fault-in-virtqemud-executing-qemuD.patch \
>             file://0001-prevent-gendispatch.pl-generating-build-path-in-code.patch \
> +           file://0001-messon.build-remove-build-path-information-to-avoid-.patch \
>            "
>  
>  SRC_URI[libvirt.sha256sum] = "3c6c43becffeb34a3f397c616206aa69a893ff8bf5e8208393c84e8e75352934"
> -- 
> 2.34.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#7818): https://lists.yoctoproject.org/g/meta-virtualization/message/7818
> Mute This Topic: https://lists.yoctoproject.org/mt/96374330/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



      reply	other threads:[~2023-01-19 20:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-19  9:24 [meta-virtualization][PATCH] libvirt: fix libraries contain build folder path cause QA warning Xiangyu Chen
2023-01-19 20:45 ` 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=Y8mr0fWOQBB094zX@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    --cc=xiangyu.chen@eng.windriver.com \
    /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.