From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21089 invoked by alias); 6 Sep 2009 18:15:09 -0000 Received: (qmail 21078 invoked by uid 22791); 6 Sep 2009 18:15:07 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_66,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 06 Sep 2009 18:15:01 +0000 Received: (qmail invoked by alias); 06 Sep 2009 18:14:57 -0000 Received: from xdsl-87-78-135-11.netcologne.de (EHLO localhost.localdomain) [87.78.135.11] by mail.gmx.net (mp065) with SMTP; 06 Sep 2009 20:14:57 +0200 Received: from ralf by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1MkMGP-0003io-6N; Sun, 06 Sep 2009 20:14:57 +0200 Date: Sun, 06 Sep 2009 18:15:00 -0000 From: Ralf Wildenhues To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: obtaining configure args from config.status (was: Update rebuild rules in non-automake directories.) Message-ID: <20090906181456.GC14167@gmx.de> References: <20090628183334.GA5401@gmx.de> <20090728181748.GA3134@gmx.de> <20090826151719.GA22276@host0.dyn.jankratochvil.net> <20090826164636.GA15791@ins.uni-bonn.de> <20090826165410.GA28796@host0.dyn.jankratochvil.net> <20090831202938.GC21485@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090831202938.GC21485@gmx.de> User-Agent: Mutt/1.5.20 (2009-08-09) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00147.txt.bz2 Ping * 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 > > * 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)" \