mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 15:44:02 +00:00
Ensure stable sorting order in tools
This eliminates certain surprises with port contents and depot hashes.
This commit is contained in:
parent
0f6afa3d89
commit
65b2e63bb9
@ -56,6 +56,9 @@ export LIB_DEP_FILE ?= var/libdeps
|
||||
export ECHO ?= echo -e
|
||||
export CONTRIB_DIR
|
||||
|
||||
# Force stable sorting order
|
||||
export LC_COLLATE=C
|
||||
|
||||
#
|
||||
# Convert user-defined directories to absolute directories
|
||||
#
|
||||
|
@ -30,3 +30,6 @@ EMPTY :=
|
||||
# is not empty.
|
||||
#
|
||||
file_content = $(if $(wildcard $1),$(shell cat $1),)
|
||||
|
||||
# Force stable sorting order
|
||||
export LC_COLLATE=C
|
||||
|
@ -198,7 +198,7 @@ _check_hash: $(DEPOT_ARCHIVE_DIR).hash checked_recipe_hash_value_exists
|
||||
# would otherwise prompt 'cat' to block for standard input.
|
||||
#
|
||||
HASH_CMD := cd $(DEPOT_ARCHIVE_DIR); \
|
||||
echo | cat `find . -type f | LC_COLLATE=C sort` | $(HASHSUM) | sed "s/ .*//" \
|
||||
echo | cat `find . -type f | sort` | $(HASHSUM) | sed "s/ .*//" \
|
||||
|
||||
#
|
||||
# Generate the hash from the archive content
|
||||
|
@ -23,3 +23,5 @@ MSG_GENERATE := $(MSG_PREFIX)"generate "
|
||||
MSG_EXTRACT := $(MSG_PREFIX)"extract "
|
||||
MSG_GIT := $(MSG_PREFIX_TXT)git
|
||||
|
||||
# Force stable sorting order
|
||||
export LC_COLLATE=C
|
||||
|
Loading…
x
Reference in New Issue
Block a user