Skip to content

glibcLocales: disable parallelism to restore deterministic locales#246049

Merged
vcunat merged 1 commit intoNixOS:stagingfrom
trofi:glibcLocales-non-parallel
Aug 11, 2023
Merged

glibcLocales: disable parallelism to restore deterministic locales#246049
vcunat merged 1 commit intoNixOS:stagingfrom
trofi:glibcLocales-non-parallel

Conversation

@trofi
Copy link
Copy Markdown
Contributor

@trofi trofi commented Jul 29, 2023

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

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jul 29, 2023
@ghost ghost linked an issue Jul 29, 2023 that may be closed by this pull request
@ghost
Copy link
Copy Markdown

ghost commented Jul 29, 2023

Building on:

  • x86_64-linux
  • powerpc64le-linux
  • aarch64-linux (cross from x86_64-linux)
  • mips64el-linux mixed n32/64 (cross from x86_64-linux)
  • pkgs.tests.cross.sanity

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):

    NixOS#245360

Co-authored-by: Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>
@trofi trofi force-pushed the glibcLocales-non-parallel branch from 7b72aee to 43da9e8 Compare July 29, 2023 19:44
@ghost
Copy link
Copy Markdown

ghost commented Jul 31, 2023

@ofborg eval

@vcunat vcunat merged commit 5b033f3 into NixOS:staging Aug 11, 2023
@trofi trofi deleted the glibcLocales-non-parallel branch August 11, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

glibcLocales: locale-archive not reproducible

2 participants