-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
rapidcheck: Build shared/static following defaults #269064
Conversation
CMake defaults to static which is not what we want. It is especially dangerous because this library has global variables --- embedding multiple copies in downstream shared objects used by the same final executable will cause problems.
NixOS/nixpkgs#269064 makes rapidcheck be build as a shared lib, but that broke Nix because the `-lrapidcheck` was missing. This fixes that (and doesn't break Nix what the library is a static archive as today).
NixOS/nixpkgs#269064 makes rapidcheck be build as a shared lib, but that broke Nix because the `-lrapidcheck` was missing. This fixes that (and doesn't break Nix what the library is a static archive as today). (cherry picked from commit 4613156)
NixOS/nixpkgs#269064 makes rapidcheck be build as a shared lib, but that broke Nix because the `-lrapidcheck` was missing. This fixes that (and doesn't break Nix what the library is a static archive as today). (cherry picked from commit 4613156)
NixOS/nixpkgs#269064 makes rapidcheck be build as a shared lib, but that broke Nix because the `-lrapidcheck` was missing. This fixes that (and doesn't break Nix what the library is a static archive as today). (cherry picked from commit 4613156)
NixOS/nixpkgs#269064 makes rapidcheck be build as a shared lib, but that broke Nix because the `-lrapidcheck` was missing. This fixes that (and doesn't break Nix what the library is a static archive as today). (cherry picked from commit 4613156)
NixOS/nixpkgs#269064 makes rapidcheck be build as a shared lib, but that broke Nix because the `-lrapidcheck` was missing. This fixes that (and doesn't break Nix what the library is a static archive as today). (cherry picked from commit 4613156)
NixOS/nixpkgs#269064 makes rapidcheck be build as a shared lib, but that broke Nix because the `-lrapidcheck` was missing. This fixes that (and doesn't break Nix what the library is a static archive as today). (cherry picked from commit 4613156)
The Nix PR and backports are merged so this is good to go. (As new releases are cut, both from |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-23.05
git worktree add -d .worktree/backport-269064-to-release-23.05 origin/release-23.05
cd .worktree/backport-269064-to-release-23.05
git switch --create backport-269064-to-release-23.05
git cherry-pick -x b2b9257186c568bae937c09b36067cd6b3448f2a 98bdc2b3bb7ac42173cbe2033b91f849307a4737 |
Successfully created backport PR for |
@@ -113,6 +113,13 @@ let | |||
hash = "sha256-s1ybRFCjQaSGj7LKu0Z5g7UiHqdJGeD+iPoQL0vaiS0="; | |||
}; | |||
|
|||
patch-rapidcheck-shared = fetchpatch2 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI fetchpatch2 is only really required when renaming files ATM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh OK my bad. I just assumed it was just the "new and improved version" which should be used by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it really matters, just that the normalisation is just slightly different and has a few bug fixes so not all hashes are compatible.
Description of changes
CMake defaults to static which is not what we want. It is especially dangerous because this library has global variables --- embedding multiple copies in downstream shared objects used by the same final executable will cause problems.
Second commit fixes Nix by backporting NixOS/nix#9431
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Priorities
Add a 👍 reaction to pull requests you find important.