GNU bug report logs - #7673
Bad option precedence: AM_AUTOMAKE_INIT and AUTOMAKE_OPTIONS might win over command line

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; Reported by: Stefano Lattarini <stefano.lattarini@HIDDEN>; Keywords: confirmed help; dated Sat, 18 Dec 2010 14:07:02 UTC; Maintainer for automake is bug-automake@HIDDEN.
Added tag(s) confirmed. Request was from Karl Berry <karl@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) help. Request was from Karl Berry <karl@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 7673) by debbugs.gnu.org; 23 Dec 2010 18:41:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 23 13:41:22 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 1PVq6M-0004u6-FD
	for submit <at> debbugs.gnu.org; Thu, 23 Dec 2010 13:41:22 -0500
Received: from mail-wy0-f172.google.com ([74.125.82.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PVq6L-0004tu-8D
	for 7673 <at> debbugs.gnu.org; Thu, 23 Dec 2010 13:41:22 -0500
Received: by wyf23 with SMTP id 23so6485644wyf.3
	for <7673 <at> debbugs.gnu.org>; Thu, 23 Dec 2010 10:47:58 -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:references:in-reply-to:mime-version:content-type
	:content-transfer-encoding:message-id;
	bh=r+XUnS1US9kPERWEOuBjhIr/eymHZ0bwQdJ/ggHKjKs=;
	b=Eo/J/F41R6RauoT1Km34RlmUk6ggc+EHpJdeS/dafRl8YGa5Q/fAVPM5s5Zs18euRR
	MZqI7xhZ6RyDzawj6TqNtobu1MEZ0pn4toE9fcfY5LmpeSVWYUENe7Gr65Xy/Ybg8gZQ
	1rQhBFlV1DyojHzlCfdt+IeiEVvu9Mk7N5Jag=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:references:in-reply-to:mime-version
	:content-type:content-transfer-encoding:message-id;
	b=oOEuYiT6bsH5WzWMFwu7H8h2dLqX9ZnHb1GXbVLWjlqK3brrKOxssXCFb12MKTO+NH
	1sZ8aURUwPcsL49RXg37hqmD76UNWFBgMESxBkexBpb1IXjlTUCnPDiIUYJnJ395gxQ3
	TPZYe+uwOKMmI+EicUkV0V63/J+ESfL2l/x78=
Received: by 10.216.20.141 with SMTP id p13mr12905171wep.102.1293130078638;
	Thu, 23 Dec 2010 10:47:58 -0800 (PST)
Received: from bigio.localnet
	(host48-32-dynamic.116-80-r.retail.telecomitalia.it [80.116.32.48])
	by mx.google.com with ESMTPS id i80sm3906676wej.4.2010.12.23.10.47.55
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Thu, 23 Dec 2010 10:47:57 -0800 (PST)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
To: 7673 <at> debbugs.gnu.org
Subject: Re: bug#7673: Bad option precedence: AM_AUTOMAKE_INIT and
	AUTOMAKE_OPTIONS might win over command line
Date: Thu, 23 Dec 2010 19:47:36 +0100
User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )
References: <201012181512.17999.stefano.lattarini@HIDDEN>
In-Reply-To: <201012181512.17999.stefano.lattarini@HIDDEN>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <201012231947.37136.stefano.lattarini@HIDDEN>
X-Spam-Score: -3.7 (---)
X-Debbugs-Envelope-To: 7673
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.7 (---)

On Saturday 18 December 2010, Stefano Lattarini wrote:
> The right precedence for *every* option would IMHO be:
> 
>  "command line" wins over AUTOMAKE_OPTIONS wins over AM_INIT_AUTOMAKE
> 
JFTR, this is where the issue came up first:
 <http://lists.gnu.org/archive/html/automake-patches/2010-10/msg00033.html>

Sorry for not adding that reference or citing the original reporter
(Andrew W. Nosenko) right away.

Regards,
   Stefano




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

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


Received: (at 7673) by debbugs.gnu.org; 20 Dec 2010 18:29:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 20 13:29:21 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 1PUkU3-0004ZA-Ue
	for submit <at> debbugs.gnu.org; Mon, 20 Dec 2010 13:29:20 -0500
Received: from mail-ww0-f46.google.com ([74.125.82.46])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PUkU1-0004Yy-Jh
	for 7673 <at> debbugs.gnu.org; Mon, 20 Dec 2010 13:29:18 -0500
Received: by wwj40 with SMTP id 40so3367578wwj.15
	for <7673 <at> debbugs.gnu.org>; Mon, 20 Dec 2010 10:35:47 -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=8BZreZpX2T4+qgJ1QCSTUTeTkue0SkxzOdculOpSqDs=;
	b=FUNX8lI5jgqrfHQ9oT6ivg3Xt34EfvriQkHU7XcF91PxUQMpVJnQj9S44eYk2lObcF
	9p4vgsr5StsguyI6iyNF3k72OxzNKShbRigg8Sx0+j6/q+8weNGQnQWcqizdghEFsgOw
	W6zjd6I5+x8d3zB+gPS/6ZICKuJLFKPM8FQi4=
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=eLEaqZrUo9l2FiIBy8pX1a1evIcRR0YLBlAwYWS3q8bc3Ypkiv6CBvNSs5lgrxDY8Q
	rAPKAUoBN+qkbADjc4JEAP7/VEwW6p+wjHdujWCN74ITM3J02wUuEFRTFt71djh6s/SN
	lLK6y9kkaWHqikhwbgFIh8oaMIB1KwN6e0AhE=
Received: by 10.216.208.230 with SMTP id q80mr7677194weo.103.1292870147010;
	Mon, 20 Dec 2010 10:35:47 -0800 (PST)
Received: from bigio.localnet
	(host207-32-dynamic.116-80-r.retail.telecomitalia.it [80.116.32.207])
	by mx.google.com with ESMTPS id t5sm2028079wes.33.2010.12.20.10.35.44
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Mon, 20 Dec 2010 10:35:45 -0800 (PST)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
To: Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>
Subject: Re: bug#7673: Bad option precedence: AM_AUTOMAKE_INIT and
	AUTOMAKE_OPTIONS might win over command line
Date: Mon, 20 Dec 2010 19:34:31 +0100
User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )
References: <201012181512.17999.stefano.lattarini@HIDDEN>
	<20101219114813.GI7020@HIDDEN>
