]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane: improve gnu-hash-style warning
authorRoss Burton <ross@burtonini.com>
Wed, 2 Sep 2020 10:41:53 +0000 (11:41 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 3 Sep 2020 03:12:28 +0000 (17:12 -1000)
Instead of showing a filename under packages-split, show the package
name and filename inside the package.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 4f78fc65bb0c9bff05651d9e543bab3d75998f79)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/insane.bbclass

index 12ae44d4d10e1a10d9301c17c8991c5f153a6b45..c595080bdff34dd703a088ed09f638ae08cd1c44 100644 (file)
@@ -442,7 +442,8 @@ def package_qa_hash_style(path, name, d, elf, messages):
         if ("[mips32]" in line or "[mips64]" in line) and d.getVar('TCLIBC') == "musl":
             sane = True
     if has_syms and not sane:
-        package_qa_add_message(messages, "ldflags", "No GNU_HASH in the ELF binary %s, didn't pass LDFLAGS?" % path)
+        path = package_qa_clean_path(path, d, name)
+        package_qa_add_message(messages, "ldflags", "File %s in package %s doesn't have GNU_HASH (didn't pass LDFLAGS?)" % (path, name))
 
 
 QAPATHTEST[buildpaths] = "package_qa_check_buildpaths"