All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olof Johansson <olof.johansson@axis.com>
To: Robert Yang <liezhi.yang@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] base.bbclass: Don't warn about "invalid" PACKAGECONFIGs by default
Date: Thu, 30 Jul 2015 13:24:29 +0200	[thread overview]
Message-ID: <1438255416-sup-6247@axis.com> (raw)
In-Reply-To: <55B9F7A5.3040100@windriver.com>

Excerpts from Robert Yang's message of 2015-07-30 12:08:37 +0200:
> I have a new patch for this, it will be moved into insane.bbclass,
> and the recipe can set INSANE_SKIP:
> +
> +    # Check invalid PACKAGECONFIG
> +    pkgconfig = (d.getVar("PACKAGECONFIG", True) or "").split()
> +    if pkgconfig:
> +        pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
> +        for pconfig in pkgconfig:
> +            if pconfig not in pkgconfigflags:
> +                pn = d.getVar('PN', True)
> +                error_msg = "%s: invalid PACKAGECONFIG: %s" % (pn, pconfig)
> +                package_qa_handle_error("invalid-pkgconfig", error_msg, d)
> 
> I'm testing it, and will send it out sooner.

Thanks, such a patch would work nicely with my use case!

-- 
olof johansson


  reply	other threads:[~2015-07-30 11:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30  9:43 [PATCH] base.bbclass: Don't warn about "invalid" PACKAGECONFIGs by default Olof Johansson
2015-07-30  9:53 ` Burton, Ross
2015-07-30 10:14   ` Olof Johansson
2015-07-30 10:08 ` Robert Yang
2015-07-30 11:24   ` Olof Johansson [this message]
2015-07-30 15:21     ` Robert Yang

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=1438255416-sup-6247@axis.com \
    --to=olof.johansson@axis.com \
    --cc=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 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.