Repository navigation
ceph: fix python build - #369622
ceph: fix python build#369622
Conversation
a16d070 to
63abe6d
Compare
|
IIRC The C++ failures could be GCC 14‐related, maybe. There might be upstream patches to pull down. |
I looked into this, and unfortunately, it looks like Here's a query for this (run against `NIXPKGS_REV=0541d0ed73655896748192b66b87777464a90e23; nix why-depends --derivation --all nixpkgs/$NIXPKGS_REV#ceph nixpkgs/$NIXPKGS_REV#ceph.python.pkgs.trustme`I played around with this a bit, trying to find the minimal set of disabling checks required to drop
I personally prefer the change I've already implemented in this PR, but I'm happy to change it if folks prefer. @emilazy, what do you think?
I briefly skimmed upstream's repo and didn't see any changes to the relevant functions in the build errors. I didn't look very hard, though. Do we need to address that to get this PR to land, or would it be OK to investigate that in a followup PR? |
|
Since I think it’s okay to investigate the other build issues in a follow‐up PR. |
Thanks. I've marked this PR as ready for review, and I've created #369777 to track the C++ compilation issue. |
63abe6d to
872a24a
Compare
`trustme` 1.2+ doesn't work with the old pinned version of `cryptography` that `ceph` needs. This vendors the previous version of `trustme`, which does work. How I got this: ```shell git show fd30f27~:pkgs/development/python-modules/trustme/default.nix > pkgs/tools/filesystems/ceph/old-python-packages/trustme.nix ``` I then added a warning on the top of the file, and updated the maintiner to myself. This fixes NixOS#359723 Unfortunately, the build goes on to fail trying to compile ceph itself. I see a bunch of errors that look like this. Hopefully someone more familiar with C++ can help figure this out: /build/ceph-19.2.0/src/osd/osd_types.h: In lambda function: /build/ceph-19.2.0/src/common/dout.h:196:73: error: call to non-'constexpr' function 'virtual unsigned int DoutPrefixProvider::get_subsys() const' 196 | dout_impl(pdpp->get_cct(), ceph::dout::need_dynamic(pdpp->get_subsys()), v) \ | ~~~~~~~~~~~~~~~~^~ /build/ceph-19.2.0/src/common/dout.h:167:58: note: in definition of macro 'dout_impl' 167 | return (cctX->_conf->subsys.template should_gather<sub, v>()); \ | ^~~ /build/ceph-19.2.0/src/osd/osd_types.h:3704:3: note: in expansion of macro 'ldpp_dout' 3704 | ldpp_dout(dpp, 10) << "build_prior all_probe " << all_probe << dendl; | ^~~~~~~~~ /build/ceph-19.2.0/src/common/dout.h:63:20: note: 'virtual unsigned int DoutPrefixProvider::get_subsys() const' declared here 63 | virtual unsigned get_subsys() const = 0; | ^~~~~~~~~~ I've filed NixOS#369777 so we can fix this in a follow up PR.
872a24a to
c314e80
Compare
emilazy
left a comment
There was a problem hiding this comment.
I don’t think we’re going to get anything better than this in the short term and there’s no security risk here so let’s just do it.
trustme1.2+ doesn't work with the old pinned version ofcryptographythatcephneeds. This vendors the previous version oftrustme, which does work. How I got this:git show fd30f2796b08596646c9a43fd439c4177f53c0ac~:pkgs/development/python-modules/trustme/default.nix > pkgs/tools/filesystems/ceph/old-python-packages/trustme.nixI then added a warning on the top of the file, and updated the maintiner to myself.
This fixes #359723.
Unfortunately, the build goes on to fail trying to compile ceph itself. I see a bunch of errors that look like this. Hopefully someone more familiar with C++ can help figure this out:
I've filed #369777 so we can fix this in a follow up PR.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.