In-Reply-To: <20101219114813.GI7020@HIDDEN>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <201012201934.31724.stefano.lattarini@HIDDEN>
X-Spam-Score: -3.9 (---)
X-Debbugs-Envelope-To: 7673
Cc: 7673 <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.9 (---)

On Sunday 19 December 2010, Ralf Wildenhues wrote:
> * Stefano Lattarini wrote on Sat, Dec 18, 2010 at 03:12:17PM CET:
> > Currently, the strictness-related options specified with AM_INIT_AUTOMAKE
> > in configure.ac and with AUTOMAKE_OPTIONS in Makefile.am win over those
> > specified on the command line:
> 
> > While this behaviour might have had its historical reasons,
> 
> The question is, what reasons?
> 
> > I think its
> > confusing, suboptimal, and inconsistent with that of pratically all the
> > sane Unix and GNU programs.
> 
> I agree.
> 
> > The right precedence for *every* option would IMHO be:
> > 
> >  "command line" wins over AUTOMAKE_OPTIONS wins over AM_INIT_AUTOMAKE
> 
> Somebody needs to find out why the choices were done, and what breaks,
> when we change this.  I remember that there were good reasons for this,
> but I all but forgot the details.
>
Here is one reason I could make out without having to search the archives
or the git logs (I hope to get to that in a second time).

Currently, in the automake-generated remake rules, automake gets invoked
with some command-line options that are derived from arguments passed to
AM_INIT_AUTOMAKE.  For example, having:
  AM_INIT_AUTOMAKE([gnu -Wall silent-rules no-dependencies])
in configure.ac will cause the remake rules to invoke automake with the
*command-line* options `--gnu' and `--ignore-deps'.

