summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/busybox/0001-gen_build_files-Use-C-locale-when-calling-sed-on-glo.patch
blob: e0a22c5bb305bd74a98c5d04858b94f5bf0f8a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From bff7f16f7f41de8df67beb03722f235828ef2249 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 3 May 2021 15:48:19 -0700
Subject: [PATCH] gen_build_files: Use C locale when calling sed on globbed files

sort order is different based on chosen locale and also default shell
being bash or dash

This sets the environment variable LC_ALL to the value C, which will
enforce bytewise sorting, irrespective of the shell

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 scripts/gen_build_files.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/scripts/gen_build_files.sh
+++ b/scripts/gen_build_files.sh
@@ -4,6 +4,8 @@
 # but users complain that many sed implementations
 # are misinterpreting --.
 
+export LC_ALL=C
+
 test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; }
 
 # cd to objtree