aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/libvirt/libvirt/0001-prevent-gendispatch.pl-generating-build-path-in-code.patch
blob: defbd7ee975b28204bd5ff41dccbb9ced6e7a64b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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(-)

Index: libvirt-9.2.0/src/rpc/gendispatch.pl
===================================================================
--- libvirt-9.2.0.orig/src/rpc/gendispatch.pl
+++ libvirt-9.2.0/src/rpc/gendispatch.pl
@@ -449,12 +449,12 @@
 
 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__
 } 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__