Skip to content

ceph: fix - #548582

Merged
GaetanLepage merged 2 commits into
NixOS:masterfrom
GaetanLepage:fix/ceph
Aug 13, 2026
Merged

ceph: fix#548582
GaetanLepage merged 2 commits into
NixOS:masterfrom
GaetanLepage:fix/ceph

Conversation

@GaetanLepage

@GaetanLepage GaetanLepage commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Things done

  • ceph-python: skip metadata check
  • python3Packages.cython_0: cleanup, fix
  • python3Packages.scipy: skip failing test on python 3.12
  • ceph: fix build

@nixpkgs-ci
nixpkgs-ci Bot requested review from adevress, benaryorg, johanot, krav and nh2 August 2, 2026 21:40
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 6.topic: python Python is a high-level, general-purpose programming language. labels Aug 2, 2026
@GaetanLepage GaetanLepage changed the title ceph: fix dependencies ceph: fix Aug 2, 2026
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 548582 --package ceph
Commit: 8cdb97e9018a62369c04b93120ab6536cbe13c4b


x86_64-linux

✅ 1 package built:
  • ceph

aarch64-linux

✅ 1 package built:
  • ceph

aarch64-darwin

⏩ 1 package marked as broken and skipped:
  • ceph

Comment thread pkgs/by-name/ce/ceph/python-common.nix Outdated
"test_valid_addr"
];

# importlib.metadata.PackageNotFoundError: No package metadata was found for ceph-common

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.

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 first intended to ask whether a drawback of that wouldn't be ambiguous build output such as

these 12 derivations will be built:
  /nix/store/123...-ceph-20.nix
  /nix/store/456...-ceph-20.nix

where you cannot tell the C++ from the Python build easily, and it looks like 2 big Ceph builds, but then I found it is already rendered differently:

   /nix/store/yfh9gvgdibkfn8mh09n58q1wyw84vnk8-python3.14-ceph-20.2.2.drv
   /nix/store/byrjibkx2vrh7w1dcqnqjpxxclwl9x1g-ceph-20.2.2.drv

so that seems fine.

Comment thread pkgs/by-name/ce/ceph/src.nix Outdated
'#include "arrow/util/span.h"' \
'#include <span>'

sed -i "1i #include <memory> include <span>" src/s3select/include/internal_file_decryptor_20.h

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.

TIL this works.

@GaetanLepage
GaetanLepage force-pushed the fix/ceph branch 3 times, most recently from 1b9cdcb to cfbc5b2 Compare August 3, 2026 22:30
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 548582
Commit: cfbc5b2219d059cfe9c3b457e6a4176b2b54a5b9


x86_64-linux

❌ 3 packages failed to build:
  • macs2
  • napari
  • spoolman
✅ 5 packages built:
  • brutalmaze
  • ceph (ceph-client, ceph-dev, libceph)
  • ceph-csi
  • qemu_full
  • sambaFull (samba4Full)

aarch64-linux

❌ 6 packages failed to build:
  • ceph (ceph-client, ceph-dev, libceph)
  • ceph-csi
  • macs2
  • napari
  • qemu_full
  • spoolman
✅ 1 package built:
  • brutalmaze

aarch64-darwin

❌ 2 packages failed to build:
  • macs2
  • spoolman

