diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-01-19 00:13:39 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-22 23:42:38 +0000 |
commit | cd4313339853d2eddebf93a49d0f45a305985a31 (patch) | |
tree | 405eac03a5fc45937790f95cf67f3b9eff33bcf5 /meta/classes/insane.bbclass | |
parent | 98a98a4bf71f74b5c27291ee9a2ac14006377e49 (diff) | |
download | openembedded-core-cd4313339853d2eddebf93a49d0f45a305985a31.tar.gz openembedded-core-cd4313339853d2eddebf93a49d0f45a305985a31.tar.bz2 openembedded-core-cd4313339853d2eddebf93a49d0f45a305985a31.zip |
insane.bbclass:buildpaths: ignore ipkg/dpkg's CONTROL dir
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@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index f7781ce6fe..47988bd1e9 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -585,6 +585,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() |