GNU bug report logs - #7562
automake-set variables don't get properly reordered when overriden in Makefile.am

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Severity: wishlist; Reported by: Stefano Lattarini <stefano.lattarini@HIDDEN>; dated Sun, 5 Dec 2010 17:31:02 UTC; Maintainer for automake is bug-automake@HIDDEN.

Message received at 7562 <at> debbugs.gnu.org:


Received: (at 7562) by debbugs.gnu.org; 5 Dec 2010 21:29:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 05 16:29:38 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PPM9K-0001le-5T
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 16:29:38 -0500
Received: from mail-bw0-f44.google.com ([209.85.214.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PPM9I-0001lR-56
	for 7562 <at> debbugs.gnu.org; Sun, 05 Dec 2010 16:29:36 -0500
Received: by bwz12 with SMTP id 12so10133544bwz.3
	for <7562 <at> debbugs.gnu.org>; Sun, 05 Dec 2010 13:35:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:from:to:subject:date
	:user-agent:cc:references:in-reply-to:mime-version:content-type
	:content-transfer-encoding:message-id;
	bh=Z4hVm9ckUgDxO1TRy9EHo1grMzNEgwgqkqbiaeM/WpQ=;
	b=eb6JtJtLqTuGu02TO9yRkbePL2/okNKSyK72M8J85irca8Sdc6T4sQoIYmJMdekcik
	mPl8EcjXvYHXkTcPw+cx7LqwAOqOJy0n1NprsIgXg94WYtGLBVqtUx5l/iGrZ+/hjQrP
	QNzSZj0RL046JZARpiM5dJUDbikar4zlRysO0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:cc:references:in-reply-to
	:mime-version:content-type:content-transfer-encoding:message-id;
	b=YiX3SbQdMv6PJ34YvYgccE0BQFd8ZhwRVj05wO1F/iqR9Xh6GCtOdgZjj9uQtZxhdk
	GD+RX5qGi3uFmrLXaSlbL/5XPzkuGPXrr9J3vfEjL0aY+UnAUnKD/1ewbgkELx0tkukQ
	0o7DiL18WK3++ldWyCegyNieMonwrbsO3ZRzQ=
Received: by 10.204.79.84 with SMTP id o20mr2985952bkk.1.1291584926020;
	Sun, 05 Dec 2010 13:35:26 -0800 (PST)
Received: from bigio.localnet
	(host31-8-dynamic.13-87-r.retail.telecomitalia.it [87.13.8.31])
	by mx.google.com with ESMTPS id d11sm1440640bkd.10.2010.12.05.13.35.24
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sun, 05 Dec 2010 13:35:25 -0800 (PST)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
To: Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>
Subject: Re: bug#7562: automake-set variables don't get properly reordered
	when overriden in Makefile.am
Date: Sun, 5 Dec 2010 22:35:06 +0100
User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )
References: <201012051834.34456.stefano.lattarini@HIDDEN>
	<201012052150.53108.stefano.lattarini@HIDDEN>
	<20101205212213.GS4577@HIDDEN>
In-Reply-To: <20101205212213.GS4577@HIDDEN>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <201012052235.07010.stefano.lattarini@HIDDEN>
X-Spam-Score: -3.6 (---)
X-Debbugs-Envelope-To: 7562
Cc: Jack Kelly <jack@HIDDEN>, 7562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

On Sunday 05 December 2010, Ralf Wildenhues wrote:
> Hello,
> 
> * Stefano Lattarini wrote on Sun, Dec 05, 2010 at 09:50:52PM CET:
> > On Sunday 05 December 2010, Jack Kelly wrote:
> > > make prefix=$HOME/stow/foo-x.y.z
> 
> > > So whatever you do with the variable ordering, I hope it doesn't break
> > > overrides from the command line.
> > > 
> > Oh, it must absolutely not break that, since the behaviour you want is
> > mandated by the GNU coding standards, and cannot be changed.  Breaking
> > it would be a *grave* automake bug.  So I guess you're safe in this
> > respect.
> 
> Of course, the GNU Coding Standards are a bit oblivious of existing
> limitations of non-GNU make implementations at this point; see
>   info Autoconf "Macros and Submakes"
> 
> Oh well.  Another issue completely unrelated to this PR ...  ;-)
> 
Well, let's just say the `prefix' overriding should continue to work with
GNU make as it did before ;-) ...