ceph
Rewriting #!/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/sh to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
Rewriting #!/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/bash to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
Rewriting #!/nix/store/dd6a79bi7ig8i31nl1pzykfjc9v965rl-python3-3.12.13-env/bin/python3.12 to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
wrapping `/nix/store/1xw2ng25q65cdsrpsyqljk6m0vxsqfwa-ceph-20.2.2/bin/cephadm'...
Rewriting #!/nix/store/dd6a79bi7ig8i31nl1pzykfjc9v965rl-python3-3.12.13-env/bin/python3.12 to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
wrapping `/nix/store/1xw2ng25q65cdsrpsyqljk6m0vxsqfwa-ceph-20.2.2/bin/cephfs-top'...
Rewriting #!/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/bash to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
Rewriting #!/nix/store/dd6a79bi7ig8i31nl1pzykfjc9v965rl-python3-3.12.13-env/bin/python3.12 to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
wrapping `/nix/store/1xw2ng25q65cdsrpsyqljk6m0vxsqfwa-ceph-20.2.2/bin/ceph-crash'...
Rewriting #!/nix/store/dd6a79bi7ig8i31nl1pzykfjc9v965rl-python3-3.12.13-env/bin/python3 to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
wrapping `/nix/store/1xw2ng25q65cdsrpsyqljk6m0vxsqfwa-ceph-20.2.2/bin/mount.fuse.ceph'...
Rewriting #!/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/bash to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
Rewriting #!/nix/store/dd6a79bi7ig8i31nl1pzykfjc9v965rl-python3-3.12.13-env/bin/python3.12 to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
wrapping `/nix/store/1xw2ng25q65cdsrpsyqljk6m0vxsqfwa-ceph-20.2.2/bin/cephfs-shell'...
Rewriting #!/nix/store/dd6a79bi7ig8i31nl1pzykfjc9v965rl-python3-3.12.13-env/bin/python3.12 to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
wrapping `/nix/store/1xw2ng25q65cdsrpsyqljk6m0vxsqfwa-ceph-20.2.2/bin/ceph-volume-systemd'...
Rewriting #!/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/sh to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
Rewriting #!/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/bash to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
Rewriting #!/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/sh to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
Rewriting #!/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/sh to #!/nix/store/0fvick5jp1i2v98lk5r7zix15mrdl1vk-python3-3.12.13
ceph-csi
unpacking source archive /nix/store/gvmpp08g8nkqjphwdfcdnlrj2nnhhnib-source
source root is source
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
no configure script, doing nothing
Running phase: buildPhase
build flags: SHELL=/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/bash
cephcsi image settings: quay.io/cephcsi/cephcsi version v3.16.2
/nix/store/rzpv2vlq1zmhjqjinjgff1v83nw0b3hz-bash-5.3p15/bin/bash: line 1: git: command not found
if [ ! -d ./vendor ]; then (go mod tidy && go mod vendor); fi
GOOS=linux go build -tags=tentacle,ceph_preview -mod vendor -a -ldflags '-X github.com/ceph/ceph-csi/internal/util.GitCommit= -X github.com/ceph/ceph-csi/internal/util.DriverVersion=v3.16.2' -o _output/cephcsi ./cmd/
buildPhase completed in 38 seconds
Running phase: installPhase
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/n3cjca81s4wk859b6xxqkwr2byh21alj-ceph-csi-3.16.2
shrinking /nix/store/n3cjca81s4wk859b6xxqkwr2byh21alj-ceph-csi-3.16.2/bin/cephcsi
checking for references to /build/ in /nix/store/n3cjca81s4wk859b6xxqkwr2byh21alj-ceph-csi-3.16.2...
patching script interpreter paths in /nix/store/n3cjca81s4wk859b6xxqkwr2byh21alj-ceph-csi-3.16.2
stripping (with command strip and flags -S -p) in  /nix/store/n3cjca81s4wk859b6xxqkwr2byh21alj-ceph-csi-3.16.2/bin

@nh2

nh2 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

@GaetanLepage I see your nixpkgs-review ran aarch64-linux builds but ceph and ceph-csi failed there. What are those errors, and are the pre-existing?

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 548582
Commit: cfbc5b2219d059cfe9c3b457e6a4176b2b54a5b9


x86_64-linux

❌ 3 packages failed to build:
  • macs2
  • napari
  • spoolman
✅ 5 packages built:
  • brutalmaze
  • ceph (ceph-client, ceph-dev, libceph)
  • ceph-csi
  • qemu_full
  • sambaFull (samba4Full)

aarch64-linux

❌ 3 packages failed to build:
  • macs2
  • napari
  • spoolman
✅ 4 packages built:
  • brutalmaze
  • ceph (ceph-client, ceph-dev, libceph)
  • ceph-csi
  • qemu_full

aarch64-darwin

❌ 2 packages failed to build:
  • macs2
  • spoolman

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

@GaetanLepage I see your nixpkgs-review ran aarch64-linux builds but ceph and ceph-csi failed there. What are those errors, and are the pre-existing?

It was probably just flaky. It's actually building fine.

@nh2 nh2 mentioned this pull request Aug 9, 2026
4 of 13 tasks

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

Generally looks good, and nicer than my PR

which I now closed in favour of this.

Maybe @benaryorg can also check it.

I don't like the commit messages

ceph: fix build
python3Packages.cython_0: cleanup, fix

as those could be written on a lot of commits.
It would be nicer if they if they said e.g.

ceph: fix build with arrow-cpp 24
python3Packages.cython_0: cleanup, fix Cython version

so that when looking at the history, one can see what a given commit was roughly about.

