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

Re: [PATCH v2] sha256: add support for Nettle

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 10, 2022, 20:37 UTC
Message-ID
<xmqqa69gr9ei.fsf@gitster.g>
In-Reply-To
<Yssyt40xrxjtaL6m@tapette.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> Yeah, I think given the fact that many folks use autoconf, it's
> beneficial to allow multiple options and just choose the one we like the
> most.

Not that we any of *_SHA256 set in the configure script ;-) It still is worth noting that the Makefile is prepared to deal with configure scripts written in the most simple way, i.e. test for any backend independent of other possible backends.

There can be at least three possible arrangements, and I think the current one is the most sensible.

 (1) We can allow multiple to be set and let Makefile define
     precedence.  "If you do not choose any, then we fall back to
     ..." will fall out as a natural consequence.  
     If somebody wants to write autoconf support, they do not have
     to reinvent the precedence order.  They can just check for the
     presence of individual libraries independently from each other.
     This is what we have today.
 (2) We can allow multiple to be set and let Makefile define
     precedence.  But a misguided autoconf author can invent their
     own precedence order that may not be compatible with what the
     Makefile has.
     This allows the autoconf author weird satisifaction for being
     different from what Makefile already decided for the sake of
     being different.
     This would be unfortunate, and we should watch out when we
     review patches to add autoconf support for *_SHA256 variables.
 (3) We can allow only one to be set and otherwise error out.
     If somebody wants to write autoconf support, they have to come
     up with the precedence order, or support the "--with[out]-X"
     thing to customize, in order to ensure that the configure
     script picks exactly one.
     Because not everybody has nor need to have enough knowledge to
     choose one among the multiple choices available to them, this
     is hostile to those who do not use configure.
     Not an improvement over what we have today.
Previous: brian m. carlsonNext: Reza Mahdi
Message 16 of 17 in “sha256: add support for Nettle”
  1. sha256: add support for Nettlebrian m. carlson, Jul 5, 2022
  2. Ramsay JonesJul 6, 2022
  3. brian m. carlsonJul 6, 2022
  4. Jeff KingJul 6, 2022
  5. Ævar Arnfjörð BjarmasonJul 6, 2022
  6. Jeff KingJul 6, 2022
  7. brian m. carlsonJul 6, 2022
  8. Junio C HamanoJul 6, 2022
  9. Junio C HamanoJul 6, 2022
  10. Junio C HamanoJul 7, 2022
  11. Junio C HamanoJul 7, 2022
  12. sha256: add support for Nettlebrian m. carlson, Jul 10, 2022
  13. Ævar Arnfjörð BjarmasonJul 10, 2022
  14. Junio C HamanoJul 10, 2022
  15. brian m. carlsonJul 10, 2022
  16. Junio C HamanoJul 10, 2022
  17. Reza MahdiAug 31, 2022

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.