Regards,
  Stefano




Information forwarded to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:
bug#7562; Package automake. Full text available.

Message received at 7562 <at> debbugs.gnu.org:


Received: (at 7562) by debbugs.gnu.org; 5 Dec 2010 21:22:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 05 16:22:49 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PPM2j-0001bs-6i
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 16:22:49 -0500
Received: from mail-vw0-f44.google.com ([209.85.212.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <endgame.dos@HIDDEN>) id 1PPM2h-0001be-JE
	for 7562 <at> debbugs.gnu.org; Sun, 05 Dec 2010 16:22:48 -0500
Received: by vws7 with SMTP id 7so4524530vws.3
	for <7562 <at> debbugs.gnu.org>; Sun, 05 Dec 2010 13:28:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:cc:content-type:content-transfer-encoding;
	bh=Qqa/UrTJIgkrAYbEnDxd/Lz3eBrssK82Dig+pSot4mg=;
	b=T4PuymKwyWhDDSeEHBeHYqS53ncbwo90CXFtFSZlprfyygG6hs281v+CerAGUfm9LM
	O57BkZysMaOLLwrXmTNBarcK7yP9drORsNyBKY+yxisiStjErukvIJOzdPWELNp0BlO2
	kdud0dAi9NEVLJMovO4ScbYxHhE5ztsJjUHjc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	b=pDdIHD8UJfKseOtmUcrQG2DtZWJY2ctsPTq15Azm3J2FALD1U5AY8dRwJQWD01lDky
	9OCgP6OGa68GfiBR/2fILJaCpAflLYusiPeRhTRwX68myjjcLuXNS3ngRhitej017Jmx
	TxayIIvixyuTVXkXNWf2lJK1ddbwp+wBYzTQk=
MIME-Version: 1.0
Received: by 10.220.199.140 with SMTP id es12mr1183627vcb.160.1291584517683;
	Sun, 05 Dec 2010 13:28:37 -0800 (PST)
Received: by 10.220.176.137 with HTTP; Sun, 5 Dec 2010 13:28:37 -0800 (PST)
In-Reply-To: <201012052150.53108.stefano.lattarini@HIDDEN>
References: <201012051834.34456.stefano.lattarini@HIDDEN>
	<AANLkTi=Ocnhp-XohDBTuuF7vV9a5q4KCFQ4Va9sZE2KY@HIDDEN>
	<201012052150.53108.stefano.lattarini@HIDDEN>
Date: Mon, 6 Dec 2010 08:28:37 +1100
X-Google-Sender-Auth: 3eLeBI8r1ciG-x3j41DiELhUFD8
Message-ID: <AANLkTikzmGJ5zDAF1Hxtm-8_N8RwWt=XciHxH8QecHF7@HIDDEN>
Subject: Re: bug#7562: automake-set variables don't get properly reordered
	when overriden in Makefile.am
From: Jack Kelly <jack@HIDDEN>
To: Stefano Lattarini <stefano.lattarini@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.6 (---)
X-Debbugs-Envelope-To: 7562
Cc: 7562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

On Mon, Dec 6, 2010 at 7:50 AM, Stefano Lattarini
<stefano.lattarini@HIDDEN> wrote:
> On Sunday 05 December 2010, Jack Kelly wrote:
>> Remark: This may be unrelated.
>>
>> I don't know about overriding in Makefile.am, but overriding $(prefix)
>> is important for supporting GNU Stow. To set up a package for Stow,
>> you configure for one prefix and install under another (note that this
>> isn't the same as using $(DESTDIR) - that dumps the whole directory
>> tree under the target path).
>>
>> Example:
>>
>> ./configure --prefix=3D$HOME
>> make
>> make prefix=3D$HOME/stow/foo-x.y.z
>> cd $HOME/stow
>> stow foo-x.y.z
>>
>> So whatever you do with the variable ordering, I hope it doesn't break
>> overrides from the command line.
>>
> Oh, it must absolutely not break that, since the behaviour you want is
> mandated by the GNU coding standards, and cannot be changed. =A0Breaking
> it would be a *grave* automake bug. =A0So I guess you're safe in this
> respect.

I'm glad you're on top of that. I just wanted to bring it up in case
it had been forgotten.

Thanks.

-- Jack




Information forwarded to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:
bug#7562; Package automake. Full text available.

Message received at 7562 <at> debbugs.gnu.org:


Received: (at 7562) by debbugs.gnu.org; 5 Dec 2010 21:16:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 05 16:16:28 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PPLwZ-0001TD-Tz
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 16:16:28 -0500
Received: from mailout-de.gmx.net ([213.165.64.22] helo=mail.gmx.net)
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@HIDDEN>) id 1PPLwW-0001T0-Lp
	for 7562 <at> debbugs.gnu.org; Sun, 05 Dec 2010 16:16:25 -0500
