bug#55025: Automake should allow one to enable POSIX make behavior

2023-10-04 Thread Vincent Lefevre
On 2023-10-03 15:08:42 -0600, Karl Berry wrote: > Yes, Automake should either detect a ".POSIX:" in the Makefile.am > file (at least if it is the first non-comment line) and place it at > the beginning of Makefile.in, or provide an option to be used with > AM_INIT_AUTOMAKE (or AUTOM

bug#55025: Automake should allow one to enable POSIX make behavior

2023-10-03 Thread Karl Berry
Yes, Automake should either detect a ".POSIX:" in the Makefile.am file (at least if it is the first non-comment line) and place it at the beginning of Makefile.in, or provide an option to be used with AM_INIT_AUTOMAKE (or AUTOMAKE_OPTIONS) in order to have a ".POSIX:" at the beg

bug#55025: Automake should allow one to enable POSIX make behavior

2023-10-02 Thread Vincent Lefevre
On 2023-10-02 15:17:13 -0600, Karl Berry wrote: > Sorry, I don't understand what you want Automake to do. > > Right now, as far as I can tell, Automake does nothing with .POSIX. It's > not mentioned in the manual nor, as far as I can grep, the code. Maybe > that's the issue, and you want a leading

bug#55025: Automake should allow one to enable POSIX make behavior

2023-10-02 Thread Karl Berry
Sorry, I don't understand what you want Automake to do. Right now, as far as I can tell, Automake does nothing with .POSIX. It's not mentioned in the manual nor, as far as I can grep, the code. Maybe that's the issue, and you want a leading .POSIX in your Makefile.am to be specially copied at the

bug#55025: Automake should allow one to enable POSIX make behavior

2023-10-02 Thread Vincent Lefevre
On 2023-01-14 01:30:24 -0500, Nick Bowler wrote: > Consider these two Makefiles, identical except for the presence of > the .POSIX special target: > > % cat >noposix.mk <<'EOF' > craziness: > @-false; echo hello > @false; echo hello > EOF > > % cat >posix.mk <<'EOF' > .POSIX:

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-14 Thread Vincent Lefevre
On 2023-01-14 15:12:00 -0700, Karl Berry wrote: > P.S. I note that GNU make just made an alpha release. If anyone > wants to report the purported .POSIX bug, might be a good time. I've just reported it: https://savannah.gnu.org/bugs/index.php?63667 -- Vincent Lefèvre - Web:

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-14 Thread Vincent Lefevre
On 2023-01-14 01:30:24 -0500, Nick Bowler wrote: > Does adding .POSIX: to a Makefile actually solve any real-world > portability problem with Automake generated makefiles, or is all of > this just hypothetical? For MPFR, when I initially added it, this was just in case. The real issue at that tim

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-14 Thread Karl Berry
P.S. I note that GNU make just made an alpha release. If anyone wants to report the purported .POSIX bug, might be a good time.

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-14 Thread Karl Berry
Mike, if you want to make an option that lets people have .POSIX if they want it (and/or recognize .POSIX in the Makefile.am), fine. Please don't foist it on the rest of us. As Nick has shown, I feel pretty sure the change would break a lot of existing projects, which IMHO is something to avoid at

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-14 Thread Nick Bowler
On 14/01/2023, Mike Frysinger wrote: [...] >> I tried several other implementations and they follow the POSIX >> behaviour by default, adding -e only when errors are not suppressed. > > this is exactly my point. if i'm developing a project with automake > and i'm using gnu make, i can easily prod

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-13 Thread Mike Frysinger
On 14 Jan 2023 01:30, Nick Bowler wrote: > On 2023-01-13, Mike Frysinger wrote: > > On 13 Jan 2023 16:01, Karl Berry wrote: > >> I am doubtful about blithely defining .POSIX unconditionally. I feel > >> sure that will break existing Makefiles. I don't think we should do that. > >> > >> Detecting .

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-13 Thread Nick Bowler
On 2023-01-13, Mike Frysinger wrote: > On 13 Jan 2023 16:01, Karl Berry wrote: >> I am doubtful about blithely defining .POSIX unconditionally. I feel >> sure that will break existing Makefiles. I don't think we should do that. >> >> Detecting .POSIX in an existing Makefile.am and moving it to the

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-13 Thread Mike Frysinger
On 13 Jan 2023 16:01, Karl Berry wrote: > I am doubtful about blithely defining .POSIX unconditionally. I feel > sure that will break existing Makefiles. I don't think we should do that. > > Detecting .POSIX in an existing Makefile.am and moving it to the front > sounds desirable, since that is cl

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-13 Thread Karl Berry
I am doubtful about blithely defining .POSIX unconditionally. I feel sure that will break existing Makefiles. I don't think we should do that. Detecting .POSIX in an existing Makefile.am and moving it to the front sounds desirable, since that is clearly what the developer intended. Another (not m

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-13 Thread Vincent Lefevre
On 2023-01-13 01:19:39 -0500, Mike Frysinger wrote: > 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. Probably. Note, however, that .POSIX affects GNU "make" on a few points (the

bug#55025: Automake should allow one to enable POSIX make behavior

2023-01-12 Thread Mike Frysinger
On 19 Apr 2022 17:33, Vincent Lefevre wrote: > 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 fir

bug#55025: Automake should allow one to enable POSIX make behavior

2022-04-19 Thread Vincent Lefevre
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 pro