@@ -98,9 +107,9 @@ buildPythonPackage rec {
setupHook = ./setup-hook.sh;

meta = {
changelog = "https://github.com/cython/cython/blob/${version}/CHANGES.rst";
changelog = "https://github.com/cython/cython/blob/${finalAttrs.src.tag}/CHANGES.rst";

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.

Not sur if this is good; if somebody overrides this from a src tag declaration to e.g. rev for a commit, this will fail to eval.

That seems worse than making a wrong link.

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.

Undone in #548582 (comment)

'__version__ = "${finalAttrs.version}"'
'';

nativeBuildInputs = [

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.

Why did you move these lines further down?
If that's not needed, keeping them were they were would make the diff smaller.

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.

@GaetanLepage Note the moving-around of lines is still in in the latest push.

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.

Comment thread pkgs/by-name/ce/ceph/python-common.nix Outdated
"test_valid_addr"
];

# importlib.metadata.PackageNotFoundError: No package metadata was found for ceph-common

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 first intended to ask whether a drawback of that wouldn't be ambiguous build output such as

these 12 derivations will be built:
  /nix/store/123...-ceph-20.nix
  /nix/store/456...-ceph-20.nix

where you cannot tell the C++ from the Python build easily, and it looks like 2 big Ceph builds, but then I found it is already rendered differently:

   /nix/store/yfh9gvgdibkfn8mh09n58q1wyw84vnk8-python3.14-ceph-20.2.2.drv
   /nix/store/byrjibkx2vrh7w1dcqnqjpxxclwl9x1g-ceph-20.2.2.drv

so that seems fine.

@dotlambda dotlambda left a 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.

ceph-python: skip metadata check is an outdated commit message. There is also no package called ceph-python.

Comment thread pkgs/by-name/ce/ceph/src.nix Outdated
'#include "arrow/util/span.h"' \
'#include <span>'

sed -i '1i #include <span>' src/s3select/include/internal_file_decryptor_20.h

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.

That's quite brittle. Aren't we better off vendoring a patch?

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 first thought to comment whether we should have a grep that checks it's not already present, but then didn't since the other changes that go along with it have --replace-fail and will fail loudly once ceph updates, this seems OK.

'__version__ = "${finalAttrs.version}"'
'';

nativeBuildInputs = [

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.

setuptools belongs in

Suggested change
nativeBuildInputs = [
build-system = [

but what's the point of moving this stuff around in a package that we should drop anyway?

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 clean things as I go. Didn't know this is about to be dropped.

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.

It's not but we should eventually drop cython_0, especially since it doesn't work on Python 3.13+.

ncurses
];

env.LC_ALL = "en_US.UTF-8";

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.

Is this really still needed?

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.

Removed.

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 question really was "is this still needed", but there was no answer on whether it actually is. So, is it? If no, why not? Why is this there in the first place?

It is silly that there are 29 occurrences in nixpkgs of this, 28 without comments. Commits like 74fa186 add it without comment, and then commits like b402b81 remove it without commit message why it isn't needed anymore. Nixpkgs really needs better comment culture, otherwise we're just cargo-culting copy-pasting code snippets around without being able to know immediately what they are good for.

Props to @paparodeo who in commit 01299c0 actually commented what this is good for.


So from the above-mentioned b402b81 it sounds like that may not be needed anymore, but the commit message doesn't say if it isn't needed because Darwin or what changed in general, or if it isn't needed anymore for that specific package. I don't have Darwin, so I can't really check. Thus, and to keep the fix minimal, I will re-instantiate this line, given that as mentioned in #548582 (comment) cython_0 will be dropped in the future anyway.

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.

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

First disclaimer: I am by and large only looking at the Ceph changes, not e.g. at the Cython parts because I am not familiar enough with those to say much about them.

Second disclaimer: I have not yet built or tested any of this, however if the tests pass for other people that's fine by me. I'm still shaving some yaks and will hopefully get to test this patch eventually.

Looking at the latest version of the proposed changes it looks like the arrow-cpp changes have been moved into a patch rather than invoking sed during the build, which is a change I approve of, since this will cause failures in case the patch fails to apply.

some more (fully optional) opinions on the patch

I guess if the patch were to use some sort of conditional on the version of arrow it could be made to use something like the C++ equivalent of a typedef for the span so it would work with both versions, and could then be upstreamed.
However I fully understand if you don't want to go the extra mile here, this patch is great and I appreciate it as-is as it allows us to use the newer arrow-cpp version.

Edit: I also agree on the commit messages; they could be a tad more verbose (and ideally include a body explaining the rationale, in addition to just the subject line).

Comment thread pkgs/by-name/ce/ceph/python-common.nix Resolved
@vcunat vcunat linked an issue Aug 12, 2026 that may be closed by this pull request
4 tasks done
buildPythonPackage (finalAttrs: {
pname = "cython";
version = "0.29.37.1";
version = "0.29.37";

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.

What is the benefit of downgrading the version from .1 to the commit just before?

The only difference seems to be in .github/workflows/: cython/cython@0.29.37...0.29.37.1

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, I get it now. That change fixes the

Executing pythonMetadataCheckPhase
The 'cython' derivation has version '0.29.37.1' but .dist-info/METADATA specifies version '0.29.37'.

error. The .1 cython upstream release is "broken" because it bumpted the version but didn't udpate that file. That should really be in the commit message.

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.

@nh2

nh2 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

I have taken the liberty to force-push into this PR the not-yet-done small fixes from the review above (better commit messages, removal of permuting declaration order).

I am OK to merge this now to unblock ceph, especailly since the arrow-cpp only affect the Ceph s3select, which neither @benaryorg nor me are using and thus cannot validate very easily anyway.

@nh2

nh2 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

nixpkgs-review output:

--------- Impacted packages on 'x86_64-linux' ---------
10 packages updated:
brutalmaze ceph ceph ceph ceph-csi napari python3.11-macs2 python3.12-spoolman qemu samba

$ nix-eval-jobs --workers 1 --max-memory-size 4096 --no-instantiate --extra-experimental-features 'nix-command no-url-literals' --nix-path 'nixpkgs=/root/.cache/nixpkgs-review/rev-df3c699b48f192a8d818e5093f90597b842d6a07/nixpkgs nixpkgs-overlays=/tmp/nix-shell-3528338-2582558607/tmp_y9qktov' --no-allow-import-from-derivation --expr '(import /nix/store/bijz9qj37mp2l8n3vkijlvmnzgy10lrc-nixpkgs-review-3.9.0/lib/python3.14/site-packages/nixpkgs_review/nix/evalAttrs.nix { attr-json = /tmp/nix-shell-3528338-2582558607/tmpd1e1nkvc; })' --apply 'd: { inherit (d) exists broken; }'
warning: experimental feature 'no-url-literals' has been stabilized and renamed; use 'lint-url-literals = fatal' setting instead
waiting for exclusive access to the Nix store...
$ nix build --file /nix/store/bijz9qj37mp2l8n3vkijlvmnzgy10lrc-nixpkgs-review-3.9.0/lib/python3.14/site-packages/nixpkgs_review/nix/review-shell.nix --extra-experimental-features 'nix-command no-url-literals' --nix-path 'nixpkgs=/root/.cache/nixpkgs-review/rev-df3c699b48f192a8d818e5093f90597b842d6a07/nixpkgs nixpkgs-overlays=/tmp/nix-shell-3528338-2582558607/tmp_y9qktov' --no-allow-import-from-derivation --no-link --keep-going --option build-use-sandbox relaxed --argstr local-system x86_64-linux --argstr nixpkgs-path /root/.cache/nixpkgs-review/rev-df3c699b48f192a8d818e5093f90597b842d6a07/nixpkgs --argstr nixpkgs-config-path /tmp/nix-shell-3528338-2582558607/tmpa4ajtr8x.nix --argstr attrs-path /root/.cache/nixpkgs-review/rev-df3c699b48f192a8d818e5093f90597b842d6a07/attrs.nix
warning: experimental feature 'no-url-literals' has been stabilized and renamed; use 'lint-url-literals = fatal' setting instead
error: Cannot build '/nix/store/93k3504vws7qc2nfg0yj350w2w8kxgck-python3.11-numpy-2.5.1.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/gn200h8szl3snibwcs15bjl3iqxyb09q-python3.11-numpy-2.5.1
         /nix/store/hp2bhc40vz8addsc3nkyjxy3ffsmkv6l-python3.11-numpy-2.5.1-dist
       Last 25 log lines:
       >   Enabled targets: AVX512_SPR, X86_V4, baseline
       > WARNING: Project targets '>=1.8.3' but uses feature deprecated since '1.3.0': Source file src/umath/svml/linux/avx512/svml_z0_acos_d_la.s in the 'objects' kwarg is not an object..
       > Generating multi-targets for "_simd.dispatch.h"
       >   Enabled targets: X86_V2, X86_V3, X86_V4, baseline
       > Build targets in project: 110
       > WARNING: Deprecated features used:
       >  * 0.60.0: {'install_subdir with empty directory'}
       >  * 1.3.0: {'Source file src/umath/svml/linux/avx512/svml_z0_acos_d_la.s in the 'objects' kwarg is not an object.'}
       >
       > NumPy 2.5.1
       >
       >   User defined options
       >     Native files: /build/source/build/meson-python-native-file.ini
       >     b_ndebug    : if-release
       >     b_vscrt     : md
       >     buildtype   : release
       >     cpu-baseline: none
       >     use-ilp64   : false
       >
       > Found ninja-1.13.2 at /nix/store/vj0z9ncypj0qcp8jdcri68dls27inzm6-ninja-1.13.2/bin/ninja
       >
       > meson-python: error: The package requires Python version >=3.12, running on 3.11.15
       >
       > TIP pass --env-dir and --sdist-extract-dir to keep the build environment and sources, then see https://build.pypa.io/en/stable/how-to/troubleshooting.html#debug-a-failed-build for help debugging a failed build
       > ERROR Backend subprocess exited when trying to invoke build_wheel
       For full logs, run:
         nix log /nix/store/93k3504vws7qc2nfg0yj350w2w8kxgck-python3.11-numpy-2.5.1.drv
error: Cannot build '/nix/store/frlxgzvcya8pwmryswj6lvjh2kcs8s5n-python3.11-macs2-2.2.9.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/j3dh4nsik4x7zbbm6495hd9k1fxk02gz-python3.11-macs2-2.2.9.1
         /nix/store/ygbj23k10702k7p97qq7216zg61j9dhy-python3.11-macs2-2.2.9.1-dist
error: Cannot build '/nix/store/wcsy5sw1k9gv84r4v5d3l6s59d03y6pb-python3.12-inline-snapshot-0.34.2.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/1chz9kazxrczj6sv0pzc6gjs1jvccmvm-python3.12-inline-snapshot-0.34.2-dist
         /nix/store/mm97sxai6kd1k6fcmsiglibqy1q1klai-python3.12-inline-snapshot-0.34.2
       Last 25 log lines:
       >             ["--inline-snapshot=create"],
       >             changed_files=snapshot(
       >                 {
       >                     "test_a.py": """\
       >     from inline_snapshot import snapshot
       >     def test_a():
       >         assert 1+1 == snapshot(2)
       >         assert 1+5 == snapshot(2)
       >     """
       >                 }
       >             ),
       >             returncode=1,
       >             outcomes={"passed": 1, "errors": 1},
       >         )
       >     ```
       >
       >     ## API
       >     ::: inline_snapshot.testing.Example
       >         options:
       >           heading_level: 3
       >           show_root_heading: true
       >           show_root_full_path: false
       >           show_source: false
       >           annotations_path: brief
       > ====== 3 failed, 1402 passed, 7 skipped, 32 warnings in 213.60s (0:03:33) ======
       For full logs, run:
         nix log /nix/store/wcsy5sw1k9gv84r4v5d3l6s59d03y6pb-python3.12-inline-snapshot-0.34.2.drv
error: Cannot build '/nix/store/bh5q41az6k86al5gmrz4gkc7dhsf3b1x-python3.12-openai-2.41.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/ingr1klalbkryzsnvhf24qxcd9483kvn-python3.12-openai-2.41.1
         /nix/store/ip6ia2pdivga3zxk3dfyah9x1fl22r5r-python3.12-openai-2.41.1-dist
error: Cannot build '/nix/store/xj0f9007d5pn8npzl6grpi3lh1g9phdg-python3.12-rich-toolkit-0.20.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/0z6ampbk0vav96rxh5fdhxr5jvc2l1p2-python3.12-rich-toolkit-0.20.1-dist
         /nix/store/9qi2k8f2kkb2xbm2x2qlfbg45kqnrhsv-python3.12-rich-toolkit-0.20.1
error: Cannot build '/nix/store/1s2djnh99mx1gcmn39bygg5na5cms01c-python3.12-fastapi-cli-0.0.24.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/ckkalp17jc3dii44v674cz5sylv7kryh-python3.12-fastapi-cli-0.0.24-dist
         /nix/store/i2aaglbm6i0wlqvwjhnr2glfwls8mzj6-python3.12-fastapi-cli-0.0.24
error: Cannot build '/nix/store/n7cba45g0p7zd41ng0aiar4mz4ijq4kn-python3.12-sqlframe-3.46.2.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/fl9z1h2c8r1fyv1rhbb84d6kivfs262z-python3.12-sqlframe-3.46.2
         /nix/store/sd5k7jgs6yvj696gx5frilbh2l56w276-python3.12-sqlframe-3.46.2-dist
error: Cannot build '/nix/store/vcb1i9k5brp7j6x3zn9w06afw2l5sj5w-python3.12-fastapi-0.139.0.drv'.
       Reason: 2 dependencies failed.
       Output paths:
         /nix/store/j7n805hla4jli3f2s409wqm9nsjkrcdv-python3.12-fastapi-0.139.0-dist
         /nix/store/mrhzrbnhw1wq634jv739lvxznwg3gfi7-python3.12-fastapi-0.139.0
error: Cannot build '/nix/store/x0w8nv82jsq5akh9qngwbags65plykx7-python3.12-narwhals-2.23.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/1w5jjkp5dqlx7rsx6ynmyxa7h9ddfsr4-python3.12-narwhals-2.23.0
         /nix/store/rqg348mlb8q078hcra543mbabna2im1f-python3.12-narwhals-2.23.0-dist
error: Cannot build '/nix/store/h6naqbx26ffs0wxl991f1wvdyqz6vq0c-python3.12-bokeh-3.8.2.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/3bwlgk3rq9grs5nn5bx18ajjm6h2bmhg-python3.12-bokeh-3.8.2
         /nix/store/yxp17dxb2s0282qbrgjcrd4kw9r93m2k-python3.12-bokeh-3.8.2-dist
error: Cannot build '/nix/store/1ab7pdlbz26slnw6ybvxc3wn7pi1p1r6-python3.12-hishel-0.1.5.drv'.
       Reason: 2 dependencies failed.
       Output paths:
         /nix/store/g433kxcm42jl4mkxcibsbvn80gva3y7s-python3.12-hishel-0.1.5-dist
         /nix/store/xs0c6m0pqrgnqx2zj39qapgny24jsvak-python3.12-hishel-0.1.5
error: Cannot build '/nix/store/kaprir2xkrbsw795040d58pw518s9dkg-python3.12-spoolman-0.23.1.drv'.
       Reason: 2 dependencies failed.
       Output paths:
         /nix/store/71p7dlx40qiy08d9dydifm7akrps2f2q-python3.12-spoolman-0.23.1
         /nix/store/ajgdxv9g37xx4wpisv62z1dh5zrkqbhd-python3.12-spoolman-0.23.1-dist
error: Cannot build '/nix/store/7wbxlnqq8z8fnqczwcxy5r0sa0sb80c2-python3.12-xarray-2026.07.0.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/4d1mkir0bdn2wil0sp6lwp5y1nj3s1cf-python3.12-xarray-2026.07.0
         /nix/store/dakzypbf57qhg9280722r946vv6rywp8-python3.12-xarray-2026.07.0-dist
error: Cannot build '/nix/store/pj4vj1p5x5zz4k0qrh1wpy29wsd9isfc-python3.12-napari-0.7.1.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/01snv9palwk59f53j2p4q1gj4dr30ymn-python3.12-napari-0.7.1-dist
         /nix/store/9wrbynsshy4rmp5bfw6lqyxgy5lm7kpm-python3.12-napari-0.7.1
error: Cannot build '/nix/store/kcd7skdzh4fvasdik8nxiwsm7sw07cv4-review-shell.drv'.
       Reason: 3 dependencies failed.
       Output paths:
         /nix/store/8di9raay3ia5jvkh6d1la5186h931n71-review-shell
--------- Report for 'x86_64-linux' ---------
3 packages failed to build:
macs2 napari spoolman

5 packages built:
brutalmaze ceph ceph-csi qemu_full samba4Full

Logs can be found under:
/root/.cache/nixpkgs-review/rev-df3c699b48f192a8d818e5093f90597b842d6a07/logs

error: build log of '/nix/store/kaprir2xkrbsw795040d58pw518s9dkg-python3.12-spoolman-0.23.1.drv^*' is not available
error: build log of '/nix/store/pj4vj1p5x5zz4k0qrh1wpy29wsd9isfc-python3.12-napari-0.7.1.drv^*' is not available
error: build log of '/nix/store/frlxgzvcya8pwmryswj6lvjh2kcs8s5n-python3.11-macs2-2.2.9.1.drv^*' is not available

Seems tolearble.

I got a filestore VM test timeout though:

monA: must succeed: ceph config set mgr mgr/dashboard/ssl false
monA # [  169.313358] ceph-mgr[6443]: 2026-08-12T11:43:37.317+0000 7ee3cc9c5900 -1 mgr[py] Loading module diskprediction_local in main interpreter
monA: (finished: must succeed: ceph config set mgr mgr/dashboard/ssl false, in 0.79 seconds)
monA: must succeed: ceph config set mgr mgr/dashboard/server_port 8080
monA # [  169.996101] ceph-mgr[6443]: 2026-08-12T11:43:38.000+0000 7ee3cc9c5900 -1 mgr[py] Loading module osd_support in main interpreter
monA # [  170.002448] ceph-mgr[6443]: 2026-08-12T11:43:38.007+0000 7ee3cc9c5900 -1 mgr[py] Loading module smb in main interpreter
monA # [  170.502781] ceph-mgr[6443]: 2026-08-12T11:43:38.507+0000 7ee3cc9c5900 -1 mgr[py] Loading module devicehealth in main interpreter
monA # [  170.520539] ceph-mgr[6443]: 2026-08-12T11:43:38.525+0000 7ee3cc9c5900 -1 mgr[py] Loading module volumes in main interpreter
monA # [  170.668568] ceph-mgr[6443]: 2026-08-12T11:43:38.673+0000 7ee3cc9c5900 -1 mgr[py] Loading module iostat in main interpreter
monA # [  170.675085] ceph-mgr[6443]: 2026-08-12T11:43:38.679+0000 7ee3cc9c5900 -1 mgr[py] Loading module rgw in main interpreter
monA # [  170.698454] ceph-mgr[6443]: 2026-08-12T11:43:38.703+0000 7ee3cc9c5900 -1 mgr[py] Loading module localpool in main interpreter
monA # [  170.704695] ceph-mgr[6443]: 2026-08-12T11:43:38.709+0000 7ee3cc9c5900 -1 mgr[py] Loading module pg_autoscaler in main interpreter
monA # [  170.731359] ceph-mgr[6443]: 2026-08-12T11:43:38.736+0000 7ee3cc9c5900 -1 mgr[py] Loading module osd_perf_query in main interpreter
monA # [  170.741475] ceph-mgr[6443]: 2026-08-12T11:43:38.746+0000 7ee3cc9c5900 -1 mgr[py] Loading module crash in main interpreter
monA # [  170.753917] ceph-mgr[6443]: 2026-08-12T11:43:38.758+0000 7ee3cc9c5900 -1 mgr[py] Loading module mds_autoscaler in main interpreter
monA # [  170.761433] ceph-mgr[6443]: 2026-08-12T11:43:38.766+0000 7ee3cc9c5900 -1 mgr[py] Loading module k8sevents in main interpreter
monA: (finished: must succeed: ceph config set mgr mgr/dashboard/server_port 8080, in 0.83 seconds)
monA: waiting for TCP port 8080 on localhost
monA # [  172.851555] ceph-mgr[6443]: 2026-08-12T11:43:40.856+0000 7ee3cc9c5900 -1 mgr[py] Loading module balancer in main interpreter
monA # [  172.904250] ceph-mgr[6443]: 2026-08-12T11:43:40.908+0000 7ee3cc9c5900 -1 mgr[py] Loading module dashboard in main interpreter
monA # [  173.346794] ceph-mgr[6443]: Failed to import NVMeoFClient and related components: cannot import name 'NVMeoFClient' from 'dashboard.services.nvmeof_client' (/nix/store/b6z9sivf33v2hx5jyjp11n8a2q5asp87-ceph-20.2.2-lib/lib/ceph/mgr/dashboard/services/nvmeof_client.py)
monA # [  173.357932] ceph-mgr[6443]: Failed to import NVMeoFClient and related components: cannot import name 'NVMeoFClient' from 'dashboard.services.nvmeof_client' (/nix/store/b6z9sivf33v2hx5jyjp11n8a2q5asp87-ceph-20.2.2-lib/lib/ceph/mgr/dashboard/services/nvmeof_client.py)
monA # [  173.681641] ceph-mgr[6443]: 2026-08-12T11:43:41.686+0000 7ee3cc9c5900 -1 mgr[py] Loading module test_orchestrator in main interpreter
monA # [  173.698689] ceph-mgr[6443]: 2026-08-12T11:43:41.703+0000 7ee3cc9c5900 -1 mgr[py] Loading module snap_schedule in main interpreter
monA # [  173.746532] ceph-mgr[6443]: 2026-08-12T11:43:41.751+0000 7ee3cc9c5900 -1 mgr[py] Loading module telemetry in main interpreter
monA # [  173.802277] ceph-mgr[6443]: 2026-08-12T11:43:41.806+0000 7ee3cc9c5900 -1 mgr[py] Loading module orchestrator in main interpreter
monA # [  173.806239] ceph-mgr[6443]: 2026-08-12T11:43:41.806+0000 7ee3cc9c5900 -1 mgr[py] Loading module cephadm in main interpreter
monA # [  174.500732] ceph-mgr[6443]: 2026-08-12T11:43:42.504+0000 7ee3cc9c5900 -1 mgr[py] Loading module alerts in main interpreter
monA # [  174.519733] ceph-mgr[6443]: 2026-08-12T11:43:42.523+0000 7ee3cc9c5900 -1 mgr[py] Loading module rbd_support in main interpreter
monA # [  174.588483] ceph-mgr[6443]: 2026-08-12T11:43:42.591+0000 7ee3cc9c5900 -1 mgr[py] Loading module progress in main interpreter
monA # [  174.607599] ceph-mgr[6443]: 2026-08-12T11:43:42.611+0000 7ee3cc9c5900 -1 mgr[py] Loading module telegraf in main interpreter
monA # [  174.631120] ceph-mgr[6443]: 2026-08-12T11:43:42.634+0000 7ee3cc9c5900 -1 mgr[py] Loading module nfs in main interpreter
monA # [  174.685667] ceph-mgr[6443]: 2026-08-12T11:43:42.689+0000 7ee3cc9c5900 -1 mgr[py] Loading module selftest in main interpreter
monA # [  174.710258] ceph-mgr[6443]: 2026-08-12T11:43:42.713+0000 7ee3cc9c5900 -1 mgr[py] Loading module status in main interpreter
monA # [  174.728925] ceph-mgr[6443]: 2026-08-12T11:43:42.732+0000 7ee3cc9c5900 -1 mgr[py] Loading module prometheus in main interpreter
monA # [  174.780715] ceph-mgr[6443]: 2026-08-12T11:43:42.784+0000 7ee3cc9c5900 -1 mgr[py] Loading module mirroring in main interpreter
monA # [  174.843246] ceph-mgr[6443]: 2026-08-12T11:43:42.846+0000 7ee3cc9c5900 -1 mgr[py] Loading module influx in main interpreter
monA # [  174.922584] ceph-mgr[6443]: 2026-08-12T11:43:42.926+0000 7ee3cc9c5900 -1 mgr[py] Loading module stats in main interpreter
monA # [  174.947082] ceph-mgr[6443]: 2026-08-12T11:43:42.950+0000 7ee3cc9c5900 -1 mgr[py] Loading module rook in main interpreter
monA # [  175.188157] ceph-mgr[6443]: 2026-08-12T11:43:43.191+0000 7ee3cc9c5900 -1 mgr[py] Loading module insights in main interpreter
monA # [  920.952410] systemd[1]: Starting Cleanup of Temporary Directories...
monA # [  921.038344] systemd[1]: systemd-tmpfiles-clean.service: Deactivated successfully.
monA # [  921.040330] systemd[1]: Finished Cleanup of Temporary Directories.
     !!! Traceback (most recent call last):
!!!   File "<string>", line 133, in <module>
!!!     monA.wait_for_open_port(8080)
!!! 
!!! RequestedAssertionFailed: action timed out after 900.92 seconds (timeout=900)
cleanup
kill QemuMachine (pid 46)
monA # qemu-system-x86_64: terminating on signal 15 from pid 39 (/nix/store/gxzhl7aaiid7zp3y47jqqiq7zg5mqpwp-python3-3.14.6/bin/python3.14)
(finished: cleanup, in 0.28 seconds)
error: Cannot build '/nix/store/hkwpn32qv5g9cpif7b7vvr52lj1m0mrk-vm-test-run-basic-single-node-ceph-cluster-deprecated-filestore.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/hfsf2anq7iad3cvg202xzzz3zcr6zxi0-vm-test-run-basic-single-node-ceph-cluster-deprecated-filestore

Fixes error:

    Executing pythonMetadataCheckPhase
    The 'cython' derivation has version '0.29.37.1' but .dist-info/METADATA specifies version '0.29.37'.

The only upstream code is in `.github/workflows/`:
cython/cython@0.29.37...0.29.37.1
But the `.1` cython upstream release is "broken" in this regard because it bumped
the version but didn't udpate that file.

Also use `finalAttrs` for better overridability.
@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: 1 This PR causes 1 package to rebuild on Darwin. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Aug 13, 2026
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 548582
Commit: 6cd6e1b1518da4980983e9bf993696257fe1c672


x86_64-linux

❌ 1 package failed to build:
  • macs2
✅ 5 packages built:
  • brutalmaze
  • ceph (ceph-client, ceph-dev, libceph)
  • ceph-csi
  • qemu_full
  • sambaFull (samba4Full)

aarch64-linux

❌ 1 package failed to build:
  • macs2
✅ 4 packages built:
  • brutalmaze
  • ceph (ceph-client, ceph-dev, libceph)
  • ceph-csi
  • qemu_full

aarch64-darwin

❌ 1 package failed to build:
  • macs2

@GaetanLepage
GaetanLepage added this pull request to the merge queue Aug 13, 2026
Merged via the queue into NixOS:master with commit 906ce5b Aug 13, 2026
27 checks passed
@GaetanLepage
GaetanLepage deleted the fix/ceph branch August 13, 2026 16:16
@nh2

nh2 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

@GaetanLepage Did you repro or fix the test failure from #548582 (comment) ?

nh2 added a commit to nh2/nixpkgs that referenced this pull request Aug 15, 2026
nh2 added a commit to nh2/nixpkgs that referenced this pull request Aug 15, 2026
…timing out

Fixes NixOS#548582 (comment)

Assisted-by: Claude Opus 5 in Zoo Code, human review
@nh2

nh2 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

I got a filestore VM test timeout though:

Fix:

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

@GaetanLepage Did you repro or fix the test failure from #548582 (comment) ?

I don't use this program, sorry. So no.

I got a filestore VM test timeout though:

Fix:

* [ceph.tests: Fix dashboard test timeout, move it to bluestore test #553058](https://github.com/NixOS/nixpkgs/pull/553058)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: ceph

5 participants