Received: (qmail invoked by alias); 05 Dec 2010 21:22:14 -0000
Received: from xdsl-89-0-92-129.netcologne.de (EHLO localhost.localdomain)
	[89.0.92.129]
	by mail.gmx.net (mp058) with SMTP; 05 Dec 2010 22:22:14 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX196JmYbnVh6Yisimbt/qCVK+bGmIzaWx9Bc+iJeq3
	qOCW4dPA4tsmEz
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@HIDDEN>)
	id 1PPM29-0001e7-L0; Sun, 05 Dec 2010 22:22:13 +0100
Date: Sun, 5 Dec 2010 22:22:13 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>
To: Stefano Lattarini <stefano.lattarini@HIDDEN>
Subject: Re: bug#7562: automake-set variables don't get properly reordered
	when overriden in Makefile.am
Message-ID: <20101205212213.GS4577@HIDDEN>
References: <201012051834.34456.stefano.lattarini@HIDDEN>
	<AANLkTi=Ocnhp-XohDBTuuF7vV9a5q4KCFQ4Va9sZE2KY@HIDDEN>
	<201012052150.53108.stefano.lattarini@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201012052150.53108.stefano.lattarini@HIDDEN>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 7562
Cc: Jack Kelly <jack@HIDDEN>, 7562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

Hello,

* Stefano Lattarini wrote on Sun, Dec 05, 2010 at 09:50:52PM CET:
> On Sunday 05 December 2010, Jack Kelly wrote:
> > make prefix=$HOME/stow/foo-x.y.z

> > So whatever you do with the variable ordering, I hope it doesn't break
> > overrides from the command line.
> > 
> Oh, it must absolutely not break that, since the behaviour you want is
> mandated by the GNU coding standards, and cannot be changed.  Breaking
> it would be a *grave* automake bug.  So I guess you're safe in this
> respect.

Of course, the GNU Coding Standards are a bit oblivious of existing
limitations of non-GNU make implementations at this point; see
  info Autoconf "Macros and Submakes"

Oh well.  Another issue completely unrelated to this PR ...  ;-)

Cheers,
Ralf




Information forwarded to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:
bug#7562; Package automake. Full text available.

Message received at 7562 <at> debbugs.gnu.org:


Received: (at 7562) by debbugs.gnu.org; 5 Dec 2010 20:45:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 05 15:45:20 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PPLSS-0000oL-DG
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 15:45:20 -0500
Received: from mail-bw0-f44.google.com ([209.85.214.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PPLSR-0000oA-E3
	for 7562 <at> debbugs.gnu.org; Sun, 05 Dec 2010 15:45:20 -0500
Received: by bwz12 with SMTP id 12so10112603bwz.3
	for <7562 <at> debbugs.gnu.org>; Sun, 05 Dec 2010 12:51:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:from:to:subject:date
	:user-agent:cc:references:in-reply-to:mime-version:content-type
	:content-transfer-encoding:message-id;
	bh=8EzkbvdGP8wxtkYSxb5BDuVt8GF6ziYhq5KMQwKP1ds=;
	b=oxajXzqle2ntJ43XIdH6gfoteTtqXq+39OFEmcqo+FVDb8u478PTSJQUX/Pv+atKLQ
	hJGdRtfi9iMUV+VlI/fiuk3oayF7uWN5DZpAhpBibRGkaQf4qZgg1ZWDwkXeMoqhNwtg
	avmcDVGtH2CZmNQ/Ou2+hDqhT6zpa/TLzVWg8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:cc:references:in-reply-to
	:mime-version:content-type:content-transfer-encoding:message-id;
	b=cJFb696qPdJfGuS6CG1SYMDoulkV68uTscIijI6esF1bmyMthWA4AuwdXqPCRa8zD8
	u5JAZMyqx019vEVDRNYqMKoAOxAsmg31vZvTpgmm2SkAD49H+ElXMJEfHFx6WgpAU76I
	hXU+QdF9qodhX7L8r+SmT0E3008IGFoRp3mE8=
Received: by 10.204.54.197 with SMTP id r5mr4871916bkg.12.1291582269182;
	Sun, 05 Dec 2010 12:51:09 -0800 (PST)
Received: from bigio.localnet
	(host31-8-dynamic.13-87-r.retail.telecomitalia.it [87.13.8.31])
	by mx.google.com with ESMTPS id d27sm2103076bkw.2.2010.12.05.12.51.07
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sun, 05 Dec 2010 12:51:08 -0800 (PST)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
To: Jack Kelly <jack@HIDDEN>
Subject: Re: bug#7562: automake-set variables don't get properly reordered
	when overriden in Makefile.am
Date: Sun, 5 Dec 2010 21:50:52 +0100
User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )
References: <201012051834.34456.stefano.lattarini@HIDDEN>
	<AANLkTi=Ocnhp-XohDBTuuF7vV9a5q4KCFQ4Va9sZE2KY@HIDDEN>
In-Reply-To: <AANLkTi=Ocnhp-XohDBTuuF7vV9a5q4KCFQ4Va9sZE2KY@HIDDEN>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <201012052150.53108.stefano.lattarini@HIDDEN>
X-Spam-Score: -3.6 (---)
X-Debbugs-Envelope-To: 7562
Cc: 7562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

On Sunday 05 December 2010, Jack Kelly wrote:
> Remark: This may be unrelated.
> 
> I don't know about overriding in Makefile.am, but overriding $(prefix)
> is important for supporting GNU Stow. To set up a package for Stow,
> you configure for one prefix and install under another (note that this
> isn't the same as using $(DESTDIR) - that dumps the whole directory
> tree under the target path).
> 
> Example:
> 
> ./configure --prefix=$HOME
> make
> make prefix=$HOME/stow/foo-x.y.z
> cd $HOME/stow
> stow foo-x.y.z
> 
> So whatever you do with the variable ordering, I hope it doesn't break
> overrides from the command line.
> 
Oh, it must absolutely not break that, since the behaviour you want is
mandated by the GNU coding standards, and cannot be changed.  Breaking
it would be a *grave* automake bug.  So I guess you're safe in this
respect.

Regards,
  Stefano




Information forwarded to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:
bug#7562; Package automake. Full text available.

Message received at 7562 <at> debbugs.gnu.org:


Received: (at 7562) by debbugs.gnu.org; 5 Dec 2010 20:23:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 05 15:23:09 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PPL6z-0000Kx-5W
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 15:23:09 -0500
Received: from mail-vw0-f44.google.com ([209.85.212.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <endgame.dos@HIDDEN>) id 1PPL6C-0000J7-6s
	for 7562 <at> debbugs.gnu.org; Sun, 05 Dec 2010 15:22:20 -0500
Received: by vws7 with SMTP id 7so4511886vws.3
	for <7562 <at> debbugs.gnu.org>; Sun, 05 Dec 2010 12:28:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:cc:content-type:content-transfer-encoding;
	bh=+BHCZiX+dmy0/Z/i06nvgT79tVYPAuQjwWl7bVQq4V8=;
	b=EaYPlEJmGh6wPaqIuiCJ5eS3hTrLx8PsGBhngWLFXOk8N0E6VYIpJYedLHAfXtavWJ
	ngddEFdINH4hiSE0lsMDegEBmo3AR7dR9QusHbMMUMLaafjNFXlh77OYu4UGOQeis7mj
	7LDlvxms69OKaOIjsSnQ8N/9GpsxaeEviavkw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	b=pT2sl3hqIKlZkeGZ2rCjxNmnfRPoG7IeaU6DsVEHfGg5SyL6McLWxfnD5+s8gJYFBZ
	7DfVH5OU0afiT4tLvDbpCeHIucZ51fs1lOMJbYpi2t9BL1PDcyNkM8XN4jojS3gNnhJi
	kPbfFyqhyDC/mfMMdzd2GRZ2RLkDv1elGsI08=
MIME-Version: 1.0
Received: by 10.220.199.140 with SMTP id es12mr1169035vcb.160.1291580884372;
	Sun, 05 Dec 2010 12:28:04 -0800 (PST)
Received: by 10.220.176.137 with HTTP; Sun, 5 Dec 2010 12:28:04 -0800 (PST)
In-Reply-To: <201012051834.34456.stefano.lattarini@HIDDEN>
References: <201012051834.34456.stefano.lattarini@HIDDEN>
Date: Mon, 6 Dec 2010 07:28:04 +1100
X-Google-Sender-Auth: 0wfpZ0ZT4cMRv7E-ai7Poanilvw
Message-ID: <AANLkTi=Ocnhp-XohDBTuuF7vV9a5q4KCFQ4Va9sZE2KY@HIDDEN>
Subject: Re: bug#7562: automake-set variables don't get properly reordered
	when overriden in Makefile.am
From: Jack Kelly <jack@HIDDEN>
To: Stefano Lattarini <stefano.lattarini@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -3.6 (---)
X-Debbugs-Envelope-To: 7562
X-Mailman-Approved-At: Sun, 05 Dec 2010 15:23:07 -0500
Cc: 7562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

Remark: This may be unrelated.

I don't know about overriding in Makefile.am, but overriding $(prefix)
is important for supporting GNU Stow. To set up a package for Stow,
you configure for one prefix and install under another (note that this
isn't the same as using $(DESTDIR) - that dumps the whole directory
tree under the target path).

Example:

./configure --prefix=3D$HOME
make
make prefix=3D$HOME/stow/foo-x.y.z
cd $HOME/stow
stow foo-x.y.z

So whatever you do with the variable ordering, I hope it doesn't break
overrides from the command line.

-- Jack

On Mon, Dec 6, 2010 at 4:34 AM, Stefano Lattarini
<stefano.lattarini@HIDDEN> wrote:
> Severity: wishlist
>
> This issue was brought up by Ralf Wildenhues in a thread on automake-patc=
hes.
>
> Automake generally orders all of its variable settings before all of the =
user
> ones (so the user ones are preferred). =A0But when one overrides e.g. bin=
dir in
> a Makefile.am, that variable doesn't get reordered to the user part, beca=
use
> it is actually automake-set before it is overridden. =A0The issue is expo=
sed in
> the attached testcase.
>
> It's still not clear to me whether this is a bug or a feature, but I thou=
ght
> that entering it into the Automake bug database would be a good idea anyw=
ay.
>
> Regards,
> =A0 Stefano
>
>
>
> #! /bin/sh
>
> # Test that :=3D definitions work as expected at make time, even when
> # whey involve user-overridden automake-set variables.
> #
> # Currently, this test doesn't work, because automake generally orders
> # all of its variable settings (e.g. bindir and the like) before all
> # of the user ones. =A0Even when =A0bindir is overridden, it doesn't get
> # reordered to the user part. =A0Might this be considered an automake bug=
?
>
> required=3DGNUmake
> . ./defs || Exit 1
>
> set -e
>
> cat >> configure.in << 'END'
> AC_OUTPUT
> END
>
> cat > Makefile.am << 'END'
> BAR :=3D $(bindir)
> BAZ =3D $(bindir)
> bindir =3D foo
> .PHONY: test
> test:
> =A0 =A0 =A0 =A0test x'$(bindir)' =3D x'foo'
> =A0 =A0 =A0 =A0test x'$(BAZ)' =3D x'foo'
> =A0 =A0 =A0 =A0test x'$(BAR)' =3D x
> END
>
> $ACLOCAL
> $AUTOCONF
> $AUTOMAKE -Wno-portability
>
> ./configure
> $MAKE test
>
> :
>
>




Information forwarded to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:
bug#7562; Package automake. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Dec 2010 17:30:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 05 12:30:38 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PPIQ2-000523-B0
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 12:30:38 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PPIPz-00051n-TS
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 12:30:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PPIVU-0000gx-OZ
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 12:36:26 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:44401)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PPIVU-0000gn-LG
	for submit <at> debbugs.gnu.org; Sun, 05 Dec 2010 12:36:16 -0500
Received: from [140.186.70.92] (port=41986 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PPIUv-0002GN-CZ
	for bug-automake@HIDDEN; Sun, 05 Dec 2010 12:36:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PPIU7-0000LE-GZ
	for bug-automake@HIDDEN; Sun, 05 Dec 2010 12:35:41 -0500
Received: from mail-fx0-f41.google.com ([209.85.161.41]:59951)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PPIU7-0000Kp-A0
	for bug-automake@HIDDEN; Sun, 05 Dec 2010 12:34:51 -0500
Received: by fxm13 with SMTP id 13so9732911fxm.0
	for <bug-automake@HIDDEN>; Sun, 05 Dec 2010 09:34:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:from:to:subject:date
	:user-agent:mime-version:content-type:message-id;
	bh=2/pem4PbX3e6EIluzgRbkCrLTMMQsB9yqotlY3fwYBA=;
	b=YL8JLXQMdWmSx41X7U9kpasOwCHzLgIkImdos6nnM34AXU74Ne+JIadea00Vo5qG3g
	ZuS/U3zHUkmIp4htdbF1DEZb193iLildeUGo/y0LJIxqMCjWhKAhRWX0G8fhS+pxMQSR
	/Gi6qYMTdK9iq/pBKQcYgcUUQFQftWWE9VgmY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:mime-version:content-type
	:message-id;
	b=wODw56TjZvGjOizZSYd54L48lMz4lP72I6YrWmuZF4wWeL8DaJ3rJtWdAVdPL9dsyg
	Rt/ZQRoypv+F1uSSuqymxLg6C/PdPjHP/pdAqP7rlItm70j5cLBByqDIIc6Yk4RoVLPs
	t0blhoG/eSOZt5VxKoz/VZJysEsf/ZXH3IHKQ=
Received: by 10.223.86.130 with SMTP id s2mr4619005fal.66.1291570489672;
	Sun, 05 Dec 2010 09:34:49 -0800 (PST)
Received: from bigio.localnet
	(host128-90-dynamic.116-80-r.retail.telecomitalia.it [80.116.90.128])
	by mx.google.com with ESMTPS id l3sm255461fan.2.2010.12.05.09.34.48
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sun, 05 Dec 2010 09:34:48 -0800 (PST)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
To: bug-automake@HIDDEN
Subject: automake-set variables don't get properly reordered when overriden in
	Makefile.am
Date: Sun, 5 Dec 2010 18:34:33 +0100
User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
  boundary="Boundary-00=_q08+MsF0CfJ8ar/"
Message-Id: <201012051834.34456.stefano.lattarini@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.8 (----)

--Boundary-00=_q08+MsF0CfJ8ar/
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit

Severity: wishlist

This issue was brought up by Ralf Wildenhues in a thread on automake-patches.

Automake generally orders all of its variable settings before all of the user
ones (so the user ones are preferred).  But when one overrides e.g. bindir in
a Makefile.am, that variable doesn't get reordered to the user part, because
it is actually automake-set before it is overridden.  The issue is exposed in
the attached testcase.

It's still not clear to me whether this is a bug or a feature, but I thought
that entering it into the Automake bug database would be a good idea anyway.

Regards,
   Stefano



--Boundary-00=_q08+MsF0CfJ8ar/
Content-Type: text/plain;
  charset="us-ascii";
  name="automake-variable-reordering.test"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
	filename="automake-variable-reordering.test"

#! /bin/sh

# Test that := definitions work as expected at make time, even when
# whey involve user-overridden automake-set variables.
#
# Currently, this test doesn't work, because automake generally orders
# all of its variable settings (e.g. bindir and the like) before all
# of the user ones.  Even when  bindir is overridden, it doesn't get
# reordered to the user part.  Might this be considered an automake bug?

required=GNUmake
. ./defs || Exit 1

set -e

cat >> configure.in << 'END'
AC_OUTPUT
END

cat > Makefile.am << 'END'
BAR := $(bindir)
BAZ = $(bindir)
bindir = foo
.PHONY: test
test:
	test x'$(bindir)' = x'foo'
	test x'$(BAZ)' = x'foo'
	test x'$(BAR)' = x
END

$ACLOCAL
$AUTOCONF
$AUTOMAKE -Wno-portability

./configure
$MAKE test

:

--Boundary-00=_q08+MsF0CfJ8ar/--




Acknowledgement sent to Stefano Lattarini <stefano.lattarini@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:
bug#7562; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.