It's clear that, in this situation, having the command line options take
precedence over the options in AM_INIT_AUTOMAKE might cause those remake
rules to behave incorrectly whenever the arguments of AM_INIT_AUTOMAKE 
are modified.

For example, referring again to the example above, assume that we decide
that the conventions mandated by the GNU strictness are in fact too
strict for our package (maybe we don't want to ship a ChangeLog, say).
So we modify the AM_INIT_AUTOMAKE call to read:
  AM_INIT_AUTOMAKE([foreign -Wall silent-rules no-dependencies])
and run "make am--refresh" to regenerate the various Makefiles, configure,
config.status etc.  The rebuilt rules present in the current Makefile will
still invoke automake with the `--gnu' command-line option; if this would
take precedence over the `foreign' in AM_INIT_AUTOMAKE, the rebuild would
clearly fail.

At this point, it remains to understand why the remake rules invoke
automake with such command-line options, and if they have good reasons
to do so.

Regards,
   Stefano




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

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


Received: (at 7673) by debbugs.gnu.org; 19 Dec 2010 11:41:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 19 06:41:50 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 1PUHe9-0000VN-TH
	for submit <at> debbugs.gnu.org; Sun, 19 Dec 2010 06:41:50 -0500
Received: from mailout-de.gmx.net ([213.165.64.23] helo=mail.gmx.net)
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@HIDDEN>) id 1PUHe7-0000VB-SY
	for 7673 <at> debbugs.gnu.org; Sun, 19 Dec 2010 06:41:48 -0500
Received: (qmail invoked by alias); 19 Dec 2010 11:48:13 -0000
Received: from xdsl-89-0-87-89.netcologne.de (EHLO localhost.localdomain)
	[89.0.87.89]
	by mail.gmx.net (mp059) with SMTP; 19 Dec 2010 12:48:13 +0100
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX19imq5wwFZiiiAx6Bs9ywO2OcT5UyOoH+hZelCzeF
	mPdBe0SBKbDQbk
Received: from ralf by localhost.localdomain with local (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@HIDDEN>)
	id 1PUHkL-0002I8-Rl; Sun, 19 Dec 2010 12:48:13 +0100
Date: Sun, 19 Dec 2010 12:48:13 +0100
From: Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>
To: Stefano Lattarini <stefano.lattarini@HIDDEN>
Subject: Re: bug#7673: Bad option precedence: AM_AUTOMAKE_INIT and
	AUTOMAKE_OPTIONS might win over command line
Message-ID: <20101219114813.GI7020@HIDDEN>
References: <201012181512.17999.stefano.lattarini@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201012181512.17999.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: 7673
Cc: 7673 <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 (--)

* Stefano Lattarini wrote on Sat, Dec 18, 2010 at 03:12:17PM CET:
> Currently, the strictness-related options specified with AM_INIT_AUTOMAKE
> in configure.ac and with AUTOMAKE_OPTIONS in Makefile.am win over those
> specified on the command line:

> While this behaviour might have had its historical reasons,

The question is, what reasons?

> I think its
> confusing, suboptimal, and inconsistent with that of pratically all the
> sane Unix and GNU programs.

I agree.

> The right precedence for *every* option would IMHO be:
> 
>  "command line" wins over AUTOMAKE_OPTIONS wins over AM_INIT_AUTOMAKE

Somebody needs to find out why the choices were done, and what breaks,
when we change this.  I remember that there were good reasons for this,
but I all but forgot the details.

Cheers,
Ralf




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

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


Received: (at submit) by debbugs.gnu.org; 18 Dec 2010 14:06:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 18 09:06:14 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 1PTxQL-0004lM-OE
	for submit <at> debbugs.gnu.org; Sat, 18 Dec 2010 09:06:14 -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 1PTxQJ-0004l9-NK
	for submit <at> debbugs.gnu.org; Sat, 18 Dec 2010 09:06:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PTxWU-0000mc-Nh
	for submit <at> debbugs.gnu.org; Sat, 18 Dec 2010 09:12:35 -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]:35611)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PTxWU-0000mT-Jp
	for submit <at> debbugs.gnu.org; Sat, 18 Dec 2010 09:12:34 -0500
