[oe-commits] [openembedded-core] 08/15: insane: improve buildpath warning messages

git at git.openembedded.org git at git.openembedded.org
Tue Jun 18 14:56:34 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 156329247b40e9ee97e6249468ac3b9af4dffb68
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Tue Jun 18 11:43:43 2019 +0100

    insane: improve buildpath warning messages
    Instead of reporting large chunks of the work directory and not the package
    "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"
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 meta/classes/insane.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index fdc20c4..0fb5fee 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):
     with open(path, 'rb') as f:
         file_content = f.read()
         if tmpdir in file_content:
-            package_qa_add_message(messages, "buildpaths", "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d))
+            trimmed = path.replace(os.path.join (d.getVar("PKGDEST"), name), "")
+            package_qa_add_message(messages, "buildpaths", "File %s in package %s contains reference to TMPDIR" % (trimmed, name))
 QAPATHTEST[xorg-driver-abi] = "package_qa_check_xorg_driver_abi"

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list