-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
saunafs: init at 4.0.1 #297811
saunafs: init at 4.0.1 #297811
Conversation
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.
Please, provide short description for meta.description
This is a draft! |
|
||
buildInputs = [ | ||
(boost175.override { stdenv = gcc11Stdenv; }) | ||
(yaml-cpp.override { stdenv = gcc11Stdenv; }) |
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.
Can you provide a comment why this override is needed?
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.
Because of gcc11Stdenv.mkDerivation
, without overriding stdenv, linking errors will be thrown
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.
There is an assumption that saunafs was written for Ubuntu 18, which uses the old gcc. Since gcc 12 has some compatibility issues with legacy code, it is necessary to use the old gcc for saunafs.
Example gcc11<->gcc12 incompatibility - some operations are no longer considered constexpr
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.
You can see ther examples of fixing issues like this here:
yanet-platform/yanet@main...GeorgyKirichenko:yanet:fix-compilation
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.
Also implemented in later opened #314811. |
Description of changes
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/
)Add a 👍 reaction to pull requests you find important.