summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/git
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-17 17:57:13 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-18 23:40:01 +0000
commit8f5577c6f78085983ce42f837f896c97a9020fc9 (patch)
tree2627b89702055e6b77f58cc9eeaa327386c565ff /meta/recipes-devtools/git
parent9113bc1170b5c25d0eee8f1784c9e212eb81c9aa (diff)
downloadpoky-8f5577c6f78085983ce42f837f896c97a9020fc9.tar.gz
git: Fix determinism issue
(From OE-Core rev: 9ae740939f8315c64fe7571f912404127a29dc89) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/git')
-rw-r--r--meta/recipes-devtools/git/git.inc3
-rw-r--r--meta/recipes-devtools/git/git/fixsort.patch31
2 files changed, 33 insertions, 1 deletions
diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index 544e23c844..586a305b27 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -7,7 +7,8 @@ DEPENDS = "openssl curl zlib expat"
7PROVIDES_append_class-native = " git-replacement-native" 7PROVIDES_append_class-native = " git-replacement-native"
8 8
9SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \ 9SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \
10 ${KERNELORG_MIRROR}/software/scm/git/git-manpages-${PV}.tar.gz;name=manpages" 10 ${KERNELORG_MIRROR}/software/scm/git/git-manpages-${PV}.tar.gz;name=manpages \
11 file://fixsort.patch"
11 12
12S = "${WORKDIR}/git-${PV}" 13S = "${WORKDIR}/git-${PV}"
13 14
diff --git a/meta/recipes-devtools/git/git/fixsort.patch b/meta/recipes-devtools/git/git/fixsort.patch
new file mode 100644
index 0000000000..07a487e8ca
--- /dev/null
+++ b/meta/recipes-devtools/git/git/fixsort.patch
@@ -0,0 +1,31 @@
1[PATCH] generate-configlist.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
16Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17Upstream-Status: Submitted [https://public-inbox.org/git/f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org/T/#u]
18
19Index: git-2.30.0/generate-configlist.sh
20===================================================================
21--- git-2.30.0.orig/generate-configlist.sh
22+++ git-2.30.0/generate-configlist.sh
23@@ -9,7 +9,7 @@ static const char *config_name_list[] =
24 EOF
25 grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt Documentation/config/*.txt |
26 sed '/deprecated/d; s/::$//; s/, */\n/g' |
27- sort |
28+ LC_ALL=C sort |
29 sed 's/^.*$/ "&",/'
30 cat <<EOF
31 NULL,