glibcLocales: disable parallelism to restore deterministic locales
The way `nixpkgs` runs parallel `localedef` instances shares
`--prefix=/build` flag. As a result `localedef` processes
non-deterministically extend the file with new locales (hopefully
without data corruption):
https://github.com/NixOS/nixpkgs/issues/245360
Co-authored-by: Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>
This commit is contained in:
co-authored by
Adam Joseph
parent
a4c0bbf98b
commit
43da9e8fff
@@ -60,7 +60,11 @@
|
||||
echo SUPPORTED-LOCALES='${toString locales}' > ../glibc-2*/localedata/SUPPORTED
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
# Current `nixpkgs` way of building locales is not compatible with
|
||||
# parallel install. `locale-archive` is updated in parallel with
|
||||
# multiple `localedef` processes and causes non-deterministic result:
|
||||
# https://github.com/NixOS/nixpkgs/issues/245360
|
||||
enableParallelBuilding = false;
|
||||
|
||||
makeFlags = (previousAttrs.makeFlags or []) ++ [
|
||||
"localedata/install-locales"
|
||||
|
||||
Reference in New Issue
Block a user