genode/tool/depot/mk
Martin Stein 139a2cfae9 tool: use local LC_ALL=C instead of LC_COLLATE=C
We used to export 'LC_COLLATE=C' for the environment of Genode tools. This was
meant to ensure that sorting is always done C-style and not dependent on the
users locale settings. This is required, for instance, to ensure that the same
archive always yields the same hash.

However, 'export LC_COLLATE=C' is not sufficient. It can be outruled by an
'LC_ALL' setting in the users environment. The manual of 'sort' recommends to
set 'LC_ALL=C' locally if you want reliable results and this is what this
commit does. Furthermore it removes the former 'export LC_COLLATE=C'
directives.

Note that I couldn't find a way to set 'LC_ALL' local to 'exec ... sort' in
TCL. This is why I set it global instead using TCLs 'env' array.

Note that the Make directive '$(sort ...)' and the TCL directive 'lsort',
unlike the Shell directive 'sort', are not affected by the users locale
settings.

Fixes #4144
2021-05-28 14:15:26 +02:00
..
build_bin_archive tool/depot/create: add CCACHE=1 option 2021-03-12 12:01:38 +01:00
categorize_args.inc depot: move versions to subdirectory 2017-12-21 15:01:45 +01:00
common.inc tool: use local LC_ALL=C instead of LC_COLLATE=C 2021-05-28 14:15:26 +02:00
content_env_missing_ports.mk tool/depot: improve handling of missing ports 2019-05-27 14:52:52 +02:00
content_env.mk depot: execute content rules sequentially 2018-03-08 12:05:09 +01:00
dependencies.inc depot: move versions to subdirectory 2017-12-21 15:01:45 +01:00
downloader depot: support for gpg command override 2018-09-21 15:49:52 +02:00
extract_api_archive Tool for assembling API/source/binary archives 2017-05-31 13:15:56 +02:00
extract_content.inc Tool for assembling API/source/binary archives 2017-05-31 13:15:56 +02:00
extract_pkg_archive depot: verify that runtime file is valid 2018-08-02 14:36:34 +02:00
extract_post_dependencies.inc tool: use local LC_ALL=C instead of LC_COLLATE=C 2021-05-28 14:15:26 +02:00
extract_pre_dependencies.inc tool/depot: improve handling of missing ports 2019-05-27 14:52:52 +02:00
extract_raw_archive Tool for assembling API/source/binary archives 2017-05-31 13:15:56 +02:00
extract_src_archive tool/depot: use nullglob on stale archive removal 2019-04-09 12:30:35 +02:00
extract.inc tool: use local LC_ALL=C instead of LC_COLLATE=C 2021-05-28 14:15:26 +02:00
front_end.inc depot: make DEPOT_DIR overridable 2018-01-17 12:14:40 +01:00
gpg.inc depot: prevent warning with newer GPG versions 2019-01-07 12:33:56 +01:00