From unknown Sat Jun 14 03:58:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7669: option "foreign" after "-Wall" turns off and portability warnings. Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Fri, 17 Dec 2010 18:47:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7669 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 7669@debbugs.gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129261162314999 (code B ref -1); Fri, 17 Dec 2010 18:47:04 +0000 Received: (at submit) by debbugs.gnu.org; 17 Dec 2010 18:47:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTfKY-0003ts-Bx for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:47:02 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTfKW-0003tb-C2 for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:47:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTfQf-0001ll-1C for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:53:22 -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]:59317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTfQY-0001gD-9f for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:53:20 -0500 Received: from [140.186.70.92] (port=36223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTfQR-0003Co-4Z for bug-automake@gnu.org; Fri, 17 Dec 2010 13:53:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTfQJ-0001bQ-Ch for bug-automake@gnu.org; Fri, 17 Dec 2010 13:53:00 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTfQJ-0001ax-8U for bug-automake@gnu.org; Fri, 17 Dec 2010 13:52:59 -0500 Received: by wyj26 with SMTP id 26so1027178wyj.0 for ; Fri, 17 Dec 2010 10:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:date:user-agent :mime-version:to:subject:content-type:content-transfer-encoding :message-id; bh=op/LGwjZyWG4eRwqvEtRHXLL5NFDKTYftonJt1a8ot8=; b=PVGJMo/gUcFG189gY6Fb9Y2R576aHgzj9rFXwt+aYCTJqSYaac8SSzAYifSGlu5/BB O82iDNUUcXPp/ANi/36WrVBlbGhY6O+3gJbfn1g+QdbCqOObTNc012NNZNQsQSLg5xGJ Acks09V/3rrKWlgkrEc8J+DtI71AmkWb70qu0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:user-agent:mime-version:to:subject:content-type :content-transfer-encoding:message-id; b=vMV+E9JzTIAKbOZKi9WegxHuDTRovlqlyBM2nZqZMU17lJ/FM/la3HD74cDbMJ3HIa i5305FQUPx0nHKKjcaQ1fJ/cYh4/For21tlua1ZwhNndXgTvvXZqjvbWfaRalwizfUtM IngilDS86e7bZFmbsF+ve/03He4jngPIqIktE= Received: by 10.216.177.9 with SMTP id c9mr1542618wem.34.1292611978238; Fri, 17 Dec 2010 10:52:58 -0800 (PST) Received: from bigio.localnet (host11-8-dynamic.13-87-r.retail.telecomitalia.it [87.13.8.11]) by mx.google.com with ESMTPS id f52sm383667wes.35.2010.12.17.10.52.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 17 Dec 2010 10:52:57 -0800 (PST) From: Stefano Lattarini Date: Fri, 17 Dec 2010 19:52:29 +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: <201012171952.30640.stefano.lattarini@gmail.com> 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.9 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Hello automakers. This is basically just a reproposal of PR/547 from the old gnats database; I'm resubmitting it here because I'd really like to see it fixed, and having it reported in the new, more visible debbugs-based bug database might help in this respect. -*-*-*- With automake >= 1.10, foreign *after* -Wall in AM_INIT_AUTOMAKE turns off portability warnings. $ cat >> configure.ac <<'END' AC_INIT([foo], [1.0]) AM_INIT_AUTOMAKE([foreign -Wall]) AC_CONFIG_FILES([Makefile]) AC_PROG_CC END $ aclocal $ cat > Makefile.am <<'END' CFLAGS := $(wildcard *) bin_PROGRAMS = foo END $ automake -a # will warn as expected Makefile.am:1: `:='-style assignments are not portable Makefile.am:1: wildcard *: non-POSIX variable name Makefile.am:1: (probably a GNU make extension) Makefile.am:1: `CFLAGS' is a user variable, you should not override it; Makefile.am:1: use `AM_CFLAGS' instead. $ # now put `foreign' after `-Wall' $ sed -i 's/foreign -Wall/-Wall foreign/' configure.ac $ automake -a # gives no warnings! $ automake -a -Wall # but this does, luckily Makefile.am:1: `:='-style assignments are not portable Makefile.am:1: wildcard *: non-POSIX variable name Makefile.am:1: (probably a GNU make extension) Makefile.am:1: `CFLAGS' is a user variable, you should not override it; Makefile.am:1: use `AM_CFLAGS' instead. While the current behaviour is due to various historical and implementation reasons, IMHO it is counter-intuitive and somewhat "dangerous", since programmers enabling the `foreign' option might unwittingly be prevented from seeing portability warnings -- when they think to have enabled those warnings! Regards, Stefano From unknown Sat Jun 14 03:58:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7669: option "foreign" after "-Wall" turns off and portability warnings. Resent-From: Ralf Wildenhues Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Sun, 19 Dec 2010 11:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7669 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: Stefano Lattarini Cc: 7669@debbugs.gnu.org Received: via spool by 7669-submit@debbugs.gnu.org id=B7669.12927591162258 (code B ref 7669); Sun, 19 Dec 2010 11:46:02 +0000 Received: (at 7669) by debbugs.gnu.org; 19 Dec 2010 11:45:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PUHhU-0000aN-4G for submit@debbugs.gnu.org; Sun, 19 Dec 2010 06:45:16 -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 ) id 1PUHhS-0000aB-Bf for 7669@debbugs.gnu.org; Sun, 19 Dec 2010 06:45:15 -0500 Received: (qmail invoked by alias); 19 Dec 2010 11:51:39 -0000 Received: from xdsl-89-0-87-89.netcologne.de (EHLO localhost.localdomain) [89.0.87.89] by mail.gmx.net (mp052) with SMTP; 19 Dec 2010 12:51:39 +0100 X-Authenticated: #13673931 X-Provags-ID: V01U2FsdGVkX1+Q+9lJZjCQ79+7ILNr1wp0AK1/BURQpnz0bGFDyJ 54GJ2YRmBc9yXh Received: from ralf by localhost.localdomain with local (Exim 4.69) (envelope-from ) id 1PUHnf-0002IL-3X; Sun, 19 Dec 2010 12:51:39 +0100 Date: Sun, 19 Dec 2010 12:51:39 +0100 From: Ralf Wildenhues Message-ID: <20101219115138.GJ7020@gmx.de> References: <201012171952.30640.stefano.lattarini@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201012171952.30640.stefano.lattarini@gmail.com> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) * Stefano Lattarini wrote on Fri, Dec 17, 2010 at 07:52:29PM CET: > With automake >= 1.10, foreign *after* -Wall in AM_INIT_AUTOMAKE turns > off portability warnings. > While the current behaviour is due to various historical and implementation > reasons, IMHO it is counter-intuitive and somewhat "dangerous", since > programmers enabling the `foreign' option might unwittingly be prevented > from seeing portability warnings -- when they think to have enabled those > warnings! Fixing this will turn (at least user-provided) silent-rules rules noisy, I think. Given however that the nested variable expansion involved may be in a future Posix (if I get to analyzing the remaining questions from Eric in time), one possible strategy out is optimistically not warning about them any more and otherwise letting me get to the testing ... ;-) I'm not sure if there were also other reasons for the current behavior, but I think the discussion at the time the patches were put in place should reveal that. And yes, I agree that the behavior is bad. Thanks for looking into this, Ralf From unknown Sat Jun 14 03:58:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7669: option "foreign" after "-Wall" turns off and portability warnings. Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Thu, 23 Dec 2010 14:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7669 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: Ralf Wildenhues Cc: 7669@debbugs.gnu.org Received: via spool by 7669-submit@debbugs.gnu.org id=B7669.129311519916189 (code B ref 7669); Thu, 23 Dec 2010 14:40:03 +0000 Received: (at 7669) by debbugs.gnu.org; 23 Dec 2010 14:39:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVmKk-0004D2-6i for submit@debbugs.gnu.org; Thu, 23 Dec 2010 09:39:58 -0500 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVmKi-0004Cm-7s; Thu, 23 Dec 2010 09:39:56 -0500 Received: by wyf23 with SMTP id 23so6256431wyf.3 for ; Thu, 23 Dec 2010 06:46:33 -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:message-id :content-type:content-transfer-encoding; bh=XrXiofQAkKLOMg+hpq25g98ZygRMWqu6rx/zwMnOzGk=; b=QpMziQyPBtkGcsM0OM6YYE0oVGXcM6WiLNSYemXcou/7K3UqWg+vSvbomElcF1olog OPZ61HEQX40T1tbYgRtve3Uwv58m3f+hkzxsW4sryR0qRS2jJgD42tYHccGHLy0A9+I8 SCEEJ4Vg+pwrk9+HAn0l3CRizkvBpqBn9u0kI= 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:message-id:content-type:content-transfer-encoding; b=fEWG6FDM8dnxuofAiFGPuJYw2EJjmplZ4Kll0BMe4qdI07Qj8WzD0CXRWw36LnCH9Z 3StIyr7e2iGC5D9J/HxiuGuUH2aoHUmbRyguFSVd83XKqfhbhm40nQABfJR8fyKk0szJ yeTJYDWpfXWL4aTG11q8m+4qSLAT0dLThIEHM= Received: by 10.216.241.141 with SMTP id g13mr3192002wer.54.1293115592957; Thu, 23 Dec 2010 06:46:32 -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 n1sm3776576weq.31.2010.12.23.06.46.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Dec 2010 06:46:31 -0800 (PST) From: Stefano Lattarini Date: Thu, 23 Dec 2010 15:46:19 +0100 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <201012171952.30640.stefano.lattarini@gmail.com> <20101219115138.GJ7020@gmx.de> In-Reply-To: <20101219115138.GJ7020@gmx.de> MIME-Version: 1.0 Message-Id: <201012231546.20140.stefano.lattarini@gmail.com> Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Score: -3.8 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) tags 7669 patch thanks On Sunday 19 December 2010, Ralf Wildenhues wrote: > * Stefano Lattarini wrote on Fri, Dec 17, 2010 at 07:52:29PM CET: > > With automake >= 1.10, foreign *after* -Wall in AM_INIT_AUTOMAKE turns > > off portability warnings. > > > While the current behaviour is due to various historical and implementation > > reasons, IMHO it is counter-intuitive and somewhat "dangerous", since > > programmers enabling the `foreign' option might unwittingly be prevented > > from seeing portability warnings -- when they think to have enabled those > > warnings! > Now I've posted a patch series about this; see: > Fixing this will turn (at least user-provided) silent-rules rules noisy, > I think. > Luckily no: the pre-existing code was already smart enough that I managed to avoid this problem with no efforts. I added a testcase about it, BTW. > Given however that the nested variable expansion involved may > be in a future Posix (if I get to analyzing the remaining questions from > Eric in time), one possible strategy out is optimistically not warning > about them any more and otherwise letting me get to the testing ... ;-) > This won't be necessary (but having nested variable expansion in POSIX would be great anyway!) Regards, Stefano From unknown Sat Jun 14 03:58:12 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Stefano Lattarini Subject: bug#7669: closed (Re: bug#7669: option "foreign" after "-Wall" turns off and portability warnings.) Message-ID: References: <201101152128.39869.stefano.lattarini@gmail.com> <201012171952.30640.stefano.lattarini@gmail.com> X-Gnu-PR-Message: they-closed 7669 X-Gnu-PR-Package: automake X-Gnu-PR-Keywords: patch Reply-To: 7669@debbugs.gnu.org Date: Sat, 15 Jan 2011 20:23:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1295122982-13899-1" This is a multi-part message in MIME format... ------------=_1295122982-13899-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7669: option "foreign" after "-Wall" turns off and portability warnings. which was filed against the automake package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7669@debbugs.gnu.org. --=20 7669: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7669 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1295122982-13899-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7669-done) by debbugs.gnu.org; 15 Jan 2011 20:22:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeCe2-0003bd-Md for submit@debbugs.gnu.org; Sat, 15 Jan 2011 15:22:42 -0500 Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeCdy-0003bN-1a for 7669-done@debbugs.gnu.org; Sat, 15 Jan 2011 15:22:40 -0500 Received: by wwj40 with SMTP id 40so4217933wwj.15 for <7669-done@debbugs.gnu.org>; Sat, 15 Jan 2011 12:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=cXuIrAiU6dHlI/pm2z4bBy8wzhY/wkJ1T/K7Kj2YBHw=; b=xKPNYo39S9/iyjmuCyG2/Da3RJt3J4ihtg028boDZ1RHyLPYjYFZaXoqPE1S3k8+OL MrsM+aXUPX61YWCAo73dmfKnHVf+L6W76z3NNjTZXeqzWP/XrNOaCNuTCJOgSI8BjwlM AF84jDCSYbDGEw9ska0u/ows9qX6J/ioQKe80= 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=NoyBpVn5iZmO2+jQ2kc+w6GOFjpcT8sQxpf5f4XU0OBDN3dFO9ltfPT7ffl0plvRcL 6wHGqOXTmegi6qD5uO0l8hFH8zsgAzI6vWE1bxXfRkfNQzwmkvBKueh/tFZWr35v8mes vvomnx2oukz77ymypG3TmEOfwTWX0RiMA+0vg= Received: by 10.227.144.194 with SMTP id a2mr886102wbv.94.1295123333353; Sat, 15 Jan 2011 12:28:53 -0800 (PST) Received: from bigio.localnet (host156-94-dynamic.0-79-r.retail.telecomitalia.it [79.0.94.156]) by mx.google.com with ESMTPS id r6sm1438057weq.20.2011.01.15.12.28.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 15 Jan 2011 12:28:52 -0800 (PST) From: Stefano Lattarini To: Ralf Wildenhues Subject: Re: bug#7669: option "foreign" after "-Wall" turns off and portability warnings. Date: Sat, 15 Jan 2011 21:28:39 +0100 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <201012171952.30640.stefano.lattarini@gmail.com> <20101219115138.GJ7020@gmx.de> <201012231546.20140.stefano.lattarini@gmail.com> In-Reply-To: <201012231546.20140.stefano.lattarini@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201101152128.39869.stefano.lattarini@gmail.com> X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 7669-done Cc: 7669-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Thursday 23 December 2010, Stefano Lattarini wrote: > On Sunday 19 December 2010, Ralf Wildenhues wrote: > > * Stefano Lattarini wrote on Fri, Dec 17, 2010 at 07:52:29PM CET: > > > With automake >= 1.10, foreign *after* -Wall in AM_INIT_AUTOMAKE turns > > > off portability warnings. > > > > > While the current behaviour is due to various historical and implementation > > > reasons, IMHO it is counter-intuitive and somewhat "dangerous", since > > > programmers enabling the `foreign' option might unwittingly be prevented > > > from seeing portability warnings -- when they think to have enabled those > > > warnings! > > > Now I've posted a patch series about this; see: > > The patch series has been applied (with some churns and amendings), see: and merged to master with commit `v1.11-640-gf4f5bbe'. This should fix the bug. Regards, Stefano ------------=_1295122982-13899-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Dec 2010 18:47:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTfKY-0003ts-Bx for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:47:02 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PTfKW-0003tb-C2 for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:47:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTfQf-0001ll-1C for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:53:22 -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]:59317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTfQY-0001gD-9f for submit@debbugs.gnu.org; Fri, 17 Dec 2010 13:53:20 -0500 Received: from [140.186.70.92] (port=36223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PTfQR-0003Co-4Z for bug-automake@gnu.org; Fri, 17 Dec 2010 13:53:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PTfQJ-0001bQ-Ch for bug-automake@gnu.org; Fri, 17 Dec 2010 13:53:00 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PTfQJ-0001ax-8U for bug-automake@gnu.org; Fri, 17 Dec 2010 13:52:59 -0500 Received: by wyj26 with SMTP id 26so1027178wyj.0 for ; Fri, 17 Dec 2010 10:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:date:user-agent :mime-version:to:subject:content-type:content-transfer-encoding :message-id; bh=op/LGwjZyWG4eRwqvEtRHXLL5NFDKTYftonJt1a8ot8=; b=PVGJMo/gUcFG189gY6Fb9Y2R576aHgzj9rFXwt+aYCTJqSYaac8SSzAYifSGlu5/BB O82iDNUUcXPp/ANi/36WrVBlbGhY6O+3gJbfn1g+QdbCqOObTNc012NNZNQsQSLg5xGJ Acks09V/3rrKWlgkrEc8J+DtI71AmkWb70qu0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:user-agent:mime-version:to:subject:content-type :content-transfer-encoding:message-id; b=vMV+E9JzTIAKbOZKi9WegxHuDTRovlqlyBM2nZqZMU17lJ/FM/la3HD74cDbMJ3HIa i5305FQUPx0nHKKjcaQ1fJ/cYh4/For21tlua1ZwhNndXgTvvXZqjvbWfaRalwizfUtM IngilDS86e7bZFmbsF+ve/03He4jngPIqIktE= Received: by 10.216.177.9 with SMTP id c9mr1542618wem.34.1292611978238; Fri, 17 Dec 2010 10:52:58 -0800 (PST) Received: from bigio.localnet (host11-8-dynamic.13-87-r.retail.telecomitalia.it [87.13.8.11]) by mx.google.com with ESMTPS id f52sm383667wes.35.2010.12.17.10.52.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 17 Dec 2010 10:52:57 -0800 (PST) From: Stefano Lattarini Date: Fri, 17 Dec 2010 19:52:29 +0100 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) MIME-Version: 1.0 To: bug-automake@gnu.org Subject: option "foreign" after "-Wall" turns off and portability warnings. Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201012171952.30640.stefano.lattarini@gmail.com> 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.9 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Hello automakers. This is basically just a reproposal of PR/547 from the old gnats database; I'm resubmitting it here because I'd really like to see it fixed, and having it reported in the new, more visible debbugs-based bug database might help in this respect. -*-*-*- With automake >= 1.10, foreign *after* -Wall in AM_INIT_AUTOMAKE turns off portability warnings. $ cat >> configure.ac <<'END' AC_INIT([foo], [1.0]) AM_INIT_AUTOMAKE([foreign -Wall]) AC_CONFIG_FILES([Makefile]) AC_PROG_CC END $ aclocal $ cat > Makefile.am <<'END' CFLAGS := $(wildcard *) bin_PROGRAMS = foo END $ automake -a # will warn as expected Makefile.am:1: `:='-style assignments are not portable Makefile.am:1: wildcard *: non-POSIX variable name Makefile.am:1: (probably a GNU make extension) Makefile.am:1: `CFLAGS' is a user variable, you should not override it; Makefile.am:1: use `AM_CFLAGS' instead. $ # now put `foreign' after `-Wall' $ sed -i 's/foreign -Wall/-Wall foreign/' configure.ac $ automake -a # gives no warnings! $ automake -a -Wall # but this does, luckily Makefile.am:1: `:='-style assignments are not portable Makefile.am:1: wildcard *: non-POSIX variable name Makefile.am:1: (probably a GNU make extension) Makefile.am:1: `CFLAGS' is a user variable, you should not override it; Makefile.am:1: use `AM_CFLAGS' instead. While the current behaviour is due to various historical and implementation reasons, IMHO it is counter-intuitive and somewhat "dangerous", since programmers enabling the `foreign' option might unwittingly be prevented from seeing portability warnings -- when they think to have enabled those warnings! Regards, Stefano ------------=_1295122982-13899-1--