Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: obtaining configure args from config.status (was: Update rebuild  rules in non-automake directories.)
Date: Sun, 06 Sep 2009 18:15:00 -0000	[thread overview]
Message-ID: <20090906181456.GC14167@gmx.de> (raw)
In-Reply-To: <20090831202938.GC21485@gmx.de>

Ping <http://sourceware.org/ml/gdb-patches/2009-08/msg00592.html>

* Ralf Wildenhues wrote on Mon, Aug 31, 2009 at 10:29:39PM CEST:
> OK to apply?

> Fix parallel check//% rule in gdb.
> 
> 2009-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
> 
> 	* gdb/Makefile.in (check//%): Parse 'config.status --version'
> 	output to recreate the configuration from the testsuite directory,
> 	rather than running 'config.status --recheck' from a different
> 	build directory.  Let configure do the recursion rather than
> 	doing it manually.
> 
> 
> diff --git a/gdb/Makefile.in b/gdb/Makefile.in
> index 90c285f..7bc02cd 100644
> --- a/gdb/Makefile.in
> +++ b/gdb/Makefile.in
> @@ -888,6 +888,7 @@ check: force
>  # a shell that expands alternations within braces.  If GNU make is not
>  # used, this rule will harmlessly fail to match.  Used FORCE_PARALLEL to
>  # prevent serialized checking due to the passed RUNTESTFLAGS.
> +# FIXME: use config.status --config not --version, when available.
>  check//%: force
>  	@if [ -f testsuite/config.status ]; then \
>  	  rootme=`pwd`; export rootme; \
> @@ -896,14 +897,14 @@ check//%: force
>  	  variant=`echo "$@" | sed 's,^[^/]*//,,'`; \
>  	  vardots=`echo "$$variant" | sed 's,/,.,g'`; \
>  	  testdir=testsuite.$$vardots; \
> -	  if [ ! -f $$testdir/Makefile ]; then \
> -	    (cd testsuite && find . -name config.status) | \
> -	    sed s,/config.status$$,, | sort | while read subdir; do \
> -	      $(SHELL) $(srcdir)/../mkinstalldirs $$testdir/$$subdir && \
> -	      (cd $$testdir/$$subdir && \
> -	       $(SHELL) $$rootme/testsuite/$$subdir/config.status \
> -		 --recheck && \
> -	       $(SHELL) ./config.status); done; \
> +	  if [ ! -f $$testdir/Makefile ] && [ -f testsuite/config.status ]; then \
> +	    configargs=`cd testsuite && ./config.status --version | \
> +	      sed -n -e 's,"$$,,' -e 's,^ *with options ",,p'`; \
> +	    $(SHELL) $(srcdir)/../mkinstalldirs $$testdir && \
> +	    (cd $$testdir && \
> +	     eval $(SHELL) "\"\$$rootsrc/testsuite/configure\" $$configargs" \
> +			   "\"--srcdir=\$$rootsrc/testsuite\"" \
> +	     ); \
>  	  else :; fi && cd $$testdir && \
>  	  $(MAKE) $(TARGET_FLAGS_TO_PASS) \
>  	    RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \


  parent reply	other threads:[~2009-09-06 18:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090628183334.GA5401@gmx.de>
2009-07-28 18:54 ` Update rebuild rules in non-automake directories Ralf Wildenhues
2009-07-28 19:51   ` Paolo Bonzini
2009-07-28 21:35   ` Tom Tromey
2009-07-29  3:09     ` Samuel Bronson
2009-07-29  5:31       ` Tom Tromey
2009-07-29 16:15       ` Ralf Wildenhues
2009-07-29 18:35         ` Samuel Bronson
2009-07-29 18:37         ` Tom Tromey
2009-07-30 21:27     ` Ralf Wildenhues
     [not found]     ` <20090730210952.GD24465__15749.4424529888$1248988226$gmane$org@gmx.de>
2009-07-30 21:30       ` Tom Tromey
2009-07-29 15:16   ` Ben Elliston
2009-08-26 16:29   ` Jan Kratochvil
2009-08-26 16:54     ` Ralf Wildenhues
2009-08-26 17:10       ` Jan Kratochvil
2009-08-26 17:51         ` Ralf Wildenhues
2009-08-26 17:57           ` Eli Zaretskii
2009-08-26 19:13           ` Jan Kratochvil
2009-08-31 20:42         ` obtaining configure args from config.status (was: Update rebuild rules in non-automake directories.) Ralf Wildenhues
2009-09-01  1:10           ` obtaining configure args from config.status Paolo Bonzini
2009-09-06 18:15           ` Ralf Wildenhues [this message]
2009-09-08 18:37             ` Tom Tromey
2009-09-08 16:28           ` Jan Kratochvil
2009-09-08 18:26             ` Ralf Wildenhues
2009-09-08 18:38               ` Tom Tromey
2009-09-08 18:51                 ` Ralf Wildenhues

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=20090906181456.GC14167@gmx.de \
    --to=ralf.wildenhues@gmx.de \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    /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