{"thread":{"id":"55162","subject":"[PATCH] generate-configlist.sh: Fix determinism issue","startedAt":"2021-02-17T17:54:21Z","lastAt":"2021-02-17T17:54:21Z","messageCount":1,"participants":["Richard Purdie"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"417165","messageId":"f029a942dd3d50d85e60bd37d8e454524987842f.camel@linuxfoundation.org","threadId":"55162","inReplyTo":null,"subject":"[PATCH] generate-configlist.sh: Fix determinism issue","fromName":"Richard Purdie","fromEmail":"richard.purdie@linuxfoundation.org","sentAt":"2021-02-17T17:53:26Z","receivedAt":"2021-02-17T17:54:21Z","isPatch":true,"sender":{"key":"richard.purdie@linuxfoundation.org","avatar":null},"body":"Currently git binaries are not entirely reproducible, at least partly \ndue to config-list.h differing in order depending on the system's\nlocale settings. Under different locales, the entries:\n\n​\"sendemail.​identity\",​\t \n\"sendemail.​<identity>.​*\",​\n\nwould differ in order for example and this leads to differences in \nthe debug symbols for the binaries.\n\nThis can be fixed by specifying the C locale for the sort in the\nshell script generating the header.\n\nSigned-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>\n\nIndex: git-2.30.0/generate-configlist.sh\n===================================================================\n--- git-2.30.0.orig/generate-configlist.sh\n+++ git-2.30.0/generate-configlist.sh\n@@ -9,7 +9,7 @@ static const char *config_name_list[] =\n EOF\n \tgrep -h '^[a-zA-Z].*\\..*::$' Documentation/*config.txt Documentation/config/*.txt |\n \tsed '/deprecated/d; s/::$//; s/,  */\\n/g' |\n-\tsort |\n+\tLC_ALL=C sort |\n \tsed 's/^.*$/\t\"&\",/'\n \tcat <<EOF\n \tNULL,\n\n"}]}