busybox/scripts
Khem Raj c0f8113f86 gen_build_files: Use C locale when calling sed on globbed files
When include/applets.h is re-generated

it generates code macros in include/applets.h e.g.

IF_XZCAT(APPLET_ODDNAME(xzcat, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xzcat))
...
IF_CHVT(APPLET_NOEXEC(chvt, chvt, BB_DIR_USR_BIN, BB_SUID_DROP, chvt))
...

sed is used to process source files like below to feed into this header
generation

sed -n 's@^//applet:@@p' "$srctree"/*/*.c "$srctree"/*/*/*.c

this means we let shell decide the order of .c files being fed into sed
tool, applets.h has code snippets thats generated out of code fragments
from these .c files and the order of the generated code depends on the
order of .c files being fed to sed and then piped to generate tool, even
though the generated code is logically same, it does result in re-odered
code in applets.h based on which shell was used during build on exact busybox
sources since 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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-06-05 17:36:19 +02:00
..
basic fix "warning array subscript has type 'char'" 2021-04-14 19:12:43 +02:00
kconfig fix "warning array subscript has type 'char'" 2021-04-14 19:12:43 +02:00
bb_release tar: add TODO about a bug with non-writable directories on extract 2021-01-01 13:34:25 +01:00
bloat-o-meter bloat-o-meter: avoid double counting 2021-03-09 17:25:07 +01:00
checkhelp.awk
checkstack.pl checkstack.pl: tweak bfin re 2019-01-18 09:56:19 +01:00
cleanup_printf2puts
echo.c scripts/echo.c: resolve implicit declaration of function 'dup2' 2019-03-05 16:57:04 +01:00
embedded_scripts hush: allow hush to run embedded scripts 2018-11-27 16:13:07 +01:00
find_bad_common_bufsiz
find_stray_common_vars
find_stray_empty_lines
fix_ws.sh
gcc-version.sh gcc-version.sh: fix for "invalid number" message during Android NDK builds 2021-04-22 09:21:39 +02:00
gen_build_files.sh gen_build_files: Use C locale when calling sed on globbed files 2021-06-05 17:36:19 +02:00
generate_BUFSIZ.sh build system: make CONFIG_FEATURE_USE_BSS_TAIL less funky 2016-06-29 15:00:52 +02:00
Kbuild.include build system: remove KBUILD_STR() 2020-04-29 14:52:19 +02:00
Kbuild.src
Makefile.build
Makefile.clean
Makefile.host
Makefile.IMA build system: remove KBUILD_STR() 2020-04-29 14:52:19 +02:00
Makefile.lib build system: remove KBUILD_STR() 2020-04-29 14:52:19 +02:00
memusage
mkconfigs
mkdiff_obj
mkdiff_obj_bloat
mkmakefile
objsizes
randomtest randomconfig fixes 2020-06-24 00:27:37 +02:00
randomtest.loop randomconfig fixes 2017-12-31 17:30:02 +01:00
sample_pmap
showasm
test_make_clean
test_make_O
test_setenv_leak.c crond: do not assume setenv() does not leak 2017-07-22 02:25:47 +02:00
trylink trylink: do not drop libs from CONFIG_EXTRA_LDLIBS 2021-02-23 23:09:49 +01:00