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
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Jun 21, 2024, 01:50 UTC
Message-ID
<010201dac37d$68a96070$39fc2150$@nexbridge.com>
In-Reply-To
<xmqqv823p3tz.fsf@gitster.g>
On Thursday, June 20, 2024 7:55 PM, Junio C Hamano wrote:
><rsbecker@nexbridge.com> writes:
>
>> I have another patch almost ready for zlib and libcurl, but it is
>> based on the OpenSSL change. Would you like a re-roll or should I wait
for the
Show 5 quoted lines
>merge?
>> I do not have the PCRE - not available on my system, so someone else
>> should do that one.
>
>A two-patch series for zlib and libcURL that builds on top of 8b731b8d
(version: --
>build-options reports OpenSSL version information, 2024-06-19), which has
>already hit 'next', would be OK, but most likely, these three are
independent "for X
>in (cURL, zlib, OpenSSL), append X if X is there", and when the three
changes are
Show 13 quoted lines
>merged together, it would result in
>
>    #if defined CURL_something
>	strbuf_add*(...libcurl thing...);
>    #endif
>    #if defined OPENSSL_something
>	strbuf_add*(...openssl thing...);
>    #endif
>    #if defined libz_something
>	strbuf_add*(...zlib thing...);
>    #endif
>
>with possible permutation of different ordering of them.  And in such a
case, three
>parallel topics that build on the same base (i.e. some recent tip of
'master') would
>be just fine, even though they _surely_ will introduce trivial textual
conflicts.
>
>If you introduced a helper function or CPP macro to make it easy to add the
>OpenSSL version string in your OpenSSL patch, and the other two patches
took
>advantage of the helper or CPP macro while adding the zlib or libcURL
version
>string, then it would be a different story.  A two-patch series for zlib
and libcURL that
>builds on top of the OpenSSL patch would become the best (and the only
practical)
>approach in such a case, but there is nothing in the OpenSSL patch we have
>reviewed that these other two would want to depend on, so...

I think I would rather let each one stand. Embedding an #if defined inside a macro makes me nervous, considering it is compiler version dependent. Would putting each one in its own commit work for you? --Randall

Previous: Junio C HamanoNext: Junio C Hamano
Message 8 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.