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 soruce code comments contain build folder path cause QA Issue warning
Date: Thu, 19 Jan 2023 15:44:50 -0500	[thread overview]
Message-ID: <Y8mrwrQr7+TsVnVC@gmail.com> (raw)
In-Reply-To: <20230118054242.2619152-1-xiangyu.chen@eng.windriver.com>

merged.

Bruce

In message: [meta-virtualization][PATCH] libvirt: fix soruce code comments contain build folder path cause QA Issue warning
on 18/01/2023 Xiangyu Chen wrote:

> From: Xiangyu Chen <xiangyu.chen@windriver.com>
> 
> gendispatch.pl add build dir in code comments which was generated
> by itself. those build dir information would cause yocto qa report
> warnings like:
> 
> WARNING: libvirt-8.1.0-r0 do_package_qa: QA Issue:
> File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheckqemu.h in package libvirt-src contains reference to TMPDIR
> File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapichecklxc.h in package libvirt-src contains reference to TMPDIR
> File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheckqemu.c in package libvirt-src contains reference to TMPDIR
> File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapichecklxc.c in package libvirt-src contains reference to TMPDIR
> File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheck.h in package libvirt-src contains reference to TMPDIR
> File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheck.c in package libvirt-src contains reference to TMPDIR [buildpaths]
> 
> Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> ---
>  ...tch.pl-generating-build-path-in-code.patch | 54 +++++++++++++++++++
>  recipes-extended/libvirt/libvirt_8.1.0.bb     |  1 +
>  2 files changed, 55 insertions(+)
>  create mode 100644 recipes-extended/libvirt/libvirt/0001-prevent-gendispatch.pl-generating-build-path-in-code.patch
> 
> diff --git a/recipes-extended/libvirt/libvirt/0001-prevent-gendispatch.pl-generating-build-path-in-code.patch b/recipes-extended/libvirt/libvirt/0001-prevent-gendispatch.pl-generating-build-path-in-code.patch
> new file mode 100644
> index 0000000..5a909b4
> --- /dev/null
> +++ b/recipes-extended/libvirt/libvirt/0001-prevent-gendispatch.pl-generating-build-path-in-code.patch
> @@ -0,0 +1,54 @@
> +From ba915b13b92f3a625633ede43789c1ba780371af Mon Sep 17 00:00:00 2001
> +From: Xiangyu Chen <xiangyu.chen@windriver.com>
> +Date: Wed, 18 Jan 2023 03:19:07 +0000
> +Subject: [PATCH] prevent gendispatch.pl generating build path in code comments
> +
> +gendispatch.pl will add build dir in code comments which was generated
> +by itself. those build dir information would cause yocto qa report
> +warnings like:
> +
> +WARNING: libvirt-8.1.0-r0 do_package_qa: 
> +QA Issue: File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheckqemu.h in package libvirt-src contains reference to TMPDIR
> +File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapichecklxc.h in package libvirt-src contains reference to TMPDIR
> +File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheckqemu.c in package libvirt-src contains reference to TMPDIR
> +File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapichecklxc.c in package libvirt-src contains reference to TMPDIR
> +File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheck.h in package libvirt-src contains reference to TMPDIR
> +File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheck.c in package libvirt-src contains reference to TMPDIR [buildpaths]
> +
> +Upstream-Status: Inappropriate [oe specific]
> +
> +Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> +---
> + src/rpc/gendispatch.pl | 6 +++---
> + 1 file changed, 3 insertions(+), 3 deletions(-)
> +
> +diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
> +index 9f5bf0e..c73a9dd 100755
> +--- a/src/rpc/gendispatch.pl
> ++++ b/src/rpc/gendispatch.pl
> +@@ -449,19 +449,19 @@ sub hyper_to_long
> + 
> + if ($mode eq "aclsym") {
> +     print <<__EOF__;
> +-# Automatically generated from $protocol by gendispatch.pl.
> ++# Automatically generated by gendispatch.pl.
> + # Do not edit this file.  Any changes you make will be lost.
> + __EOF__
> + } elsif ($mode eq "aclapi") {
> +     print <<__EOF__;
> + <!--
> +-  -  Automatically generated from $protocol by gendispatch.pl.
> ++  -  Automatically generated by gendispatch.pl.
> +   -  Do not edit this file.  Any changes you make will be lost.
> +   -->
> + __EOF__
> + } else {
> +     print <<__EOF__;
> +-/* Automatically generated from $protocol by gendispatch.pl.
> ++/* Automatically generated by gendispatch.pl.
> +  * Do not edit this file.  Any changes you make will be lost.
> +  */
> + __EOF__
> +-- 
> +2.33.1
> +
> diff --git a/recipes-extended/libvirt/libvirt_8.1.0.bb b/recipes-extended/libvirt/libvirt_8.1.0.bb
> index 1de2988..0ffd510 100644
> --- a/recipes-extended/libvirt/libvirt_8.1.0.bb
> +++ b/recipes-extended/libvirt/libvirt_8.1.0.bb
> @@ -29,6 +29,7 @@ SRC_URI = "http://libvirt.org/sources/libvirt-${PV}.tar.xz;name=libvirt \
>             file://hook_support.py \
>             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 \
>            "
>  
>  SRC_URI[libvirt.sha256sum] = "3c6c43becffeb34a3f397c616206aa69a893ff8bf5e8208393c84e8e75352934"
> -- 
> 2.34.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#7817): https://lists.yoctoproject.org/g/meta-virtualization/message/7817
> Mute This Topic: https://lists.yoctoproject.org/mt/96348672/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-18  5:42 [meta-virtualization][PATCH] libvirt: fix soruce code comments contain build folder path cause QA Issue warning Xiangyu Chen
2023-01-19 20:44 ` 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=Y8mrwrQr7+TsVnVC@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.