]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: add --with-zbd option
authorKefu Chai <kchai@redhat.com>
Thu, 17 Sep 2020 06:06:54 +0000 (14:06 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 17 Sep 2020 06:45:11 +0000 (14:45 +0800)
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 <kchai@redhat.com>
ceph.spec.in

index 8d9d58d8e8392c2e18480c990595c12d021f8ea7..f6bb2d9a40d2bcaa55cdf40d46d8bcd1c1593302 100644 (file)
@@ -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