From: Ilya Dryomov Date: Thu, 10 Mar 2022 17:32:30 +0000 (+0100) Subject: rpm: use system libpmem on Centos 9 Stream X-Git-Tag: v17.2.1~53^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=532ea1c9d5634985cb336e34563ff253248ea61c;p=ceph.git 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 (cherry picked from commit 09440364731b35d5b47922a196df173d306e11dc) --- diff --git a/ceph.spec.in b/ceph.spec.in index 1a74536e8924..02170bae0910 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