-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
valgrind: Apply upstream patch for Makefile race in coregrind #51107
valgrind: Apply upstream patch for Makefile race in coregrind #51107
Conversation
Hmm, not actually sure that URL is stable... Investigating. |
20c8bdb
to
a067e88
Compare
Vendored the patch. Should be obvious when we need to get rid of it. :) |
@FRidh Are you okay with adding this to staging-next? fwiw last eval after master was merged into staging-next failed again: https://hydra.nixos.org/build/84945477 |
Success on x86_64-linux (full log) Attempted: valgrind Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: valgrind Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: valgrind Partial log (click to expand)
|
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/cherry-picking-commits-to-upgrade-unstable-nixos-channels/1553/1 |
NixOS#51107 added a patch to Makefile.am to fix a race condition in the build. It was unfortunately never picked up as we we're using the generated makefile from the tarball.
We fixed a race condition in NixOS#51505 and NixOS#51107. This required running autoreconfHook to pick up the `coregrind-makefile-race.patch` patch. Unfortunately this broke darwin's postPatch fixes as autoreconfHook would run afterwards regenerating the fixed makefiles. Moving the postPatch fixes to preConfigure should resolve the issue. I left `postPatch = ""` in to avoid a rebuild on linux.
We fixed a race condition in NixOS#51505 and NixOS#51107. This required running autoreconfHook to pick up the `coregrind-makefile-race.patch` patch. Unfortunately this broke darwin's postPatch fixes as autoreconfHook would run afterwards regenerating the fixed makefiles. Moving the postPatch fixes to preConfigure should resolve the issue. I left `postPatch = ""` in to avoid a rebuild on linux. (cherry picked from commit a6d4a0c)
Motivation for this change
Supercedes #51082
Thanks @delroth for noticing the commit upstream. :)
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)