Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] fixes for PACKAGECONFIG
@ 2015-07-30 15:18 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
  0 siblings, 2 replies; 11+ messages in thread
From: Robert Yang @ 2015-07-30 15:18 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 27d068d05239c26a3848eb101571acab54635e37:

  harfbuzz: upgrade to 1.0.1 (2015-07-27 23:28:23 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/pkg
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/pkg

Robert Yang (2):
  base.bbclass: move invalid PACKAGECONFIG checking to insane.bbclass
  base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()

 meta/classes/base.bbclass      |    6 ++----
 meta/classes/blacklist.bbclass |    2 ++
 meta/classes/insane.bbclass    |   11 +++++++++++
 3 files changed, 15 insertions(+), 4 deletions(-)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/2] base.bbclass: move invalid PACKAGECONFIG checking to insane.bbclass
  2015-07-30 15:18 [PATCH 0/2] fixes for PACKAGECONFIG Robert Yang
@ 2015-07-30 15:18 ` Robert Yang
  2015-07-30 15:18 ` [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags() Robert Yang
  1 sibling, 0 replies; 11+ messages in thread
From: Robert Yang @ 2015-07-30 15:18 UTC (permalink / raw)
  To: openembedded-core

There was a problem when check invalid PACKAGECONFIG in the anonymous
function (when parsing), for example, there are two versions of a
recipe:
foo_1.0.bb
foo_2.0.bb
While foo_2.0.bb has a "PACKAGECONFIG[item] = 'x,y,z'", but foo_1.0.bb
doesn't, if we set PACKAGECONFIG_pn-foo = "item" in a conf file, we
would get the warning about invalid PACKAGECONFIG for foo_1.0.bb. Delay
the checking to build time will fix the problem.

[YOCTO #8065]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes/base.bbclass   |    4 ----
 meta/classes/insane.bbclass |   11 +++++++++++
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index e0f1053..b7e22ad 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -340,10 +340,6 @@ python () {
         pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
         pn = d.getVar("PN", True)
 
-        for pconfig in pkgconfig:
-            if pconfig not in pkgconfigflags:
-                bb.warn("%s: invalid PACKAGECONFIG: %s" % (pn, pconfig))
-
         mlprefix = d.getVar("MLPREFIX", True)
 
         def expandFilter(appends, extension, prefix):
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index fc3d5ff..9c05c86 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -31,6 +31,7 @@ WARN_QA ?= "ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi \
             installed-vs-shipped compile-host-path install-host-path \
             pn-overrides infodir build-deps file-rdeps \
             unknown-configure-option symlink-to-sysroot multilib \
+            invalid-pkgconfig \
             "
 ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
             perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
@@ -1139,6 +1140,16 @@ Missing inherit gettext?""" % (gt, config))
                 package_qa_handle_error("unknown-configure-option", error_msg, d)
         except subprocess.CalledProcessError:
             pass
+
+    # 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)
 }
 
 python do_qa_unpack() {
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  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 ` Robert Yang
  2015-08-11  2:00   ` Andre McCurdy
  2015-08-11 12:45   ` Otavio Salvador
  1 sibling, 2 replies; 11+ messages in thread
From: Robert Yang @ 2015-07-30 15:18 UTC (permalink / raw)
  To: openembedded-core

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



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  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
  2015-08-11 12:45   ` Otavio Salvador
  1 sibling, 1 reply; 11+ messages in thread
From: Andre McCurdy @ 2015-08-11  2:00 UTC (permalink / raw)
  To: Robert Yang; +Cc: OE Core mailing list

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


>      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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  2015-08-11  2:00   ` Andre McCurdy
@ 2015-08-11  2:17     ` Robert Yang
  2015-08-11 14:36       ` Burton, Ross
  0 siblings, 1 reply; 11+ messages in thread
From: Robert Yang @ 2015-08-11  2:17 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE Core mailing list

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  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 12:45   ` Otavio Salvador
  2015-08-12  2:13     ` Robert Yang
  1 sibling, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2015-08-11 12:45 UTC (permalink / raw)
  To: Robert Yang; +Cc: Patches and discussions about the oe-core layer

On Thu, Jul 30, 2015 at 12:18 PM, 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>

It seems your commit log is incomplete or so as I couldn't understand
why this is need.

Also as Andre says, we ought to not break existing layer without a
very strong reason and if needed, changing documentation.conf instead
of this seems more adequate.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  2015-08-11  2:17     ` Robert Yang
@ 2015-08-11 14:36       ` Burton, Ross
  0 siblings, 0 replies; 11+ messages in thread
From: Burton, Ross @ 2015-08-11 14:36 UTC (permalink / raw)
  To: Robert Yang; +Cc: OE Core mailing list

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

On 11 August 2015 at 03:17, Robert Yang <liezhi.yang@windriver.com> wrote:

> 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 ?
>

Otavio is right - the commit doesn't explain what the problem is, and
forcibly deleting PACKAGECONFIG[doc] options is very aggressive without
good reason.

Ross

[-- Attachment #2: Type: text/html, Size: 910 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  2015-08-11 12:45   ` Otavio Salvador
@ 2015-08-12  2:13     ` Robert Yang
  2015-08-12 13:45       ` Otavio Salvador
  0 siblings, 1 reply; 11+ messages in thread
From: Robert Yang @ 2015-08-12  2:13 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: Patches and discussions about the oe-core layer



On 08/11/2015 08:45 PM, Otavio Salvador wrote:
> On Thu, Jul 30, 2015 at 12:18 PM, 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>
>
> It seems your commit log is incomplete or so as I couldn't understand
> why this is need.
>
> Also as Andre says, we ought to not break existing layer without a
> very strong reason and if needed, changing documentation.conf instead
> of this seems more adequate.
>

The code in base.bbclass is: (no remove PACKAGECONFIG[doc])

     pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
     if pkgconfigflags:
        <foo>

And documentation.conf:
PACKAGECONFIG[doc] = "This variable provides a means of enabling or disabling 
features of a recipe on a per-recipe basis."

This will make "if pkgconfigflags:" always be true and cause many unneeded
loops since there is always PACKAGECONFIG[doc].

Remove PACKAGECONFIG[doc] or comment it sounds good to me.

// Robert


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  2015-08-12  2:13     ` Robert Yang
@ 2015-08-12 13:45       ` Otavio Salvador
  2015-08-12 14:04         ` Paul Eggleton
  0 siblings, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2015-08-12 13:45 UTC (permalink / raw)
  To: Robert Yang; +Cc: Patches and discussions about the oe-core layer

On Tue, Aug 11, 2015 at 11:13 PM, Robert Yang <liezhi.yang@windriver.com> wrote:
>
>
> On 08/11/2015 08:45 PM, Otavio Salvador wrote:
>>
>> On Thu, Jul 30, 2015 at 12:18 PM, 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>
>>
>>
>> It seems your commit log is incomplete or so as I couldn't understand
>> why this is need.
>>
>> Also as Andre says, we ought to not break existing layer without a
>> very strong reason and if needed, changing documentation.conf instead
>> of this seems more adequate.
>>
>
> The code in base.bbclass is: (no remove PACKAGECONFIG[doc])
>
>     pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
>     if pkgconfigflags:
>        <foo>
>
> And documentation.conf:
> PACKAGECONFIG[doc] = "This variable provides a means of enabling or
> disabling features of a recipe on a per-recipe basis."
>
> This will make "if pkgconfigflags:" always be true and cause many unneeded
> loops since there is always PACKAGECONFIG[doc].
>
> Remove PACKAGECONFIG[doc] or comment it sounds good to me.

So documentation.conf needs change.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  2015-08-12 13:45       ` Otavio Salvador
@ 2015-08-12 14:04         ` Paul Eggleton
  2015-08-12 14:08           ` Otavio Salvador
  0 siblings, 1 reply; 11+ messages in thread
From: Paul Eggleton @ 2015-08-12 14:04 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: openembedded-core

On Wednesday 12 August 2015 10:45:29 Otavio Salvador wrote:
> On Tue, Aug 11, 2015 at 11:13 PM, Robert Yang <liezhi.yang@windriver.com> 
wrote:
> > On 08/11/2015 08:45 PM, Otavio Salvador wrote:
> >> On Thu, Jul 30, 2015 at 12:18 PM, 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>
> >> 
> >> It seems your commit log is incomplete or so as I couldn't understand
> >> why this is need.
> >> 
> >> Also as Andre says, we ought to not break existing layer without a
> >> very strong reason and if needed, changing documentation.conf instead
> >> of this seems more adequate.
> > 
> > The code in base.bbclass is: (no remove PACKAGECONFIG[doc])
> > 
> >     pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
> >     
> >     if pkgconfigflags:
> >        <foo>
> > 
> > And documentation.conf:
> > PACKAGECONFIG[doc] = "This variable provides a means of enabling or
> > disabling features of a recipe on a per-recipe basis."
> > 
> > This will make "if pkgconfigflags:" always be true and cause many unneeded
> > loops since there is always PACKAGECONFIG[doc].
> > 
> > Remove PACKAGECONFIG[doc] or comment it sounds good to me.
> 
> So documentation.conf needs change.

I'm not sure I'm particularly happy with this. Whilst its actual practical use 
is relatively recent (i.e. Toaster), documentation.conf and the doc varflag 
predate PACKAGECONFIG by quite some time. The fact that one layer has gone and 
used it is unfortunate but not unfixable.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] base.bbclass/blacklist.bbclass: remove doc item when d.getVarFlags()
  2015-08-12 14:04         ` Paul Eggleton
@ 2015-08-12 14:08           ` Otavio Salvador
  0 siblings, 0 replies; 11+ messages in thread
From: Otavio Salvador @ 2015-08-12 14:08 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: Patches and discussions about the oe-core layer

On Wed, Aug 12, 2015 at 11:04 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> On Wednesday 12 August 2015 10:45:29 Otavio Salvador wrote:
>> On Tue, Aug 11, 2015 at 11:13 PM, Robert Yang <liezhi.yang@windriver.com>
> wrote:
>> > On 08/11/2015 08:45 PM, Otavio Salvador wrote:
>> >> On Thu, Jul 30, 2015 at 12:18 PM, 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>
>> >>
>> >> It seems your commit log is incomplete or so as I couldn't understand
>> >> why this is need.
>> >>
>> >> Also as Andre says, we ought to not break existing layer without a
>> >> very strong reason and if needed, changing documentation.conf instead
>> >> of this seems more adequate.
>> >
>> > The code in base.bbclass is: (no remove PACKAGECONFIG[doc])
>> >
>> >     pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
>> >
>> >     if pkgconfigflags:
>> >        <foo>
>> >
>> > And documentation.conf:
>> > PACKAGECONFIG[doc] = "This variable provides a means of enabling or
>> > disabling features of a recipe on a per-recipe basis."
>> >
>> > This will make "if pkgconfigflags:" always be true and cause many unneeded
>> > loops since there is always PACKAGECONFIG[doc].
>> >
>> > Remove PACKAGECONFIG[doc] or comment it sounds good to me.
>>
>> So documentation.conf needs change.
>
> I'm not sure I'm particularly happy with this. Whilst its actual practical use
> is relatively recent (i.e. Toaster), documentation.conf and the doc varflag
> predate PACKAGECONFIG by quite some time. The fact that one layer has gone and
> used it is unfortunate but not unfixable.

I understand but this kind of magic keyword is misleading and
confusing for users.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-08-12 14:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox