[OE-core] [PATCH 1/1] insane.bbclass: ignore ipkg/dpkg's CONTROL dir
Robert Yang
liezhi.yang at windriver.com
Tue Jan 19 09:36:04 UTC 2016
Fixed race issue when:
WARN_QA_append = " buildpaths"
PACKAGE_CLASSES = "package_ipk"
$ bitbake e2fsprogs
[snip]
*** 0595: with open(path) as f:
0596: file_content = f.read()
0597: if tmpdir in file_content:
0598: messages["buildpaths"] = "File %s in package contained reference to tmpdir" % package_qa_clean_path(path,d)
0599:
Exception: IOError: [Errno 2] No such file or directory: '/path/to/tmp/work/core2-64-poky-linux/e2fsprogs/1.42.9-r0/packages-split/e2fsprogs-ptest/CONTROL/control'
The similar to package_deb.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/classes/insane.bbclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index ba9c651..c16e6ad 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -584,6 +584,10 @@ def package_qa_check_buildpaths(path, name, d, elf, messages):
if os.path.islink(path):
return
+ # Ignore ipk and deb's CONTROL dir
+ if path.find(name + "/CONTROL/") != -1 or path.find(name + "/DEBIAN/") != -1:
+ return
+
tmpdir = d.getVar('TMPDIR', True)
with open(path) as f:
file_content = f.read()
--
1.7.9.5
More information about the Openembedded-core
mailing list