summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/git/git/fixsort.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/git/git/fixsort.patch')
-rw-r--r--meta/recipes-devtools/git/git/fixsort.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/git/fixsort.patch b/meta/recipes-devtools/git/git/fixsort.patch
new file mode 100644
index 0000000000..eec1f84945
--- /dev/null
+++ b/meta/recipes-devtools/git/git/fixsort.patch
@@ -0,0 +1,36 @@
1[PATCH] generate-cmdlist.sh: Fix determinism issue
2
3Currently git binaries are not entirely reproducible, at least partly
4due to config-list.h differing in order depending on the system's
5locale settings. Under different locales, the entries:
6
7"sendemail.identity",
8"sendemail.<identity>.*",
9
10would differ in order for example and this leads to differences in
11the debug symbols for the binaries.
12
13This can be fixed by specifying the C locale for the sort in the
14shell script generating the header.
15
16Note: This is a backport of Richard Purdie's original patch for a more
17recent version of git. The offending code in this older version is
18in generate-cmdlist.sh. The upstream current version has this code
19in generate-configlist.sh.
20
21Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22Signed-off-by: Steve Sakoman <steve@sakoman.com>
23Upstream-Status: Submitted [https://public-inbox.org/git/f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org/T/#u]
24
25index 71158f7..c137091 100755
26--- a/generate-cmdlist.sh
27+++ b/generate-cmdlist.sh
28@@ -82,7 +82,7 @@ static const char *config_name_list[] = {
29 EOF
30 grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt Documentation/config/*.txt |
31 sed '/deprecated/d; s/::$//; s/, */\n/g' |
32- sort |
33+ LC_ALL=C sort |
34 while read line
35 do
36 echo " \"$line\","