summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2011-07-15 12:19:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-20 15:48:41 +0100
commit207a2176bdebe217daf81d5c5b1d2ab4ab2e6adc (patch)
tree880e3fc8a0f539bf896d693dc27509b24d6e129a
parent0d03800caffc2341b74190d38f7a372223c89f4c (diff)
downloadopenembedded-core-207a2176bdebe217daf81d5c5b1d2ab4ab2e6adc.tar.gz
openembedded-core-207a2176bdebe217daf81d5c5b1d2ab4ab2e6adc.tar.bz2
openembedded-core-207a2176bdebe217daf81d5c5b1d2ab4ab2e6adc.zip
insane: improve diagnostic for redundant rpath
Make it more obvious which file, and which recipe, are at issue. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/insane.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index c45f2cb4b3..65eda9ee6f 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -142,7 +142,7 @@ def package_qa_check_rpath(file,name, d, elf, messages):
messages.append("package %s contains bad RPATH %s in file %s" % (name, line, file))
QAPATHTEST[useless-rpaths] = "package_qa_check_useless_rpaths"
-def package_qa_check_useless_rpaths(file,name, d, elf, messages):
+def package_qa_check_useless_rpaths(file, name, d, elf, messages):
"""
Check for RPATHs that are useless but not dangerous
"""
@@ -164,7 +164,7 @@ def package_qa_check_useless_rpaths(file,name, d, elf, messages):
if rpath == libdir or rpath == base_libdir:
# The dynamic linker searches both these places anyway. There is no point in
# looking there again.
- messages.append("dynamic section contains probably-redundant RPATH %s" % rpath)
+ messages.append("%s: %s contains probably-redundant RPATH %s" % (name, package_qa_clean_path(file, d), rpath))
QAPATHTEST[dev-so] = "package_qa_check_dev"
def package_qa_check_dev(path, name, d, elf, messages):