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

Re: [PATCH v3] make: add INSTALL_STRIP option variable

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 16, 2021, 19:23 UTC
Message-ID
<xmqqlf3wtjcq.fsf@gitster.g>
In-Reply-To
<87a6kchlqc.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> I think the suggestion in
> https://lore.kernel.org/git/xmqqo89cqkt9.fsf@gitster.g/ is to make this
> a boolean variable, and in any case I think that makes more sense here,

I do not think I ever suggested to use a boolean in that message nor in the other message in thread. A boolean may convey the wish of the users to cause the binaries installed in a stripped form, but does not allow them to express how to do so on their particular platform (e.g. where is "strip" installed? how to tell "install" to strip?).

Show 6 quoted lines
> since....
> ...
> ...this really is not an INSTALL_STRIP but (using some combination of
> your own naming) a "INSTALL_XPROGRAMS_OPTS" or "INSTALL_XOPTS". I.e. you
> can supply arbitrary options to "install" with this, but only for
> binaries.
INSTALL_STRIP_OPTS is a perfectly fine name for this thing.  

It should not say XPROGRAMS but should say STRIP to express the intent, i.e. why we have it, not what we do with it. The fact that it wants to apply to binaries and not to scripts is an implementation detail.

Of course, when you want to "affect" only binaries but not scripts, even if the effect you are trying to cause on them is _not_ "strip", you could abuse the option, but the name must make it clear that such a use is an abuse. By naming the variable with STRIP in its name, we reserve the right to change to which instance of $(INSTALL) the option is applied to to better implement the goal to "strip while installing", which might not be a simple "binaries get it, scripts don't" we currently have, and it will be clear to those who have been abusing the option to affect "only binaries and not scripts" that they have no right to complain.

HTH.
Previous: Ævar Arnfjörð Bjarmason
Message 5 of 5 in “make: add INSTALL_STRIP option variable”
  1. make: add INSTALL_STRIP option variableBagas Sanjaya, Sep 2, 2021
  2. Ævar Arnfjörð BjarmasonSep 16, 2021
  3. Bagas SanjayaSep 16, 2021
  4. Ævar Arnfjörð BjarmasonSep 18, 2021
  5. Junio C HamanoSep 16, 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.