Skip to content
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

Closed
wants to merge 3 commits into from
Closed

saunafs: init at 4.0.1 #297811

wants to merge 3 commits into from

Conversation

0x4A6F
Copy link
Member

@0x4A6F 0x4A6F commented Mar 21, 2024

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 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.

Add a 👍 reaction to pull requests you find important.

@0x4A6F 0x4A6F requested review from cheriimoya and dasJ March 21, 2024 20:02
Copy link
Contributor

@Kamillaova Kamillaova left a 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

@0x4A6F
Copy link
Member Author

0x4A6F commented Mar 21, 2024

This is a draft!
JFYI: There is NixOS/rfcs#140

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin and removed 10.rebuild-darwin: 1 10.rebuild-darwin: 1-10 labels Mar 26, 2024
@0x4A6F 0x4A6F marked this pull request as ready for review March 28, 2024 19:12

buildInputs = [
(boost175.override { stdenv = gcc11Stdenv; })
(yaml-cpp.override { stdenv = gcc11Stdenv; })
Copy link
Member

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?

Copy link
Contributor

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

Copy link
Contributor

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

https://github.com/Kamillaova/yanet-flake/blob/mistress/pkgs/yanet/0003-Fix-building-on-new-compilers.patch#L11

Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In YANET, before the fixes, gcc 11 (or older) was also needed
image

@0x4A6F 0x4A6F mentioned this pull request Jul 1, 2024
13 tasks
@0x4A6F
Copy link
Member Author

0x4A6F commented Jul 1, 2024

Also implemented in later opened #314811.

@0x4A6F 0x4A6F closed this Jul 1, 2024
@ofborg ofborg bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants