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

[PATCH] generate-configlist.sh: Fix determinism issue

From
RPRichard Purdie <richard.purdie@linuxfoundation.org>
Date
Feb 17, 2021, 17:53 UTC
Message-ID
<f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org>

Currently git binaries are not entirely reproducible, at least partly due to config-list.h differing in order depending on the system's locale settings. Under different locales, the entries:

​"sendemail.​identity",​ "sendemail.​<identity>.​*",​

would differ in order for example and this leads to differences in  the debug symbols for the binaries.

This can be fixed by specifying the C locale for the sort in the shell script generating the header.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Index: git-2.30.0/generate-configlist.sh
===================================================================
--- git-2.30.0.orig/generate-configlist.sh
+++ git-2.30.0/generate-configlist.sh
@@ -9,7 +9,7 @@ static const char *config_name_list[] =
 EOF
 	grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt Documentation/config/*.txt |
 	sed '/deprecated/d; s/::$//; s/,  */\n/g' |
-	sort |
+	LC_ALL=C sort |
 	sed 's/^.*$/	"&",/'
 	cat <<EOF
 	NULL,
Message 1 of 1 in “generate-configlist.sh: Fix determinism issue”
  1. generate-configlist.sh: Fix determinism issueRichard Purdie, Feb 17, 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.