Skip to content

ceph: add patches for GCC 14 and Boost 1.86 - #370304

Merged
emilazy merged 2 commits into
NixOS:masterfrom
emilazy:push-xsssswqsvpsq
Jan 6, 2025
Merged

emilazy merged 2 commits into
NixOS:masterfrom
emilazy:push-xsssswqsvpsq

Conversation

@emilazy

@emilazy emilazy commented Jan 2, 2025 •

Copy link
Copy Markdown
Member

Fixes the build and all the tests pass, yay. All but one patch has already been merged upstream. See commit messages for details.

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.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.

Add a 👍 reaction to pull requests you find important.

@emilazy
emilazy requested a review from jfly January 2, 2025 17:11
@github-actions github-actions Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 2, 2025

@jfly jfly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

On a phone, so I can't run nixpkgs-review, but LGTM.

Thanks for fixing this!

Could you ammend a commit or your PR description to say that this closes #369777?

Comment thread pkgs/tools/filesystems/ceph/default.nix Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've written a lot of code like this, and I've never used fetchpatch2 nor have I added this full_index=1 query param.

Could you teach me the benefits of this way?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fetchpatch2 uses a newer patchutils version that can handle things like file renames but is worse in other respects. In particular, it doesn’t filter out the index f6ef9878daee7..a5d63c372977a 100644 lines as fetchpatch does, and these are actually nondeterministic because GitHub uses larger commit hash prefixes as the repository grows by default. So you can either use fetchpatch and renames don’t work, or use fetchpatch2 and you have to specify ?full_index=1 for determinism. It sucks. Upstream apparently doesn’t really care about the Git patch format. See #266556 for a bunch of issues; someone needs to write a new patch filter that actually gets all the details right so we can have a fetchpatch3 without compromises, but I’m procrastinating on the task.

I used to think fetchpatch2 was better but given the index issue fetchpatch is better unless you need the additional functionality. I stuck to fetchpatch2 here because the existing patch already used it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, what a disappointing state of affairs 😢

Thanks for the infodump!

Currently this is the only package keeping Boost 1.82 around; upstream
install 1.85 on the development branch and have merged patches for
1.86 compatibility, so let’s unpin it and deal with pinning again
if we run into compilation errors in the future.

All but one patch has already been merged upstream.
@emilazy
emilazy force-pushed the push-xsssswqsvpsq branch from 718a87e to 047670d Compare January 2, 2025 17:57
@emilazy

emilazy commented Jan 2, 2025

Copy link
Copy Markdown
Member Author

Whoops, meant to add the Closes: but forgot. Thanks for the reminder; done! I’ll run a review too.

@emilazy

emilazy commented Jan 2, 2025

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 370304


x86_64-linux

❌ 3 packages failed to build:
  • quickgui
  • quickgui.debug
  • quickgui.pubcache
✅ 15 packages built:
  • ceph (ceph-dev)
  • ceph-client
  • ceph-csi
  • ceph.dev (ceph-dev.dev)
  • ceph.doc (ceph-dev.doc)
  • libceph (ceph.lib ,libceph.dev ,libceph.doc ,libceph.lib ,libceph.man)
  • ceph.man (ceph-dev.man)
  • qemu_full
  • qemu_full.debug
  • qemu_full.doc
  • qemu_full.ga
  • quickemu
  • sambaFull (samba4Full)
  • sambaFull.dev (samba4Full.dev)
  • sambaFull.man (samba4Full.man)

The failure is pre‐existing.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 3, 2025
@emilazy

emilazy commented Jan 6, 2025

Copy link
Copy Markdown
Member Author

Was hoping to hear from a Ceph maintainer, but I think this has waited long enough given the downstream packages it unbreaks.

@emilazy
emilazy merged commit a48d3c8 into NixOS:master Jan 6, 2025
@emilazy
emilazy deleted the push-xsssswqsvpsq branch January 6, 2025 14:57
@Sigmanificient Sigmanificient mentioned this pull request Mar 8, 2025
27 of 28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants