From 8859607eaa068a3aaa7df7f54eff186b25ecdad0 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 11 Jun 2024 19:28:36 -0400 Subject: tunables: sort tunables list (BZ 30027) Sort tunables list at the time it's generated. Note: adding new tunables will cause other tunable IDs to change, but that was the case before anyway. POSIX does not guarantee the order of "foo in bar" AWK operators, so the order was indeterminate before anyway. Even depending on the order to be the same across multiple calls, such as in this script, is undefined, so sorting the list resolves that also. Note that sorting is not dependent on the user's locale. --- Makeconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makeconfig') diff --git a/Makeconfig b/Makeconfig index 29819363da..2d4343b604 100644 --- a/Makeconfig +++ b/Makeconfig @@ -1265,7 +1265,7 @@ $(common-objpfx)dl-tunable-list.stmp: \ $(..)elf/dl-tunables.list \ $(wildcard $(subdirs:%=$(..)%/dl-tunables.list)) \ $(wildcard $(sysdirs:%=%/dl-tunables.list)) - $(AWK) -f $^ > ${@:stmp=T} + LC_ALL=C $(AWK) -f $^ > ${@:stmp=T} $(move-if-change) ${@:stmp=T} ${@:stmp=h} touch $@ -- cgit v1.2.3