From: Robert Yang <liezhi.yang@windriver.com>
To: Andre McCurdy <armccurdy@gmail.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
Date: Tue, 11 Aug 2015 10:17:48 +0800 [thread overview]
Message-ID: <55C95B4C.9080505@windriver.com> (raw)
In-Reply-To: <CAJ86T=W=_iETkpDyVJqUD0g6xkd_xhpXf_jtUCGmXe-Mt+fjxQ@mail.gmail.com>
On 08/11/2015 10:00 AM, Andre McCurdy wrote:
> On Thu, Jul 30, 2015 at 8:18 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
>> The FOO[doc] is set in meta/conf/documentation.conf, we need remove it
>> from d.getVarFlags()'s return dict when it causes many loops.
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> meta/classes/base.bbclass | 2 ++
>> meta/classes/blacklist.bbclass | 2 ++
>> 2 files changed, 4 insertions(+)
>>
>> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
>> index b7e22ad..9e33f44 100644
>> --- a/meta/classes/base.bbclass
>> +++ b/meta/classes/base.bbclass
>> @@ -336,6 +336,8 @@ python () {
>> # PACKAGECONFIG ??= "<default options>"
>> # PACKAGECONFIG[foo] = "--enable-foo,--disable-foo,foo_depends,foo_runtime_depends"
>> pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
>> + # Remove PACKAGECONFIG[doc]
>> + pkgconfigflags.pop('doc', None)
>
> This change breaks recipes which try to use 'doc' as a PACKAGECONFIG
> option. Nothing in oe-core tries to do that, but there are recipes in
> other layers which do (e.g. efl in meta-oe and lxc in
> meta-virtualization).
>
> Could this change we reworked somehow to allow 'doc' to continue to be
> used as a PACKAGECONFIG option (as it is in fido)?
Hi Andre,
I'm afraid that there isn't any other way to fix the issue (many
unneeded loops caused by PACKAGECONFIG[doc] which is set by
documentation.conf), maybe you can change 'doc' to such as 'docs' in
other layers ?
// Robert
>
>
>> if pkgconfigflags:
>> pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
>> pn = d.getVar("PN", True)
>> diff --git a/meta/classes/blacklist.bbclass b/meta/classes/blacklist.bbclass
>> index a0141a8..39b3f82 100644
>> --- a/meta/classes/blacklist.bbclass
>> +++ b/meta/classes/blacklist.bbclass
>> @@ -28,6 +28,8 @@ python blacklist_multilib_eventhandler() {
>> prefixes.append(eext[1])
>>
>> blacklists = e.data.getVarFlags('PNBLACKLIST') or {}
>> + # Remove PNBLACKLIST[doc]
>> + blacklists.pop('doc', None)
>> for pkg, reason in blacklists.items():
>> if pkg.endswith(("-native", "-crosssdk")) or pkg.startswith(("nativesdk-", "virtual/nativesdk-")) or 'cross-canadian' in pkg:
>> continue
>> --
>> 1.7.9.5
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
next prev parent reply other threads:[~2015-08-11 2:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 15:18 [PATCH 0/2] fixes for PACKAGECONFIG Robert Yang
2015-07-30 15:18 ` [PATCH 1/2] base.bbclass: move invalid PACKAGECONFIG checking to insane.bbclass Robert Yang
2015-07-30 15:18 ` [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags() Robert Yang
2015-08-11 2:00 ` Andre McCurdy
2015-08-11 2:17 ` Robert Yang [this message]
2015-08-11 14:36 ` Burton, Ross
2015-08-11 12:45 ` Otavio Salvador
2015-08-12 2:13 ` Robert Yang
2015-08-12 13:45 ` Otavio Salvador
2015-08-12 14:04 ` Paul Eggleton
2015-08-12 14:08 ` Otavio Salvador
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=55C95B4C.9080505@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=armccurdy@gmail.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