Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame] | 1 | From bff7f16f7f41de8df67beb03722f235828ef2249 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 3 May 2021 15:48:19 -0700 |
| 4 | Subject: [PATCH] gen_build_files: Use C locale when calling sed on globbed files |
| 5 | |
| 6 | sort order is different based on chosen locale and also default shell |
| 7 | being bash or dash |
| 8 | |
| 9 | This sets the environment variable LC_ALL to the value C, which will |
| 10 | enforce bytewise sorting, irrespective of the shell |
| 11 | |
| 12 | Upstream-Status: Pending |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | scripts/gen_build_files.sh | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
| 18 | --- a/scripts/gen_build_files.sh |
| 19 | +++ b/scripts/gen_build_files.sh |
| 20 | @@ -4,6 +4,8 @@ |
| 21 | # but users complain that many sed implementations |
| 22 | # are misinterpreting --. |
| 23 | |
| 24 | +export LC_ALL=C |
| 25 | + |
| 26 | test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } |
| 27 | |
| 28 | # cd to objtree |