|
|
b08661 |
From 84b4c8fbff60f534ce14db050b321b8c7c62f7dd Mon Sep 17 00:00:00 2001
|
|
|
b08661 |
From: Kefu Chai <kchai@redhat.com>
|
|
|
b08661 |
Date: Fri, 23 Jul 2021 18:02:36 +0800
|
|
|
b08661 |
Subject: [PATCH 3/3] ceph.spec.in: build with header only fmt on RHEL
|
|
|
b08661 |
|
|
|
b08661 |
because fmt is packaged in EPEL, while librados is packaged
|
|
|
b08661 |
in RHEL, so we cannot have fmt as a runtime dependency of librados.
|
|
|
b08661 |
to address this issue, we should compile librados either with static library
|
|
|
b08661 |
or with header-only library of fmt. but because the fedora packaging
|
|
|
b08661 |
guideline does no encourage us to package static libraries, and it would
|
|
|
b08661 |
be complicated to package both static and dynamic library for fmt.
|
|
|
b08661 |
|
|
|
b08661 |
the simpler solution would be to compile Ceph with the header-only
|
|
|
b08661 |
version of fmt.
|
|
|
b08661 |
|
|
|
b08661 |
in this change, we compile ceph with the header-only version of fmt
|
|
|
b08661 |
on RHEL to address the runtime dependency issue.
|
|
|
b08661 |
|
|
|
b08661 |
Signed-off-by: Kefu Chai <kchai@redhat.com>
|
|
|
b08661 |
---
|
|
|
b08661 |
ceph.spec.in | 3 +++
|
|
|
b08661 |
1 file changed, 3 insertions(+)
|
|
|
b08661 |
|
|
|
b08661 |
diff --git a/ceph.spec.in b/ceph.spec.in
|
|
|
b08661 |
index 718421ca901..fd7ebe92d8b 100644
|
|
|
b08661 |
--- a/ceph.spec.in
|
|
|
b08661 |
+++ b/ceph.spec.in
|
|
|
b08661 |
@@ -1335,6 +1335,9 @@ ${CMAKE} .. \
|
|
|
b08661 |
-DWITH_SYSTEM_PMDK:BOOL=ON \
|
|
|
b08661 |
%endif
|
|
|
b08661 |
-DBOOST_J=$CEPH_SMP_NCPUS \
|
|
|
b08661 |
+%if 0%{?rhel}
|
|
|
b08661 |
+ -DWITH_FMT_HEADER_ONLY:BOOL=ON \
|
|
|
b08661 |
+%endif
|
|
|
b08661 |
-DWITH_GRAFANA=ON
|
|
|
b08661 |
|
|
|
b08661 |
%if %{with cmake_verbose_logging}
|
|
|
b08661 |
--
|
|
|
b08661 |
2.31.1
|
|
|
b08661 |
|