* [PATCH 0/1] insane.bbclass: ignore ipkg/dpkg's CONTROL dir
@ 2016-01-19 9:36 Robert Yang
2016-01-19 9:36 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 3+ messages in thread
From: Robert Yang @ 2016-01-19 9:36 UTC (permalink / raw)
To: openembedded-core
The following changes since commit aafe22fb5f2f58e1e7206a34f410e9cae0d3cfe3:
e2fsprogs: fix PV (2016-01-19 08:53:02 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/ipk
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/ipk
Robert Yang (1):
insane.bbclass: ignore ipkg/dpkg's CONTROL dir
meta/classes/insane.bbclass | 4 ++++
1 file changed, 4 insertions(+)
--
1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] insane.bbclass: ignore ipkg/dpkg's CONTROL dir
2016-01-19 9:36 [PATCH 0/1] insane.bbclass: ignore ipkg/dpkg's CONTROL dir Robert Yang
@ 2016-01-19 9:36 ` Robert Yang
2016-01-19 9:41 ` [PATCH 1/1] insane.bbclass:buildpaths: " Robert Yang
0 siblings, 1 reply; 3+ messages in thread
From: Robert Yang @ 2016-01-19 9:36 UTC (permalink / raw)
To: openembedded-core
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>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] insane.bbclass:buildpaths: ignore ipkg/dpkg's CONTROL dir
2016-01-19 9:36 ` [PATCH 1/1] " Robert Yang
@ 2016-01-19 9:41 ` Robert Yang
0 siblings, 0 replies; 3+ messages in thread
From: Robert Yang @ 2016-01-19 9:41 UTC (permalink / raw)
To: openembedded-core
Update the subjected line a little in the repo:
insane.bbclass:buildpaths: ignore ipkg/dpkg's CONTROL dir
git://git.openembedded.org/openembedded-core-contrib rbt/ipk
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/ipk
Robert Yang (1):
insane.bbclass:buildpaths: ignore ipkg/dpkg's CONTROL dir
* Changes, added ":buildpaths" which is more accurate.
// Robert
On 01/19/2016 05:36 PM, Robert Yang wrote:
> 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>
> ---
> 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()
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-19 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-19 9:36 [PATCH 0/1] insane.bbclass: ignore ipkg/dpkg's CONTROL dir Robert Yang
2016-01-19 9:36 ` [PATCH 1/1] " Robert Yang
2016-01-19 9:41 ` [PATCH 1/1] insane.bbclass:buildpaths: " Robert Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.