Re: make re-exec regression in 'make -sf -' mode

2022-02-20 Thread Dmitry Goncharov
On Sat, Feb 19, 2022 at 4:12 AM Sergei Trofimovich  wrote:

> Noticed the regression on lowdown-0.10.0 upstream package.
...
> Bitsect points at commit 7c4e6b0299 "[SV 60595] Restart
> whenever any makefile is rebuilt".

Thanks for your report.
I opened https://savannah.gnu.org/bugs/index.php?62088 and attached a fix.

regards, Dmitry



make re-exec regression in 'make -sf -' mode

2022-02-19 Thread Sergei Trofimovich
Noticed the regression on lowdown-0.10.0 upstream package.

Here is a complete trigger:

$ printf 'all:\n\techo $(CC)' | make -sf -

[good] GNU make 4.3 works as expected:

$ printf 'all:\n\techo $(CC)' | make -sf -
cc

[bad] GNU make from git loops indefinitely in re-execution:

$ printf 'all:\n\techo $(CC)' | ./make -sf -


Curiously space separation workaround is enough to
get the result:

$ printf 'all:\n\techo $(CC)' | ./make -s -f -
cc

Bitsect points at commit 7c4e6b0299 "[SV 60595] Restart
whenever any makefile is rebuilt".

-- 

  Sergei