summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-06-18 11:43:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-19 12:46:44 +0100
commitad3f53dfe4b46808ad0e7e26269d47604081baea (patch)
tree65de923e30c939a86e44de7bf7f81466ed26a722 /meta/classes
parent5a0f3b18b2643a70ab543cbf49c2c3fa489988be (diff)
downloadpoky-ad3f53dfe4b46808ad0e7e26269d47604081baea.tar.gz
insane: improve buildpath warning messages
Instead of reporting large chunks of the work directory and not the package name: "File /work/corei7-64-poky-linux/libidn2/2.2.0-r0/packages-split/libidn2-dev/usr/lib/pkgconfig/libidn2.pc in package contained reference to tmpdir" We can clean up the paths and be more useful: "File /usr/lib/pkgconfig/libidn2.pc in package libidn2-dev contains reference to TMPDIR" (From OE-Core rev: 156329247b40e9ee97e6249468ac3b9af4dffb68) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index fdc20c41a5..0fb5fee061 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -408,7 +408,8 @@ def package_qa_check_buildpaths(path, name, d, elf, messages):
408 with open(path, 'rb') as f: 408 with open(path, 'rb') as f:
409 file_content = f.read() 409 file_content = f.read()
410 if tmpdir in file_content: 410 if tmpdir in file_content:
411 package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)) 411 trimmed = path.replace(os.path.join (d.getVar("PKGDEST"), name), "")
412 package_qa_add_message(messages, "buildpaths", "File %s in package %s contains reference to TMPDIR" % (trimmed, name))
412 413
413 414
414QAPATHTEST[xorg-driver-abi] = "package_qa_check_xorg_driver_abi" 415QAPATHTEST[xorg-driver-abi] = "package_qa_check_xorg_driver_abi"