Received: from [140.186.70.92] (port=50927 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PTxWS-0005Gv-7J
	for bug-automake@HIDDEN; Sat, 18 Dec 2010 09:12:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PTxWR-0000lr-3M
	for bug-automake@HIDDEN; Sat, 18 Dec 2010 09:12:31 -0500
Received: from mail-wy0-f169.google.com ([74.125.82.169]:63782)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <stefano.lattarini@HIDDEN>) id 1PTxWQ-0000lR-VS
	for bug-automake@HIDDEN; Sat, 18 Dec 2010 09:12:31 -0500
Received: by wyj26 with SMTP id 26so1675115wyj.0
	for <bug-automake@HIDDEN>; Sat, 18 Dec 2010 06:12:29 -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:content-transfer-encoding
	:message-id; bh=BonXvvOCdNUUXfIJrgoaO/FSHrk421/kM94bkT+73Do=;
	b=IlTsPcMgGc+ylJMXJg5HW/ulbqJmx1G6hAlpneX4oq4py2qy5uDPR1d/0AtK8MjVon
	HezV62b5OGadBNsKiYO5qzw19C5zM2OUmAl/MJb6ghNuSh+wpGJDXKfIt/KTMcRzGz/A
	957zTKy6S/dxoAJr7uteR75PzP9fq5nfMQxn4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=from:to:subject:date:user-agent:mime-version:content-type
	:content-transfer-encoding:message-id;
	b=lH5WvW7gV8h56lX4jm97JtfLCaLdhpixnA6cXdTrJMdnqCsOR4gYF7KKM8n+8q++hr
	9XFqXLVDZO5n+Uqnd47ms/80d6Ha5gAjags9uT2iZsRlfM4HSkAaTjtERiaJHRwqqanY
	6RazdL6oLTKUwMBIKAdRLxaiBRMikO6JyY8mg=
Received: by 10.216.156.84 with SMTP id l62mr2526141wek.58.1292681549427;
	Sat, 18 Dec 2010 06:12:29 -0800 (PST)
Received: from bigio.localnet
	(host105-53-dynamic.48-82-r.retail.telecomitalia.it [82.48.53.105])
	by mx.google.com with ESMTPS id n11sm786117wej.43.2010.12.18.06.12.27
	(version=TLSv1/SSLv3 cipher=RC4-MD5);
	Sat, 18 Dec 2010 06:12:28 -0800 (PST)
From: Stefano Lattarini <stefano.lattarini@HIDDEN>
To: bug-automake@HIDDEN
Subject: Bad option precedence: AM_AUTOMAKE_INIT and AUTOMAKE_OPTIONS might
	win over command line
Date: Sat, 18 Dec 2010 15:12:17 +0100
User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-Id: <201012181512.17999.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.5 (----)
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.6 (----)

Hello automakers

Currently, the strictness-related options specified with AM_INIT_AUTOMAKE
in configure.ac and with AUTOMAKE_OPTIONS in Makefile.am win over those
specified on the command line:

  $ touch install-sh missing COPYING README AUTHORS NEWS INSTALL
  $ cat > configure.ac <<'END'
  AC_INIT([foo], [1.0])
  AM_INIT_AUTOMAKE([gnu])
  AC_CONFIG_FILES([Makefile])
  END
  $ : > Makefile.am
  $ aclocal
  $ automake --foreign
  Makefile.am: required file `./ChangeLog' not found
  $ sed -i 's/^AM_INIT_AUTOMAKE.*/AM_INIT_AUTOMAKE/' configure.ac
  $ echo 'AUTOMAKE_OPTIONS = gnu' > Makefile.am
  $ automake --foreign
  Makefile.am: required file `./ChangeLog' not found

While this behaviour might have had its historical reasons, I think its
confusing, suboptimal, and inconsistent with that of pratically all the
sane Unix and GNU programs.

The right precedence for *every* option would IMHO be:

 "command line" wins over AUTOMAKE_OPTIONS wins over AM_INIT_AUTOMAKE

Regards,
   Stefano




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#7673; 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: Thu, 19 Nov 2020 02:30:02 UTC

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