]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: use system libpmem on Centos 9 Stream wip-use-system-libpmem-on-c9s
authorIlya Dryomov <idryomov@gmail.com>
Thu, 10 Mar 2022 17:32:30 +0000 (18:32 +0100)
committerJustin Caratzas <jcaratza@redhat.com>
Tue, 26 Apr 2022 14:15:34 +0000 (10:15 -0400)
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>
ceph.spec.in

index 616decab82835fc641e2bcfea22e6b3632b3c796..6e69996b6735a46736ccf5d97ea5855eeea05335 100644 (file)
 %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