From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: git@vger.kernel.org
Subject: [PATCH] generate-configlist.sh: Fix determinism issue
Date: Wed, 17 Feb 2021 17:53:26 +0000 [thread overview]
Message-ID: <f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org> (raw)
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,
reply other threads:[~2021-02-17 17:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).