Skip to content

ceph: Override arrow-cpp 24 -> 23 to fix build - #542348

Closed
nh2 wants to merge 1 commit into
NixOS:masterfrom
nh2:ceph-vendor-arrow-cpp-23
Closed

nh2 wants to merge 1 commit into
NixOS:masterfrom
nh2:ceph-vendor-arrow-cpp-23

Conversation

@nh2

@nh2 nh2 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes:

Things done

@nh2
nh2 requested a review from benaryorg July 15, 2026 20:28
@nh2 nh2 self-assigned this Jul 15, 2026
@nh2 nh2 mentioned this pull request Jul 15, 2026
4 tasks done
@nh2 nh2 linked an issue Jul 15, 2026 that may be closed by this pull request
4 tasks done
@nixpkgs-ci
nixpkgs-ci Bot requested review from adevress, johanot and krav July 15, 2026 20:34
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Jul 15, 2026
@nh2

nh2 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

My vm-test-run-basic-single-node-ceph-cluster-deprecated-filestore timed out after 900 seconds at

monA: (finished: must succeed: ceph config set mgr mgr/dashboard/server_port 8080, in 0.75 seconds)
monA: waiting for TCP port 8080 on localhost

src = fetchFromGitHub {
owner = "apache";
repo = "arrow";
rev = "apache-arrow-${finalAttrs.version}";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
rev = "apache-arrow-${finalAttrs.version}";
tag = "apache-arrow-${finalAttrs.version}";

# https://github.com/NixOS/nixpkgs/issues/542206
# There is no upstream Ceph fix available yet, so we vendor the last `arrow-cpp`
# version that still ships `arrow/util/span.h` (23.0.0) for use by Ceph only.
arrow-cpp.overrideAttrs (finalAttrs: {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't want new uses of overrideAttrs: #421201

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I asked how to best do such things concretely in #421201 (comment).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would copy the derivation to pkgs/by-name/arrow-cpp_23 and then drop it again once ceph moves to v24.
You can also set

meta = {
  inherit (ceph.meta) maintainers;
};

@benaryorg benaryorg 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.

The overrideAttrs should probably be dropped in favour of copying the last revision of it over (git show c07b089cad35d800b889c8a65e98d939513ff209^:pkgs/by-name/ar/arrow-cpp/package.nix > pkgs/by-name/ce/ceph/arrow-cpp.nix).

My other comment is sort debatable and not a blocker.

# Runtime dependencies

arrow-cpp,
ceph-arrow-cpp,

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 feel like keeping the name as-is might help with any random dependencies pulling in a different version of arrow-cpp, like a Python library potentially trying to use a different version of the library than Ceph.

@Svenum

Svenum commented Jul 25, 2026

Copy link
Copy Markdown
Member

Some news here or can I help somehow. I am waiting for this patch

@Svenum

Svenum commented Jul 28, 2026

Copy link
Copy Markdown
Member

Any workaround until this pr is merged?

@benaryorg

benaryorg commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Any workaround until this pr is merged?

The issue has had a quickfix overlay for a while, it should still work as-is.

Edit: This of course only applies if you do need Ceph itself (in which case recompiling is sort of hard to avoid). If you don't actually need Ceph, try to cut it out elsewhere (e.g. use qemu instead of qemu-full).

@nh2

nh2 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing because #548582 looks like a nicer fix.

@nh2 nh2 closed this Aug 9, 2026
@nh2 nh2 mentioned this pull request Aug 9, 2026
3 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 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. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: ceph

4 participants