From fd1b02a341e3afba32776e35ec7c4bbe883f9b06 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 17 Sep 2020 14:06:54 +0800 Subject: [PATCH] rpm: add --with-zbd option libzbd-devel is not available in any distros official repo at the time of writing. but we packaged it for RHEL8/CentOS8. and uploaded its packages to http://apt-mirror.front.sepia.ceph.com/lab-extras/8/. to build test it to avoid the bitrot of ZBD bluestore backend at a minimal level. but we cannot do more than this. because - the kernel shipped by RHEL/CentOS8 does not have zoned block device support enabled. see https://zonedstorage.io/distributions/linux/ - and we don't have zoned block device for testing in our lab. so, in this change, "--with-zbd" option is added so we can pull in the libzbd-devel package on demand. Signed-off-by: Kefu Chai --- ceph.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 8d9d58d8e83..f6bb2d9a40d 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -21,6 +21,7 @@ # bcond syntax! ################################################################################# %bcond_with make_check +%bcond_with zbd %bcond_with cmake_verbose_logging %bcond_without ceph_test_package %ifarch s390 s390x @@ -196,6 +197,9 @@ BuildRequires: python%{python3_pkgversion}-coverage BuildRequires: python%{python3_pkgversion}-pyOpenSSL BuildRequires: socat %endif +%if 0%{with zbd} +BuildRequires: libzbd-devel +%endif %if 0%{with seastar} BuildRequires: c-ares-devel BuildRequires: gnutls-devel