aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-04-06 17:25:16 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-04-06 17:35:49 +0100
commit087795323576ab8f4478f5aa3568adaec717d26f (patch)
tree4cf830ec9cb03c5ee62684c80b0364f228b2d316
parentbb8300069b5595b2ae322127a173d1bd3d04543e (diff)
downloadupstream-087795323576ab8f4478f5aa3568adaec717d26f.tar.gz
upstream-087795323576ab8f4478f5aa3568adaec717d26f.tar.bz2
upstream-087795323576ab8f4478f5aa3568adaec717d26f.zip
scripts: make sure sort-order is independent from locale
Set LC_ALL=C environment variable when calling 'sort' as the sort order otherwise depends on the locale set. Fixes: 56ce110b73 ("scripts: make sure conffiles are sorted") Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit 1d77dca3b32dd883bcc2213675cf21111ac1beca)
-rwxr-xr-xscripts/ipkg-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ipkg-build b/scripts/ipkg-build
index 32bc4b6d50..19df621048 100755
--- a/scripts/ipkg-build
+++ b/scripts/ipkg-build
@@ -58,7 +58,7 @@ pkg_appears_sane() {
rm "$CONTROL"/conffiles
if [ -f "$CONTROL"/conffiles.resolved ]; then
- sort -o "$CONTROL"/conffiles "$CONTROL"/conffiles.resolved
+ LC_ALL=C sort -o "$CONTROL"/conffiles "$CONTROL"/conffiles.resolved
rm "$CONTROL"/conffiles.resolved
chmod 0644 "$CONTROL"/conffiles
fi