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

RE: [PATCH v0 1/1] Teach git version --build-options about OpenSSL

From
Randall Becker <randall.becker@nexbridge.ca>
Date
Jun 20, 2024, 18:48 UTC
Message-ID
<DS0PR17MB60311D246BF2E89FAEB3C64DF4C82@DS0PR17MB6031.namprd17.prod.outlook.com>
In-Reply-To
<xmqq34p7v4x1.fsf@gitster.g>
On Thursday, June 20, 2024 2:35 PM, Junio C Hamano wrote:
Show 25 quoted lines
>Junio C Hamano <gitster@pobox.com> writes:
>
>> "Randall S. Becker" <the.n.e.key@gmail.com> writes:
>>
>>> This change uses the OpenSSL supplied OPENSSL_VERSION_TEXT #define
>>> supplied for this purpose by that project. If the #define is not
>>> present, the version is not reported.
>> ...
>> If some unknown version of OpenSSL does define it but not as a string
>> constant, it would break the build, e.g.,
>>
>> 	#define OPENSSL_VERSION_TEXT 2 plus 4 is 6
>>
>> We could stringify it ourselves, but that is probably not worth
>> worrying about.
>>
>> Will queue.  Thanks.
>
>Having said that, we do link with and depend on libraries like libcURL, libPCRE, libz,
>etc.  I wonder if they are also worth reporting, and if so how?
>
>We can leave it just like any other new features, "if you have an itch to see it, you
>can offer a patch", but I am wondering if we are going to get a several more, we'd at
>least want to standardize the process and the output (e.g., do we limit the line
>counts to 1 and line length to some reasonably low number?).
I was thinking about those also, but this was a minimalist implementation (opensslv.h comes in via git-compat-util.h - so I did not need to bring anything else into the code). If anyone is interested, the libcurl version is in curlver.h (LIBCURL_VERSION) - but I think it is more important to have the OpenSSL version as this is an important compatibility indicator. zlib.h has ZLIB_VERSION (text form). I don't have libPCRE, so can't tell. I can do another series for the others, but those would impact help.c includes, unlike this one.
Previous: Junio C HamanoNext: rsbecker@nexbridge.com
Message 5 of 10 in “Teach git version --build-options about OpenSSL”
  1. 0/1 Teach git version --build-options about OpenSSLRandall S. Becker, Jun 19, 2024
  2. 1/1 Teach git version --build-options about OpenSSLRandall S. Becker, Jun 19, 2024
  3. Junio C HamanoJun 20, 2024
  4. Junio C HamanoJun 20, 2024
  5. Randall BeckerJun 20, 2024
  6. rsbecker@nexbridge.comJun 20, 2024
  7. Junio C HamanoJun 20, 2024
  8. rsbecker@nexbridge.comJun 21, 2024
  9. Junio C HamanoJun 21, 2024
  10. Randall BeckerJun 20, 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.