summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-extended/libvirt/libvirt/0001-prevent-gendispatch.pl-generating-build-path-in-code.patch54
-rw-r--r--recipes-extended/libvirt/libvirt_8.1.0.bb1
2 files changed, 55 insertions, 0 deletions
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 00000000..5a909b49
--- /dev/null
+++ b/recipes-extended/libvirt/libvirt/0001-prevent-gendispatch.pl-generating-build-path-in-code.patch
@@ -0,0 +1,54 @@
1From ba915b13b92f3a625633ede43789c1ba780371af Mon Sep 17 00:00:00 2001
2From: Xiangyu Chen <xiangyu.chen@windriver.com>
3Date: Wed, 18 Jan 2023 03:19:07 +0000
4Subject: [PATCH] prevent gendispatch.pl generating build path in code comments
5
6gendispatch.pl will add build dir in code comments which was generated
7by itself. those build dir information would cause yocto qa report
8warnings like:
9
10WARNING: libvirt-8.1.0-r0 do_package_qa:
11QA Issue: File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheckqemu.h in package libvirt-src contains reference to TMPDIR
12File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapichecklxc.h in package libvirt-src contains reference to TMPDIR
13File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheckqemu.c in package libvirt-src contains reference to TMPDIR
14File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapichecklxc.c in package libvirt-src contains reference to TMPDIR
15File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheck.h in package libvirt-src contains reference to TMPDIR
16File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheck.c in package libvirt-src contains reference to TMPDIR [buildpaths]
17
18Upstream-Status: Inappropriate [oe specific]
19
20Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
21---
22 src/rpc/gendispatch.pl | 6 +++---
23 1 file changed, 3 insertions(+), 3 deletions(-)
24
25diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl
26index 9f5bf0e..c73a9dd 100755
27--- a/src/rpc/gendispatch.pl
28+++ b/src/rpc/gendispatch.pl
29@@ -449,19 +449,19 @@ sub hyper_to_long
30
31 if ($mode eq "aclsym") {
32 print <<__EOF__;
33-# Automatically generated from $protocol by gendispatch.pl.
34+# Automatically generated by gendispatch.pl.
35 # Do not edit this file. Any changes you make will be lost.
36 __EOF__
37 } elsif ($mode eq "aclapi") {
38 print <<__EOF__;
39 <!--
40- - Automatically generated from $protocol by gendispatch.pl.
41+ - Automatically generated by gendispatch.pl.
42 - Do not edit this file. Any changes you make will be lost.
43 -->
44 __EOF__
45 } else {
46 print <<__EOF__;
47-/* Automatically generated from $protocol by gendispatch.pl.
48+/* Automatically generated by gendispatch.pl.
49 * Do not edit this file. Any changes you make will be lost.
50 */
51 __EOF__
52--
532.33.1
54
diff --git a/recipes-extended/libvirt/libvirt_8.1.0.bb b/recipes-extended/libvirt/libvirt_8.1.0.bb
index 1de2988c..0ffd510b 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 \
29 file://hook_support.py \ 29 file://hook_support.py \
30 file://gnutls-helper.py \ 30 file://gnutls-helper.py \
31 file://0001-qemu-segmentation-fault-in-virtqemud-executing-qemuD.patch \ 31 file://0001-qemu-segmentation-fault-in-virtqemud-executing-qemuD.patch \
32 file://0001-prevent-gendispatch.pl-generating-build-path-in-code.patch \
32 " 33 "
33 34
34SRC_URI[libvirt.sha256sum] = "3c6c43becffeb34a3f397c616206aa69a893ff8bf5e8208393c84e8e75352934" 35SRC_URI[libvirt.sha256sum] = "3c6c43becffeb34a3f397c616206aa69a893ff8bf5e8208393c84e8e75352934"