GNU bug report logs - #55025
Automake should allow one to enable POSIX make behavior

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: Vincent Lefevre <vincent@HIDDEN>; Keywords: confirmed; dated Tue, 19 Apr 2022 15:35:02 UTC; Maintainer for automake is bug-automake@HIDDEN.
Added tag(s) confirmed. Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Mike Frysinger <vapier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 13 Jan 2023 06:19:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 13 01:19:47 2023
Received: from localhost ([127.0.0.1]:49280 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pGDPn-0001QA-Bq
	for submit <at> debbugs.gnu.org; Fri, 13 Jan 2023 01:19:47 -0500
Received: from lists.gnu.org ([209.51.188.17]:33328)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1pGDPl-0001Q2-Ee
 for submit <at> debbugs.gnu.org; Fri, 13 Jan 2023 01:19:46 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vapier@HIDDEN>) id 1pGDPl-0007Tk-AJ
 for bug-automake@HIDDEN; Fri, 13 Jan 2023 01:19:45 -0500
Received: from woodpecker.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]
 helo=smtp.gentoo.org)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256)
 (Exim 4.90_1) (envelope-from <vapier@HIDDEN>) id 1pGDPj-0005eg-MZ
 for bug-automake@HIDDEN; Fri, 13 Jan 2023 01:19:44 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id 186CE340955; Fri, 13 Jan 2023 06:19:41 +0000 (UTC)
Date: Fri, 13 Jan 2023 01:19:39 -0500
From: Mike Frysinger <vapier@HIDDEN>
To: Vincent Lefevre <vincent@HIDDEN>, bug-automake@HIDDEN
Subject: Re: bug#55025: Automake should allow one to enable POSIX make behavior
Message-ID: <Y8D3+3Bt5cWPaFe3@vapier>
References: <20220419153348.GD2033@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="H/Kz3irbfGTc44XL"
Content-Disposition: inline
In-Reply-To: <20220419153348.GD2033@HIDDEN>
Received-SPF: pass client-ip=2001:470:ea4a:1:5054:ff:fec7:86e4;
 envelope-from=vapier@HIDDEN; helo=smtp.gentoo.org
X-Spam_score_int: -41
X-Spam_score: -4.2
X-Spam_bar: ----
X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


--H/Kz3irbfGTc44XL
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 19 Apr 2022 17:33, Vincent Lefevre wrote:
> https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
> says about the target rules:
>=20
>   .POSIX
>     The application shall ensure that this special target is specified
>     without prerequisites or commands. If it appears as the first
>     non-comment line in the makefile, /make/ shall process the makefile
>     as specified by this section; otherwise, the behavior of /make/ is
>     unspecified.
>=20
> But even though one may add a .POSIX target as the first non-comment
> line in one's Makefile.am file, Automake will add various non-comment
> lines before this target in the generated Makefile. I received a
> remark about that for GNU MPFR. Though GNU make does not require
> this target to be the first non-comment line, this may matter with
> other make implementations.
>=20
> This could be done either by detecting a .POSIX target in Makefile.am
> or with some AM_* macro in the configure.ac file.

any reason we don't just define it ourselves unconditionally ?  seems
like the whole point of Automake is for devs to not worry about these
kind of nitty details.
-mike

--- a/lib/am/header-vars.am
+++ b/lib/am/header-vars.am
@@ -14,6 +14,8 @@
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <https://www.gnu.org/licenses/>.
=20
+.POSIX:
+
 VPATH =3D @srcdir@
=20
 @SET_MAKE@

