Repository navigation
cmake, ceph.spec.in: build with header only fmt on RHEL - #42464
Merged
Merged
Conversation
tchaikov
force-pushed
the
wip-header-only-fmt
branch
2 times, most recently
from
July 23, 2021 11:38
11fe5c7 to
b11d275
Compare
tchaikov
force-pushed
the
wip-header-only-fmt
branch
from
July 23, 2021 11:41
b11d275 to
22fd282
Compare
tchaikov
force-pushed
the
wip-header-only-fmt
branch
from
July 23, 2021 11:46
22fd282 to
8d29481
Compare
Contributor
Author
tchaikov
force-pushed
the
wip-header-only-fmt
branch
from
July 23, 2021 16:20
8d29481 to
096785b
Compare
so the linkage of fmt::fmt does not spill out to other compilation units. Signed-off-by: Kefu Chai <[email protected]>
tchaikov
force-pushed
the
wip-header-only-fmt
branch
4 times, most recently
from
July 23, 2021 18:20
0eabcfd to
e6dd6eb
Compare
in this change: * an interface library named "fmt-header-only" is introduced. it brings the support to the header only fmt library. * fmt::fmt is renamed to fmt * an option named "WITH_FMT_HEADER_ONLY" is introduced * fmt::fmt is an alias of "fmt-header-only" if "WITH_FMT_HEADER_ONLY" is "ON", and an alias of "fmt" otherwise. because fmt is packaged in EPEL, while librados is packaged in RHEL, so we cannot have fmt as a runtime dependency of librados. to address this issue an option "WITH_FMT_HEADER_ONLY" is introduced, so that we can enable it when building Ceph with the header version of fmt. and the built packages won't have runtime dependency of fmt. Signed-off-by: Kefu Chai <[email protected]>
because fmt is packaged in EPEL, while librados is packaged in RHEL, so we cannot have fmt as a runtime dependency of librados. to address this issue, we should compile librados either with static library or with header-only library of fmt. but because the fedora packaging guideline does no encourage us to package static libraries, and it would be complicated to package both static and dynamic library for fmt. the simpler solution would be to compile Ceph with the header-only version of fmt. in this change, we compile ceph with the header-only version of fmt on RHEL to address the runtime dependency issue. Signed-off-by: Kefu Chai <[email protected]>
tchaikov
force-pushed
the
wip-header-only-fmt
branch
from
July 23, 2021 18:26
e6dd6eb to
5419131
Compare
jdurgin
approved these changes
Jul 23, 2021
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox