git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Makefile(s): avoid recipe prefix in conditional statements

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 8, 2024, 23:34 UTC
Message-ID
<xmqqh6gb5szm.fsf@gitster.g>
In-Reply-To
<606990048585347654f3b4b187ec27f4dc1b85e3.camel@gnu.org>
Paul Smith <psmith@gnu.org> writes:
Show 7 quoted lines
> Just to note that this usage clearly contravenes the documentation,
> which states that preprocessor statement lines cannot begin with a TAB.
> It was a bug that this was allowed by the GNU Make parser.
>
> I understand that in many projects (Linux, probably Git :)) if the
> documentation and behavior disagreed then the documentation would be
> changed, not the behavior.

If a bug is left in a released version long enough, it becomes a feature your users depend upon. We saw that happen to us, I am sure the mantra "don't break userspace" the kernel project had comes from the same place.

I am not sure what benefits are gained by the existing users with this change to ease fixing some parser bug (I didn't bother to see your bug tracker) so I cannot judge if the benefit outweighs the cost of them all having to scramble and adjust to the new world order.

Previous: Paul SmithNext: Paul Smith
Message 5 of 13 in “Makefiles are broken as of GNU Make commit 07fcee35f058a876447c8a021f9eb1943f902534”
  1. Dario GjorgjevskiApr 8, 2024
  2. Makefile(s): avoid recipe prefix in conditional statementsTaylor Blau, Apr 8, 2024
  3. Junio C HamanoApr 8, 2024
  4. Paul SmithApr 8, 2024
  5. Junio C HamanoApr 8, 2024
  6. Paul SmithApr 9, 2024
  7. Junio C HamanoApr 8, 2024
  8. Paul SmithApr 9, 2024
  9. Junio C HamanoApr 9, 2024
  10. Jeff KingApr 9, 2024
  11. Jeff KingApr 9, 2024
  12. Paul SmithApr 9, 2024
  13. Junio C HamanoApr 8, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.