summaryrefslogtreecommitdiffstats
path: root/ceph.spec.in
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2022-03-10 18:32:30 +0100
committerIlya Dryomov <idryomov@gmail.com>2022-03-10 18:49:49 +0100
commit09440364731b35d5b47922a196df173d306e11dc (patch)
treecb7439f35cb11434ed2aed96bec36cd4f238a7dc /ceph.spec.in
parentMerge pull request #45272 from petrutlucian94/build_fix (diff)
downloadceph-09440364731b35d5b47922a196df173d306e11dc.tar.xz
ceph-09440364731b35d5b47922a196df173d306e11dc.zip
rpm: use system libpmem on Centos 9 Stream
We need libpmem 1.10 and Centos 9 Stream has it. On top of sticking to distro-provided packages being generally a good thing, this fixes a build failure: libpmem 1.10 doesn't build with LTO which is enabled by default in Centos 9 Stream. The distro package works around it. libpmem 1.10 is also there in Fedora 34 and Fedora 35. Fixes: https://tracker.ceph.com/issues/54473 Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'ceph.spec.in')
-rw-r--r--ceph.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/ceph.spec.in b/ceph.spec.in
index 21764d2865a..f584e529a67 100644
--- a/ceph.spec.in
+++ b/ceph.spec.in
@@ -36,7 +36,11 @@
%bcond_with rbd_rwl_cache
%endif
%if 0%{?fedora} || 0%{?rhel}
+%if 0%{?rhel} < 9
%bcond_with system_pmdk
+%else
+%bcond_without system_pmdk
+%endif
%bcond_without selinux
%if 0%{?rhel} >= 8
%bcond_with cephfs_java