Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] autotools.bbclass: update gnu-config files always
Date: Tue, 09 Oct 2012 23:34:51 +0100	[thread overview]
Message-ID: <1349822091.15658.196.camel@ted> (raw)
In-Reply-To: <1349812886-16922-1-git-send-email-marcin.juszkiewicz@linaro.org>

On Tue, 2012-10-09 at 22:01 +0200, Marcin Juszkiewicz wrote:
> When recipe inherits autotools it gets do_configure defined. One of
> things which are done is autoreconf so gnu-config files are updated to
> latest OE version.
> 
> But some recipes use own do_configure due to hard edited configure
> scripts or other reasons. We can edit those recipes one by one or can
> trick them and provide update gnu-config files without using
> autoreconf.
> 
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
>  meta/classes/autotools.bbclass |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
> index e4e034b..d0aad0d 100644
> --- a/meta/classes/autotools.bbclass
> +++ b/meta/classes/autotools.bbclass
> @@ -99,6 +99,12 @@ autotools_preconfigure() {
>  			mkdir ${B}
>  		fi
>  	fi
> +
> +	# not all recipes which use autotools use it's do_configure
> +	( for ac in `find ${S} -name configure.in -o -name configure.ac`; do
> +		install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess `dirname $ac`
> +		install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub   `dirname $ac`
> +		done )
>  }
>  
>  autotools_postconfigure(){

I'm not sure we want to go down this route. How about we mandate that
everything call autotools_do_configure but allow various sections of it
to be optional depending on some variables.

We could then trigger the above behaviour for recipes which disable
reautoconf?

Ideally, we should be able to reautoconf everything and we shouldn't
have exceptions at all.

The aim here is to make things more deterministic and make it clear
which code paths are being used where and why.

Cheers,

Richard




  reply	other threads:[~2012-10-09 22:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-18  8:58 Best way to update gnu-config? Marcin Juszkiewicz
2012-09-18  9:00 ` [PATCH 1/2] ncurses: Update gnu-config files to version used by OE-Core Marcin Juszkiewicz
2012-09-18  9:00   ` [PATCH 2/2] db: " Marcin Juszkiewicz
2012-09-18 11:20     ` Burton, Ross
2012-09-18 11:43       ` Marcin Juszkiewicz
2012-09-18 10:40   ` [PATCH 1/2] ncurses: " Koen Kooi
2012-09-18 10:43     ` Marcin Juszkiewicz
2012-10-08 16:32       ` [PATCH 1/4] autotools.bbclass: update gnu-config files always Marcin Juszkiewicz
2012-10-09  4:38         ` Chris Larson
2012-10-09 20:01           ` [PATCH] " Marcin Juszkiewicz
2012-10-09 22:34             ` Richard Purdie [this message]
2012-10-10 10:55               ` Marcin Juszkiewicz
2012-09-18  9:08 ` Best way to update gnu-config? Richard Purdie
2012-09-18  9:29   ` Marcin Juszkiewicz
2012-09-18 10:36     ` Richard Purdie
2012-10-03 14:51       ` Marcin Juszkiewicz
2012-10-03 17:24         ` Michael Halstead
2012-10-03 17:25           ` Marcin Juszkiewicz
2012-10-08 16:24   ` [PATCH] gnu-config: update to 2012.08.14 to get support for AArch64 architecture Marcin Juszkiewicz
  -- strict thread matches above, loose matches on Subject: below --
2012-10-03  9:51 Merging AArch64 support Marcin Juszkiewicz
2012-10-03 14:58 ` [PATCH] autotools.bbclass: update gnu-config files always Marcin Juszkiewicz

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=1349822091.15658.196.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=marcin.juszkiewicz@linaro.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