mirror of
https://git.yoctoproject.org/poky
synced 2026-06-13 16:53:49 +02:00
(From OE-Core rev: 0d6d7d63a5e04eaff3db4d6aa552b2bfb3138c9c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From 0ada98b8e1de3fe835b439777303dfaf9ac65a08 Mon Sep 17 00:00:00 2001
|
|
From: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Date: Wed, 17 Feb 2021 17:57:13 +0000
|
|
Subject: [PATCH] generate-configlist.sh: Fix determinism issue
|
|
|
|
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>
|
|
Upstream-Status: Submitted [https://public-inbox.org/git/f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org/T/#u]
|
|
---
|
|
generate-configlist.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/generate-configlist.sh b/generate-configlist.sh
|
|
index 5794226..6b0b939 100755
|
|
--- a/generate-configlist.sh
|
|
+++ b/generate-configlist.sh
|
|
@@ -15,7 +15,7 @@ static const char *config_name_list[] = {
|
|
EOF
|
|
grep -h '^[a-zA-Z].*\..*::$' "$SOURCE_DIR"/Documentation/*config.txt "$SOURCE_DIR"/Documentation/config/*.txt |
|
|
sed '/deprecated/d; s/::$//; s/, */\n/g' |
|
|
- sort |
|
|
+ LC_ALL=C sort |
|
|
sed 's/^.*$/ "&",/'
|
|
cat <<EOF
|
|
NULL,
|