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

Re: [BUG] Re: Git 2.35.0-rc0

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jan 13, 2022, 13:21 UTC
Message-ID
<220113.864k67vkea.gmgdl@evledraar.gmail.com>
In-Reply-To
<xmqqzgo0u5j7.fsf@gitster.g>
On Wed, Jan 12 2022, Junio C Hamano wrote:
Show 45 quoted lines
> <rsbecker@nexbridge.com> writes:
>
>> diff --git a/config.mak.uname b/config.mak.uname
>> index a3a779327f..9b3e9bff5f 100644
>> --- a/config.mak.uname
>> +++ b/config.mak.uname
>> @@ -576,6 +576,7 @@ ifeq ($(uname_S),NONSTOP_KERNEL)
>>         NO_SETENV = YesPlease
>>         NO_UNSETENV = YesPlease
>>         NO_MKDTEMP = YesPlease
>> +       NO_UNCOMPRESS2 = YesPlease
>>         # Currently libiconv-1.9.1.
>>         OLD_ICONV = UnfortunatelyYes
>>         NO_REGEX = NeedsStartEnd
>>
>> Could we get that into rc1?
>
> Sure, with an appliable patch that is properly signed off.
>
> ----- >8 --------- >8 --------- >8 --------- >8 --------- >8 -----
> Date: Mon, 10 Jan 2022 22:51:39 -0500
> From: "Randall S. Becker" <rsbecker@nexbridge.com>
> Subject: [PATCH] build: NonStop ships with an older zlib
>
> Notably, it lacks uncompress2(); use the fallback we ship in our
> tree instead.
>
> not-Signed-off-yet-by: Randall S. Becker <rsbecker@nexbridge.com>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
> ---
>  config.mak.uname | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/config.mak.uname b/config.mak.uname
> index a3a779327f..9b3e9bff5f 100644
> --- a/config.mak.uname
> +++ b/config.mak.uname
> @@ -576,6 +576,7 @@ ifeq ($(uname_S),NONSTOP_KERNEL)
>  	NO_SETENV = YesPlease
>  	NO_UNSETENV = YesPlease
>  	NO_MKDTEMP = YesPlease
> +	NO_UNCOMPRESS2 = YesPlease
>  	# Currently libiconv-1.9.1.
>  	OLD_ICONV = UnfortunatelyYes
>  	NO_REGEX = NeedsStartEnd

I've run into some other cases on testing on platforms hwere the NO_UNCOMPRESS2 is now needed.

It's a bit of an annoyance, as git would previously compile cleanly on almost any system with NO_CURL=Y NO_OPENSSL=Y, most of those with a C compiler have a libz, even if it's ancient.

As I noted in https://lore.kernel.org/git/87wnn62nhp.fsf@evledraar.gmail.com/ this use of uncompress2() is just saving a few lines of boilerplate instead of using the underlying zlib functions, which every other in-tree user uses.

So I think it would be most welcome if someone wanted to work on moving to that API use, and IMO such a change could even happen before the final release. After all we don't use reftable for anything except the tests it runs, so as long as those pass it IMO outweighs the new annyonce in compiling git on those platforms.

Previous: Taylor BlauNext: Junio C Hamano
Message 12 of 13 in “[BUG] Re: Git 2.35.0-rc0”
  1. rsbecker@nexbridge.comJan 11, 2022
  2. Taylor BlauJan 11, 2022
  3. rsbecker@nexbridge.comJan 11, 2022
  4. Taylor BlauJan 11, 2022
  5. rsbecker@nexbridge.comJan 11, 2022
  6. rsbecker@nexbridge.comJan 11, 2022
  7. rsbecker@nexbridge.comJan 11, 2022
  8. Taylor BlauJan 11, 2022
  9. rsbecker@nexbridge.comJan 11, 2022
  10. Junio C HamanoJan 12, 2022
  11. Taylor BlauJan 12, 2022
  12. Ævar Arnfjörð BjarmasonJan 13, 2022
  13. Junio C HamanoJan 13, 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.