]> code.ossystems Code Review - openembedded-core.git/commitdiff
insane: improve textrel warning message
authorRoss Burton <ross.burton@intel.com>
Mon, 11 Nov 2019 12:45:12 +0000 (12:45 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Nov 2019 12:55:56 +0000 (12:55 +0000)
Clean the displayed path so it clearly shows the package name and path in that
package.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/insane.bbclass

index 9605ac2baeefb506d81e78b7b5ae59a2d1ca581b..f856cf6a2b6bf3f765cf446e625ee71ca739ef90 100644 (file)
@@ -340,9 +340,11 @@ def package_qa_textrel(path, name, d, elf, messages):
     for line in phdrs.split("\n"):
         if textrel_re.match(line):
             sane = False
+            break
 
     if not sane:
-        package_qa_add_message(messages, "textrel", "ELF binary '%s' has relocations in .text" % path)
+        path = package_qa_clean_path(path, d, name)
+        package_qa_add_message(messages, "textrel", "%s: ELF binary %s has relocations in .text" % (name, path))
 
 QAPATHTEST[ldflags] = "package_qa_hash_style"
 def package_qa_hash_style(path, name, d, elf, messages):