Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Robert Yang <liezhi.yang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] insane.bbclass:buildpaths: ignore ipkg/dpkg's CONTROL dir
Date: Tue, 19 Jan 2016 17:41:03 +0800	[thread overview]
Message-ID: <569E04AF.5090402@windriver.com> (raw)
In-Reply-To: <bb110858045d626bc56fb43920ae9acda71d038c.1453196137.git.liezhi.yang@windriver.com>


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()
>


      reply	other threads:[~2016-01-19  9:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Robert Yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=569E04AF.5090402@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox