Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 02/26] change gtk-doc.bbclass to pull in depends and oeconf
Date: Thu, 19 Jul 2012 17:43:32 +0100	[thread overview]
Message-ID: <1342716212.21788.3.camel@ted> (raw)
In-Reply-To: <24f8f05067f1d4ac201dbda0247ffc7cc521b7b6.1342713965.git.ross.burton@intel.com>

On Thu, 2012-07-19 at 17:10 +0100, Ross Burton wrote:
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
>  meta/classes/gtk-doc.bbclass |   20 ++++++++++++++++----
>  1 file changed, 16 insertions(+), 4 deletions(-)
> 
> diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass
> index 58daaf3..6a3854f 100644
> --- a/meta/classes/gtk-doc.bbclass
> +++ b/meta/classes/gtk-doc.bbclass
> @@ -1,4 +1,16 @@
> -# We don't have gtk-doc so disable it
> -do_configure_prepend() {
> -	echo "EXTRA_DIST=">> ${S}/gtk-doc.make
> -}
> +# Helper class to pull in the right gtk-doc dependencies and disable
> +# gtk-doc.
> +#
> +# Long-term it would be great if this class could be toggled between
> +# gtk-doc-stub-native and the real gtk-doc-native, which would enable
> +# re-generation of documentation.  For now, we'll make do with this which
> +# packages up any existing documentation (so from tarball builds).
> +
> +DEPENDS += "gtk-doc-stub-native"
> +DEPENDS_virtclass-native += "gtk-doc-stub-native"
> +

Ok, now I understand why this needs to be an append.

Take a recipe like glib which has:

DEPENDS = "x"
DEPENDS_virtclass-native = "y"

Depending on inherit order, 

DEPENDS_virtclass-native += "gtk-doc-stub-native"

may append to DEPENDS_virtclass-native, or it may get overwritten by the
direct assignment if that happens second.

On the other hand, if you do:

DEPENDS_virtclass-native_append = " gtk-doc-stub-native"

you stand a better change of getting the behaviour you want as it can't
get overwritten.

Cheers,

Richard





  reply	other threads:[~2012-07-19 16:55 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 16:10 [PATCH 00/26] Use gtk-doc-stub Ross Burton
2012-07-19 16:10 ` [PATCH 01/26] Add gtk-doc-stub Ross Burton
2012-07-19 16:10 ` [PATCH 02/26] change gtk-doc.bbclass to pull in depends and oeconf Ross Burton
2012-07-19 16:43   ` Richard Purdie [this message]
2012-07-19 18:47     ` Ross Burton
2012-07-19 18:47       ` [PATCH] " Ross Burton
2012-07-19 16:10 ` [PATCH 03/26] glib-2.0: cleanup thanks to new gtk-doc.bbclass Ross Burton
2012-07-19 16:10 ` [PATCH 04/26] gconf: " Ross Burton
2012-07-19 16:10 ` [PATCH 05/26] gobject-introspection: " Ross Burton
2012-07-19 16:10 ` [PATCH 06/26] cogl: " Ross Burton
2012-07-19 16:10 ` [PATCH 07/26] gypsy: inherit gtk-doc Ross Burton
2012-07-19 16:10 ` [PATCH 08/26] gconf: cleanup thanks to new gtk-doc.bbclass Ross Burton
2012-07-19 16:10 ` [PATCH 09/26] connman: " Ross Burton
2012-07-19 16:10 ` [PATCH 10/26] polkit: " Ross Burton
2012-07-19 16:10 ` [PATCH 11/26] polkit-gnome: " Ross Burton
2012-07-19 16:10 ` [PATCH 12/26] gail: " Ross Burton
2012-07-19 16:11 ` [PATCH 13/26] gnome-keyring: " Ross Burton
2012-07-19 16:11 ` [PATCH 14/26] libart_lgpl: " Ross Burton
2012-07-19 16:11 ` [PATCH 15/26] libgnome-keyring: " Ross Burton
2012-07-19 16:11 ` [PATCH 16/26] gtk+: " Ross Burton
2012-07-19 16:11 ` [PATCH 17/26] libglade: " Ross Burton
2012-07-19 16:11 ` [PATCH 18/26] librsvg: " Ross Burton
2012-07-19 16:11 ` [PATCH 19/26] clutter: " Ross Burton
2012-07-19 16:11 ` [PATCH 20/26] pango: " Ross Burton
2012-07-19 16:11 ` [PATCH 21/26] kmod: inherit gtk-doc, gnome-doc-utils-native isn't the package you were looking for Ross Burton
2012-07-19 16:11 ` [PATCH 22/26] evolution-data-server: cleanup thanks to new gtk-doc.bbclass Ross Burton
2012-07-19 16:11 ` [PATCH 23/26] webkit-gtk: " Ross Burton
2012-07-19 16:11 ` [PATCH 24/26] atk: " Ross Burton
2012-07-19 16:11 ` [PATCH 25/26] vte: " Ross Burton
2012-07-19 16:11 ` [PATCH 26/26] Remove gtk-doc Ross Burton
2012-07-20  4:42 ` [PATCH 00/26] Use gtk-doc-stub Saul Wold
2012-07-20  7:03   ` Ross Burton
2012-07-20  9:28     ` Burton, Ross
2012-07-23 18:12 ` Saul Wold

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=1342716212.21788.3.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --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