--H/Kz3irbfGTc44XL
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmPA9/sACgkQQWM7n+g3
9YFC8hAAxmO0zT8my7TLrn28LRnGTZ4xKyvkoHX1mpmKwuRL0lEF1fpVkn7eMcr9
jFgPU+EjIb+ybcphtCrt1ZL3ItOqpVdcnUERWJIt1iiqdUSQHCyiLwPpE1nEqbjX
xsgq7Pw5efFb7qXgyOtVUW3wybUNyab360UPXbJGnaZq2se5BBOgUdljR5UQJE/z
5qBa/VB8Xw6c5Y94SJ0R3Qi79IvzGqn0Y10POZqkvYoA6ejqrLP0kFonTaYDYkpJ
YqS7n+Dkwn52TNlS8cgdvhjDTPPeAhN4/KaNPf+ClS2FuWK+qbPaB5APn/c1CFuy
Wt3m85Aj5zFOsDV26aPamNzoR81eMzYQQK5dKvEZn9NJqcnAu6U+7Pnfn7jNoeLC
0gDtRGg6dDutZBYtCw5O7zLolZ7uCvEayhQaXJg0pxN0gEaZnQRfXWQQFf4HTujo
bu/B80DcxOW1+saJSXK8JdYgjZ4tuana/42vWfcM63TnhLioC2wikkU3VRcVo3gM
5IPjR2wBsFzND3CoWxfilef6sPMt0GvpSf+SblLH5g6sopVuOmcZyBbqr/dNbiJg
iCMU5ZZio7r1qj87/L0ThJfBsoW7R6DTjupGvYbozaGaiODLMfdL/sV4KLFwJ1i7
AiVhhZ74EgFQtgE+wASmc3NQRf5fmw+NP1jZ9B8bc2lT4eW3b5E=
=WSSh
-----END PGP SIGNATURE-----

--H/Kz3irbfGTc44XL--




Information forwarded to bug-automake@HIDDEN:
bug#55025; Package automake. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 19 Apr 2022 15:34:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 19 11:34:07 2022
Received: from localhost ([127.0.0.1]:43921 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ngprj-00008f-AW
	for submit <at> debbugs.gnu.org; Tue, 19 Apr 2022 11:34:07 -0400
Received: from lists.gnu.org ([209.51.188.17]:33718)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vincent@HIDDEN>) id 1ngprh-00008W-6F
 for submit <at> debbugs.gnu.org; Tue, 19 Apr 2022 11:34:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42840)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vincent@HIDDEN>)
 id 1ngprf-0001rH-LQ
 for bug-automake@HIDDEN; Tue, 19 Apr 2022 11:34:04 -0400
Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:45684)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vincent@HIDDEN>)
 id 1ngprb-0006Yf-Vr
 for bug-automake@HIDDEN; Tue, 19 Apr 2022 11:34:03 -0400
Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.95)
 (envelope-from <vincent@HIDDEN>) id 1ngprQ-000E9Y-Nn;
 Tue, 19 Apr 2022 17:33:48 +0200
Date: Tue, 19 Apr 2022 17:33:48 +0200
From: Vincent Lefevre <vincent@HIDDEN>
To: bug-automake@HIDDEN
Subject: Automake should allow one to enable POSIX make behavior
Message-ID: <20220419153348.GD2033@HIDDEN>
Mail-Followup-To: Vincent Lefevre <vincent@HIDDEN>,
	bug-automake@HIDDEN
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Mailer-Info: https://www.vinc17.net/mutt/
User-Agent: Mutt/2.2.3+10 (6e7437c4) vl-138565 (2022-04-12)
Received-SPF: none client-ip=140.77.13.17; envelope-from=vincent@HIDDEN;
 helo=cventin.lip.ens-lyon.fr
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
says about the target rules:

  .POSIX
    The application shall ensure that this special target is specified
    without prerequisites or commands. If it appears as the first
    non-comment line in the makefile, /make/ shall process the makefile
    as specified by this section; otherwise, the behavior of /make/ is
    unspecified.

But even though one may add a .POSIX target as the first non-comment
line in one's Makefile.am file, Automake will add various non-comment
lines before this target in the generated Makefile. I received a
remark about that for GNU MPFR. Though GNU make does not require
this target to be the first non-comment line, this may matter with
other make implementations.

This could be done either by detecting a .POSIX target in Makefile.am
or with some AM_* macro in the configure.ac file.

-- 
Vincent Lefèvre <vincent@HIDDEN> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




Acknowledgement sent to Vincent Lefevre <vincent@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#55025; 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, 13 Jan 2023 06:30:02 UTC

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