ceph: Add patch to fix Python packaging import (runtime semi-crash).

See https://github.com/NixOS/nixpkgs/pull/330226#issuecomment-2268421031
This commit is contained in:
Niklas Hambüchen 2024-08-13 02:08:58 +00:00
parent 5f31fa1e5f
commit 6db7ec1704

View File

@ -4,6 +4,7 @@
, fetchurl
, fetchFromGitHub
, fetchPypi
, fetchpatch
# Build time
, cmake
@ -318,6 +319,17 @@ in rec {
pname = "ceph";
inherit src version;
patches = [
# Fixes mgr not being able to import `packaging` due to autotools >= 70.
# Remove once https://github.com/ceph/ceph/pull/58624 is merged, see
# https://github.com/NixOS/nixpkgs/pull/330226#issuecomment-2268421031
(fetchpatch {
url = "https://github.com/ceph/ceph/commit/8da2d857fa8fdfedd7aad0ca90e1780a3ed085c9.patch";
name = "ceph-mgr-python-fix-packaging-import.patch";
hash = "sha256-3Yl1X6UfTf0XCXJxgRnM/Js9sz8tS+hsqViY6gDExoI=";
})
];
postPatch = ''
substituteInPlace cmake/modules/Finduring.cmake \
--replace-fail "liburing.a liburing" "uring"