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

Re: [PATCH] SKIP_DASHED_BUILT_INS: respect `config.mak`

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 21, 2021, 22:59 UTC
Message-ID
<xmqqft2tc2w7.fsf@gitster.c.googlers.com>
In-Reply-To
<pull.840.git.1611234585889.gitgitgadget@gmail.com>

"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes:

Show 10 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> When `SKIP_DASHED_BUILT_INS` is specified in `config.mak`, the dashed
> form of the built-ins was still generated.
>
> By moving the `SKIP_DASHED_BUILT_INS` handling after `config.mak` was
> read, this can be avoided.
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---

OK. So the problem is that the moved block that sets ALL_PROGRAMS, ALL_COMMANDS_TO_INSTALL, etc. depends on $(SKIP_DASHED_BUILT_INS), and that happens before we "include config.mak".

That makes sense. Will apply (I do not know if you want this also on the maint tracks and if so which ones---I think it would matter if you want to cut a maint release from 2.29.x or 2.30.x tracks).

By the way, I wonder if we can (semi-)automate looking for such a mistake in the future. Does a simple rule like:

    No variable that has "Define X if you want to distim the doshes"
    at the beginning of the Makefile must be referenced before we
    include config.mak
work?
Thanks.
Previous: Johannes Schindelin via GitGitGadgetNext: Johannes Schindelin
Message 2 of 4 in “SKIP_DASHED_BUILT_INS: respect `config.mak`”
  1. SKIP_DASHED_BUILT_INS: respect `config.mak`Johannes Schindelin via GitGitGadget, Jan 21, 2021
  2. Junio C HamanoJan 21, 2021
  3. Johannes SchindelinJan 22, 2021
  4. Junio C HamanoJan 22, 2021

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.