aboutsummaryrefslogtreecommitdiffstats
path: root/classes/insane.bbclass
diff options
context:
space:
mode:
authorLeon Woestenberg <leon.woestenberg@gmail.com>2007-04-26 16:54:09 +0000
committerLeon Woestenberg <leon.woestenberg@gmail.com>2007-04-26 16:54:09 +0000
commit7b5dda2b674bff1ec9bf0f58bbbf402b8a66d481 (patch)
treebd125f52e755f1f659c039ca3fa24f01efc4c21e /classes/insane.bbclass
parent908abeae497d81c0afd6381c08311aa45555157b (diff)
downloadopenembedded-7b5dda2b674bff1ec9bf0f58bbbf402b8a66d481.tar.gz
insane.bbclass: Broaden check for RPATHs by removing work/ path component.
Diffstat (limited to 'classes/insane.bbclass')
-rw-r--r--classes/insane.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 15e2061239..9f1ec3b000 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -203,6 +203,7 @@ def package_qa_check_rpath(file,name,d):
import bb, os
scanelf = os.path.join(bb.data.getVar('STAGING_BINDIR_NATIVE',d,True),'scanelf')
bad_dir = bb.data.getVar('TMPDIR', d, True) + "/work"
+ bad_dir_test = bb.data.getVar('TMPDIR', d, True)
if not os.path.exists(scanelf):
bb.fatal("Can not check RPATH scanelf not found")
if not bad_dir in bb.data.getVar('WORKDIR', d, True):
@@ -211,7 +212,7 @@ def package_qa_check_rpath(file,name,d):
output = os.popen("%s -Byr %s" % (scanelf,file))
txt = output.readline().split()
for line in txt:
- if bad_dir in line:
+ if bad_dir_test in line:
package_qa_write_error( 1, name, file, d)
bb.error("QA Issue package %s contains bad RPATH %s in file %s" % (name, line, file))
return False
@@ -405,7 +406,7 @@ python do_package_qa () {
rdepends_sane = False
if not walk_sane or not rdepends_sane:
- bb.fatal("QA ran found fatal errors. Please consider fixing them")
+ bb.fatal("QA run found fatal errors. Please consider fixing them.")
bb.note("DONE with PACKAGE QA")
}