* [PATCH] gtk-doc.bbclass: unbreak dependency-chain for native recipes
@ 2012-07-26 15:16 Andreas Müller
2012-07-26 15:19 ` Burton, Ross
2012-07-26 15:59 ` Richard Purdie
0 siblings, 2 replies; 5+ messages in thread
From: Andreas Müller @ 2012-07-26 15:16 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
meta/classes/gtk-doc.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass
index 8a312f5..be10c75 100644
--- a/meta/classes/gtk-doc.bbclass
+++ b/meta/classes/gtk-doc.bbclass
@@ -7,7 +7,7 @@
# packages up any existing documentation (so from tarball builds).
DEPENDS_append = " gtk-doc-stub-native"
-DEPENDS_virtclass-native_append = " gtk-doc-stub-native"
+DEPENDS_append_virtclass-native = " gtk-doc-stub-native"
EXTRA_OECONF_append = "\
--disable-gtk-doc \
--
1.7.6.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] gtk-doc.bbclass: unbreak dependency-chain for native recipes
2012-07-26 15:16 [PATCH] gtk-doc.bbclass: unbreak dependency-chain for native recipes Andreas Müller
@ 2012-07-26 15:19 ` Burton, Ross
2012-07-26 15:35 ` Andreas Müller
2012-07-26 15:59 ` Richard Purdie
1 sibling, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2012-07-26 15:19 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 26 July 2012 16:16, Andreas Müller <schnitzeltony@googlemail.com> wrote:
> -DEPENDS_virtclass-native_append = " gtk-doc-stub-native"
> +DEPENDS_append_virtclass-native = " gtk-doc-stub-native"
Was this a typo on my part, or is there a semantic difference between those?
Ross
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gtk-doc.bbclass: unbreak dependency-chain for native recipes
2012-07-26 15:19 ` Burton, Ross
@ 2012-07-26 15:35 ` Andreas Müller
2012-07-26 15:49 ` Chris Larson
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Müller @ 2012-07-26 15:35 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, Jul 26, 2012 at 5:19 PM, Burton, Ross <ross.burton@intel.com> wrote:
> On 26 July 2012 16:16, Andreas Müller <schnitzeltony@googlemail.com> wrote:
>> -DEPENDS_virtclass-native_append = " gtk-doc-stub-native"
>> +DEPENDS_append_virtclass-native = " gtk-doc-stub-native"
>
> Was this a typo on my part, or is there a semantic difference between those?
>
> Ross
>
It is not an answer to your question but
I grepped for DEPENDS_virtclass-native_append in oe-core and did find
one occurrence in gtk-doc.bbclass. DEPENDS_append_virtclass-native I
found in xcb-proto.inc so I gave it a try by
bitbake -e atk-native | grep ^DEPENDS
A correct answer to your question is up to experts :)
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gtk-doc.bbclass: unbreak dependency-chain for native recipes
2012-07-26 15:35 ` Andreas Müller
@ 2012-07-26 15:49 ` Chris Larson
0 siblings, 0 replies; 5+ messages in thread
From: Chris Larson @ 2012-07-26 15:49 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, Jul 26, 2012 at 8:35 AM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Thu, Jul 26, 2012 at 5:19 PM, Burton, Ross <ross.burton@intel.com> wrote:
>> On 26 July 2012 16:16, Andreas Müller <schnitzeltony@googlemail.com> wrote:
>>> -DEPENDS_virtclass-native_append = " gtk-doc-stub-native"
>>> +DEPENDS_append_virtclass-native = " gtk-doc-stub-native"
>>
>> Was this a typo on my part, or is there a semantic difference between those?
>>
>> Ross
>>
> It is not an answer to your question but
>
> I grepped for DEPENDS_virtclass-native_append in oe-core and did find
> one occurrence in gtk-doc.bbclass. DEPENDS_append_virtclass-native I
> found in xcb-proto.inc so I gave it a try by
>
> bitbake -e atk-native | grep ^DEPENDS
DEPENDS = "alpha"
DEPENDS_virtclass-native_append = "foo"
End result for native: the latter is applied, resulting in a
'DEPENDS_virtclass-native' whose contents are just 'foo'. Then
DEPENDS_virtclass-native overwrites DEPENDS, resulting in the main
variable only containing the bits you appended, not the original
contents.
To sum up, _<override>_append appends to the override, which then
overwrites the original, whereas _append_<override> appends directly
to the main variable, conditionally on the override.
I'm not sure if that clears it up.. I've never been good at describing
this. For reference, I'm pretty sure we put something in the bitbake
manual about this circumstance specifically, since we chose to leave
it this way to retain maximum flexibility when writing the code, but
realized that it was a potential source of confusion.
--
Christopher Larson
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] gtk-doc.bbclass: unbreak dependency-chain for native recipes
2012-07-26 15:16 [PATCH] gtk-doc.bbclass: unbreak dependency-chain for native recipes Andreas Müller
2012-07-26 15:19 ` Burton, Ross
@ 2012-07-26 15:59 ` Richard Purdie
1 sibling, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2012-07-26 15:59 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2012-07-26 at 17:16 +0200, Andreas Müller wrote:
> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
> ---
> meta/classes/gtk-doc.bbclass | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass
> index 8a312f5..be10c75 100644
> --- a/meta/classes/gtk-doc.bbclass
> +++ b/meta/classes/gtk-doc.bbclass
> @@ -7,7 +7,7 @@
> # packages up any existing documentation (so from tarball builds).
>
> DEPENDS_append = " gtk-doc-stub-native"
> -DEPENDS_virtclass-native_append = " gtk-doc-stub-native"
> +DEPENDS_append_virtclass-native = " gtk-doc-stub-native"
>
> EXTRA_OECONF_append = "\
> --disable-gtk-doc \
What happens if we simply remove this line entirely?
Do we have any recipes setting DEPENDS_virtclass-native which also use
this class? If so, we might end up just hardcoding things...
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-26 16:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 15:16 [PATCH] gtk-doc.bbclass: unbreak dependency-chain for native recipes Andreas Müller
2012-07-26 15:19 ` Burton, Ross
2012-07-26 15:35 ` Andreas Müller
2012-07-26 15:49 ` Chris Larson
2012-07-26 15:59 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox