Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ceph/files/, sys-cluster/ceph/
Date: Thu, 05 Mar 2020 01:17:51
Message-Id: 1583371056.0a61409fb0b83f41e02f91d0065fe33fd0ca1014.chutzpah@gentoo
1 commit: 0a61409fb0b83f41e02f91d0065fe33fd0ca1014
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Thu Mar 5 01:11:29 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 5 01:17:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a61409f
7
8 sys-cluster/ceph-14.2.8: version bump
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.89, Repoman-2.3.20
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 sys-cluster/ceph/Manifest | 1 +
15 sys-cluster/ceph/ceph-14.2.8.ebuild | 367 ++++++++++++++
16 .../ceph/files/ceph-14.2.8-boost-sonames.patch | 538 +++++++++++++++++++++
17 3 files changed, 906 insertions(+)
18
19 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
20 index 5bc6a05232c..f6b72a26254 100644
21 --- a/sys-cluster/ceph/Manifest
22 +++ b/sys-cluster/ceph/Manifest
23 @@ -1,2 +1,3 @@
24 DIST ceph-12.2.12.tar.gz 77467762 BLAKE2B a5224432121db9ef49c1e22771d847399df2f7881cd9c2e185eca12096efb79d21578659d248eb5bae678924983d57452d370e23ab7e78663764d7bea834a461 SHA512 e694c9a8c1f9836c08fb74b54423bdc16d4900252e34643c56cf1a615d4dacddfb13df06a6a9f68bb9d438f5f07069ed358f9fa4b5a362640a3046f9c7722dcc
25 DIST ceph-14.2.7.tar.gz 116647114 BLAKE2B f6971324b0467cfdb863db553b6feacaf3607b14fb9adae2808bd6e5514fc5ce218482c412b80902c22a74b883ed697f2c126bc687c8733a83de5b970593efa2 SHA512 59f475e56053ba5e7e3a482a3a91b4d44272e6ec8051b92783de76c09c0d967a7ef76676db998968a709e48f08e90828dd8f86bd96a7c3fd111d48bfb7fd93b1
26 +DIST ceph-14.2.8.tar.gz 128415417 BLAKE2B bb3644938106aaefe17d29fd6adc8568a35e6aef799da048add5ecebb6fb0128a8575eba1f5ecc2f33f33caf2130619e5b6979a6291566e0971976d8da0e8387 SHA512 38b0c6df58579377528c8f8e06d0cbc40f471f6eb2fb4a05b395f6fddbd3f2117674545b2147d8730973b01967ddcd4322a769ba03f9c625417ed35cc39f195a
27
28 diff --git a/sys-cluster/ceph/ceph-14.2.8.ebuild b/sys-cluster/ceph/ceph-14.2.8.ebuild
29 new file mode 100644
30 index 00000000000..287059ae8ea
31 --- /dev/null
32 +++ b/sys-cluster/ceph/ceph-14.2.8.ebuild
33 @@ -0,0 +1,367 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +PYTHON_COMPAT=( python3_{6,7} )
39 +CMAKE_MAKEFILE_GENERATOR=emake
40 +
41 +DISTUTILS_OPTIONAL=1
42 +
43 +inherit check-reqs bash-completion-r1 cmake-utils distutils-r1 flag-o-matic \
44 + multiprocessing python-r1 udev readme.gentoo-r1 toolchain-funcs \
45 + systemd
46 +
47 +if [[ ${PV} == *9999* ]]; then
48 + inherit git-r3
49 + EGIT_REPO_URI="https://github.com/ceph/ceph.git"
50 + SRC_URI=""
51 +else
52 + SRC_URI="https://download.ceph.com/tarballs/${P}.tar.gz"
53 + KEYWORDS="~amd64 ~ppc64"
54 +fi
55 +
56 +DESCRIPTION="Ceph distributed filesystem"
57 +HOMEPAGE="https://ceph.com/"
58 +
59 +LICENSE="LGPL-2.1 CC-BY-SA-3.0 GPL-2 GPL-2+ LGPL-2+ BSD Boost-1.0 MIT public-domain"
60 +SLOT="0"
61 +
62 +CPU_FLAGS_X86=(sse{,2,3,4_1,4_2} ssse3)
63 +
64 +IUSE="babeltrace +cephfs dpdk fuse grafana jemalloc kerberos ldap libressl"
65 +IUSE+=" lttng +mgr numa rabbitmq +radosgw +ssl spdk static-libs system-boost"
66 +IUSE+=" systemd +tcmalloc test xfs zfs"
67 +IUSE+=" $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})"
68 +
69 +COMMON_DEPEND="
70 + acct-group/ceph
71 + acct-user/ceph
72 + virtual/libudev:=
73 + app-arch/bzip2:=[static-libs?]
74 + app-arch/lz4:=[static-libs?]
75 + app-arch/snappy:=[static-libs(-)?]
76 + app-arch/zstd:=[static-libs?]
77 + app-shells/bash:0
78 + app-misc/jq:=[static-libs?]
79 + dev-libs/crypto++:=[static-libs?]
80 + dev-libs/leveldb:=[snappy,static-libs?,tcmalloc(-)?]
81 + dev-libs/libaio:=[static-libs?]
82 + dev-libs/libnl:3=[static-libs?]
83 + dev-libs/libxml2:=[static-libs?]
84 + dev-libs/nss:=
85 + sys-auth/oath-toolkit:=
86 + sys-apps/coreutils
87 + sys-apps/grep
88 + sys-apps/keyutils:=[static-libs?]
89 + sys-apps/util-linux:=[static-libs?]
90 + sys-apps/sed
91 + sys-apps/util-linux
92 + sys-libs/libcap-ng:=[static-libs?]
93 + sys-libs/ncurses:0=[static-libs?]
94 + sys-libs/zlib:=[static-libs?]
95 + babeltrace? ( dev-util/babeltrace )
96 + ldap? ( net-nds/openldap:=[static-libs?] )
97 + lttng? ( dev-util/lttng-ust:= )
98 + fuse? ( sys-fs/fuse:0=[static-libs?] )
99 + kerberos? ( virtual/krb5 )
100 + rabbitmq? ( net-libs/rabbitmq-c:=[static-libs?] )
101 + ssl? (
102 + !libressl? ( dev-libs/openssl:=[static-libs?] )
103 + libressl? ( dev-libs/libressl:=[static-libs?] )
104 + )
105 + xfs? ( sys-fs/xfsprogs:=[static-libs(+)?] )
106 + zfs? ( sys-fs/zfs:=[static-libs?] )
107 + radosgw? (
108 + dev-libs/expat:=[static-libs?]
109 + !libressl? (
110 + dev-libs/openssl:=[static-libs?]
111 + net-misc/curl:=[curl_ssl_openssl,static-libs?]
112 + )
113 + libressl? (
114 + dev-libs/libressl:=[static-libs?]
115 + net-misc/curl:=[curl_ssl_libressl,static-libs?]
116 + )
117 + )
118 + system-boost? ( =dev-libs/boost-1.72*[threads,context,python,static-libs?,${PYTHON_USEDEP}] )
119 + jemalloc? ( dev-libs/jemalloc:=[static-libs?] )
120 + !jemalloc? ( >=dev-util/google-perftools-2.6.1:=[static-libs?] )
121 + ${PYTHON_DEPS}
122 +"
123 +BDEPEND="
124 + amd64? ( dev-lang/yasm )
125 + x86? ( dev-lang/yasm )
126 + app-arch/cpio
127 + >=dev-util/cmake-3.5.0
128 + dev-python/cython[${PYTHON_USEDEP}]
129 + dev-python/sphinx
130 + dev-util/cunit
131 + dev-util/gperf
132 + dev-util/valgrind
133 + sys-apps/coreutils
134 + sys-apps/findutils
135 + sys-apps/grep
136 + sys-apps/sed
137 + sys-apps/which
138 + sys-devel/bc
139 + sys-devel/patch
140 + virtual/pkgconfig
141 + test? (
142 + dev-python/coverage[${PYTHON_USEDEP}]
143 + dev-python/virtualenv[${PYTHON_USEDEP}]
144 + dev-python/requests-mock[${PYTHON_USEDEP}]
145 + sys-apps/grep[pcre]
146 + sys-fs/btrfs-progs
147 + )
148 +"
149 +RDEPEND="${COMMON_DEPEND}
150 + net-misc/socat
151 + sys-apps/gptfdisk
152 + sys-block/parted
153 + sys-fs/cryptsetup
154 + sys-fs/lvm2[-device-mapper-only(-)]
155 + sys-fs/lsscsi
156 + virtual/awk
157 + dev-python/bcrypt[${PYTHON_USEDEP}]
158 + dev-python/cherrypy[${PYTHON_USEDEP}]
159 + dev-python/flask[${PYTHON_USEDEP}]
160 + dev-python/jinja[${PYTHON_USEDEP}]
161 + dev-python/pecan[${PYTHON_USEDEP}]
162 + dev-python/prettytable[${PYTHON_USEDEP}]
163 + dev-python/pyopenssl[${PYTHON_USEDEP}]
164 + dev-python/requests[${PYTHON_USEDEP}]
165 + dev-python/werkzeug[${PYTHON_USEDEP}]
166 + mgr? (
167 + dev-python/more-itertools[${PYTHON_USEDEP}]
168 + dev-python/pyjwt[${PYTHON_USEDEP}]
169 + dev-python/pyyaml[${PYTHON_USEDEP}]
170 + dev-python/routes[${PYTHON_USEDEP}]
171 + dev-python/six[${PYTHON_USEDEP}]
172 + )
173 +"
174 +REQUIRED_USE="
175 + ${PYTHON_REQUIRED_USE}
176 + mgr? ( cephfs )
177 + ?? ( jemalloc tcmalloc )
178 + rabbitmq? ( radosgw )
179 +"
180 +
181 +# the tests need root access
182 +RESTRICT="test? ( userpriv )"
183 +
184 +# distribution tarball does not include everything needed for tests
185 +RESTRICT+=" test"
186 +
187 +# false positives unless all USE flags are on
188 +CMAKE_WARN_UNUSED_CLI="no"
189 +
190 +PATCHES=(
191 + "${FILESDIR}/ceph-12.2.0-use-provided-cpu-flag-values.patch"
192 + "${FILESDIR}/ceph-14.2.0-cflags.patch"
193 + "${FILESDIR}/ceph-12.2.4-boost-build-none-options.patch"
194 + "${FILESDIR}/ceph-13.2.0-cflags.patch"
195 + "${FILESDIR}/ceph-14.2.0-mgr-python-version.patch"
196 + "${FILESDIR}/ceph-14.2.5-no-virtualenvs.patch"
197 + "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch"
198 + "${FILESDIR}/ceph-14.2.0-dpdk-cflags.patch"
199 + "${FILESDIR}/ceph-14.2.0-link-crc32-statically.patch"
200 + "${FILESDIR}/ceph-14.2.0-cython-0.29.patch"
201 + "${FILESDIR}/ceph-14.2.3-dpdk-compile-fix-1.patch"
202 + "${FILESDIR}/ceph-14.2.4-python-executable.patch"
203 + "${FILESDIR}/ceph-14.2.4-undefined-behaviour.patch"
204 +)
205 +
206 +check-reqs_export_vars() {
207 + if use amd64; then
208 + CHECKREQS_DISK_BUILD="12G"
209 + CHECKREQS_DISK_USR="460M"
210 + else
211 + CHECKREQS_DISK_BUILD="1400M"
212 + CHECKREQS_DISK_USR="450M"
213 + fi
214 +
215 + export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
216 +}
217 +
218 +pkg_pretend() {
219 + check-reqs_export_vars
220 + check-reqs_pkg_pretend
221 +}
222 +
223 +pkg_setup() {
224 + python_setup 'python3*'
225 + check-reqs_export_vars
226 + check-reqs_pkg_setup
227 +}
228 +
229 +src_prepare() {
230 + cmake-utils_src_prepare
231 +
232 + if use system-boost; then
233 + eapply "${FILESDIR}/ceph-14.2.8-boost-sonames.patch"
234 +
235 + find "${S}" -name '*.cmake' -or -name 'CMakeLists.txt' -print0 \
236 + | xargs --null sed \
237 + -e 's|Boost::|Boost_|g' \
238 + -e 's|Boost_boost|boost_system|g' -i || die
239 + fi
240 +
241 + sed -i -r "s:DESTINATION .+\\):DESTINATION $(get_bashcompdir)\\):" \
242 + src/bash_completion/CMakeLists.txt || die
243 +
244 + # remove tests that need root access
245 + rm src/test/cli/ceph-authtool/cap*.t || die
246 +}
247 +
248 +ceph_src_configure() {
249 + local flag
250 + local mycmakeargs=(
251 + -DWITH_BABELTRACE=$(usex babeltrace)
252 + -DWITH_CEPHFS=$(usex cephfs)
253 + -DWITH_CEPHFS_SHELL=$(if python_is_python3; then usex cephfs; else echo OFF; fi)
254 + -DWITH_DPDK=$(usex dpdk)
255 + -DWITH_DPDK=$(usex spdk)
256 + -DWITH_FUSE=$(usex fuse)
257 + -DWITH_LTTNG=$(usex lttng)
258 + -DWITH_GSSAPI=$(usex kerberos)
259 + -DWITH_GRAFANA=$(usex grafana)
260 + -DWITH_MGR=$(usex mgr)
261 + -DWITH_MGR_DASHBOARD_FRONTEND=NO
262 + -DWITH_NUMA=$(usex numa)
263 + -DWITH_OPENLDAP=$(usex ldap)
264 + -DMGR_PYTHON_VERSION=$(if python_is_python3; then echo 3; else echo 2; fi)
265 + -DWITH_PYTHON3=$(if python_is_python3; then echo "ON"; else echo "OFF"; fi)
266 + -DWITH_PYTHON2=$(if python_is_python3; then echo "OFF"; else echo "ON"; fi)
267 + -DWITH_RADOSGW=$(usex radosgw)
268 + -DWITH_RADOSGW_AMQP_ENDPOINT=$(usex rabbitmq)
269 + -DWITH_SSL=$(usex ssl)
270 + -DWITH_SYSTEMD=$(usex systemd)
271 + -DWITH_TESTS=$(usex test)
272 + -DWITH_XFS=$(usex xfs)
273 + -DWITH_ZFS=$(usex zfs)
274 + -DENABLE_SHARED=$(usex static-libs '' 'ON' 'OFF')
275 + -DALLOCATOR=$(usex tcmalloc 'tcmalloc' "$(usex jemalloc 'jemalloc' 'libc')")
276 + -DWITH_SYSTEM_BOOST=$(usex system-boost)
277 + -DBOOST_J=$(makeopts_jobs)
278 + -DWITH_RDMA=no
279 + -DWITH_TBB=no
280 + -DSYSTEMD_UNITDIR=$(systemd_get_systemunitdir)
281 + -DEPYTHON_VERSION="${EPYTHON#python}"
282 + -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PN}-${PVR}"
283 + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
284 + #-Wno-dev
285 + )
286 + if use amd64 || use x86; then
287 + for flag in ${CPU_FLAGS_X86[@]}; do
288 + mycmakeargs+=("$(usex cpu_flags_x86_${flag} "-DHAVE_INTEL_${flag^^}=1")")
289 + done
290 + fi
291 +
292 + rm -f "${BUILD_DIR:-${S}}/CMakeCache.txt" \
293 + || die "failed to remove cmake cache"
294 +
295 + cmake-utils_src_configure
296 +
297 + # bug #630232
298 + sed -i "s:\"${T//:\\:}/${EPYTHON}/bin/python\":\"${PYTHON}\":" \
299 + "${BUILD_DIR:-${S}}"/include/acconfig.h \
300 + || die "sed failed"
301 +}
302 +
303 +src_configure() {
304 + ceph_src_configure
305 +}
306 +
307 +python_compile() {
308 + local CMAKE_USE_DIR="${S}"
309 + ceph_src_configure
310 +
311 + pushd "${BUILD_DIR}/src/pybind" >/dev/null || die
312 + emake VERBOSE=1 clean
313 + emake VERBOSE=1 all
314 +
315 + # python modules are only compiled with "make install" so we need to do this to
316 + # prevent doing a bunch of compilation in src_install
317 + DESTDIR="${T}" emake VERBOSE=1 install
318 + popd >/dev/null || die
319 +}
320 +
321 +src_compile() {
322 + cmake-utils_src_make VERBOSE=1 all
323 +
324 + # we have to do this here to prevent from building everything multiple times
325 + python_copy_sources
326 + python_foreach_impl python_compile
327 +}
328 +
329 +src_test() {
330 + make check || die "make check failed"
331 +}
332 +
333 +python_install() {
334 + local CMAKE_USE_DIR="${S}"
335 + pushd "${BUILD_DIR}/src/pybind" >/dev/null || die
336 + DESTDIR="${ED}" emake VERBOSE=1 install
337 + popd >/dev/null || die
338 +
339 + python_optimize
340 +}
341 +
342 +src_install() {
343 + cmake-utils_src_install
344 + python_foreach_impl python_install
345 +
346 + find "${ED}" -name '*.la' -type f -delete || die
347 +
348 + exeinto /usr/$(get_libdir)/ceph
349 + newexe "${BUILD_DIR}/bin/init-ceph" init-ceph
350 +
351 + insinto /etc/logrotate.d/
352 + newins "${FILESDIR}"/ceph.logrotate-r2 ${PN}
353 +
354 + keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
355 +
356 + fowners -R ceph:ceph /var/log/ceph
357 +
358 + newinitd "${FILESDIR}/rbdmap.initd" rbdmap
359 + newinitd "${FILESDIR}/${PN}.initd-r12" ${PN}
360 + newconfd "${FILESDIR}/${PN}.confd-r5" ${PN}
361 +
362 + insinto /etc/sysctl.d
363 + newins "${FILESDIR}"/sysctld 90-${PN}.conf
364 +
365 + use tcmalloc && newenvd "${FILESDIR}"/envd-tcmalloc 99${PN}-tcmalloc
366 +
367 + # units aren't installed by the build system unless systemd is enabled
368 + # so no point installing these with the USE flag disabled
369 + if use systemd; then
370 + systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" \
371 + "ceph-mds@.service"
372 +
373 + systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" \
374 + "ceph-osd@.service"
375 + fi
376 +
377 + udev_dorules udev/*.rules
378 +
379 + readme.gentoo_create_doc
380 +
381 + python_setup 'python3*'
382 +
383 + # bug #630232
384 + sed -i -r "s:${T//:/\\:}/${EPYTHON}:/usr:" "${ED}"/usr/bin/ceph{,-crash} \
385 + || die "sed failed"
386 +
387 + python_fix_shebang "${ED}"/usr/{,s}bin/
388 +
389 + # python_fix_shebang apparently is not idempotent
390 + local shebang_regex='(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]'
391 + grep -r -E -l --null "${shebang_regex}" "${ED}"/usr/{s,}bin/ \
392 + | xargs --null --no-run-if-empty -- sed -i -r "s:${shebang_regex}:\1:" || die
393 +
394 + local -a rados_classes=( "${ED}/usr/$(get_libdir)/rados-classes"/* )
395 + dostrip -x "${rados_classes[@]#${ED}}"
396 +}
397 +
398 +pkg_postinst() {
399 + readme.gentoo_print_elog
400 +}
401
402 diff --git a/sys-cluster/ceph/files/ceph-14.2.8-boost-sonames.patch b/sys-cluster/ceph/files/ceph-14.2.8-boost-sonames.patch
403 new file mode 100644
404 index 00000000000..07def706d78
405 --- /dev/null
406 +++ b/sys-cluster/ceph/files/ceph-14.2.8-boost-sonames.patch
407 @@ -0,0 +1,538 @@
408 +diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake
409 +index f99d74a0bc..d1a47bc5d1 100644
410 +--- a/cmake/modules/BuildBoost.cmake
411 ++++ b/cmake/modules/BuildBoost.cmake
412 +@@ -199,13 +199,13 @@ macro(build_boost version)
413 + foreach(c ${Boost_BUILD_COMPONENTS})
414 + string(TOUPPER ${c} upper_c)
415 + if(Boost_USE_STATIC_LIBS)
416 +- add_library(Boost::${c} STATIC IMPORTED)
417 ++ add_library(Boost_${c} STATIC IMPORTED)
418 + else()
419 +- add_library(Boost::${c} SHARED IMPORTED)
420 ++ add_library(Boost_${c} SHARED IMPORTED)
421 + endif()
422 +- add_dependencies(Boost::${c} Boost)
423 ++ add_dependencies(Boost_${c} Boost)
424 + if(c MATCHES "^python")
425 +- set(c "python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}")
426 ++ set(c "python-${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")
427 + endif()
428 + if(Boost_USE_STATIC_LIBS)
429 + set(Boost_${upper_c}_LIBRARY
430 +@@ -215,7 +215,7 @@ macro(build_boost version)
431 + ${install_dir}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}boost_${c}${CMAKE_SHARED_LIBRARY_SUFFIX})
432 + endif()
433 + unset(buildid)
434 +- set_target_properties(Boost::${c} PROPERTIES
435 ++ set_target_properties(Boost_${c} PROPERTIES
436 + INTERFACE_INCLUDE_DIRECTORIES "${Boost_INCLUDE_DIRS}"
437 + IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
438 + IMPORTED_LOCATION "${Boost_${upper_c}_LIBRARY}")
439 +@@ -224,19 +224,19 @@ macro(build_boost version)
440 + foreach(c ${Boost_BUILD_COMPONENTS})
441 + if(Boost_${c}_DEPENDENCIES)
442 + foreach(dep ${Boost_${c}_DEPENDENCIES})
443 +- list(APPEND dependencies Boost::${dep})
444 ++ list(APPEND dependencies Boost_${dep})
445 + endforeach()
446 +- set_target_properties(Boost::${c} PROPERTIES
447 ++ set_target_properties(Boost_${c} PROPERTIES
448 + INTERFACE_LINK_LIBRARIES "${dependencies}")
449 + unset(dependencies)
450 + endif()
451 + endforeach()
452 +
453 + # for header-only libraries
454 +- add_library(Boost::boost INTERFACE IMPORTED)
455 +- set_target_properties(Boost::boost PROPERTIES
456 ++ add_library(boost INTERFACE IMPORTED)
457 ++ set_target_properties(boost PROPERTIES
458 + INTERFACE_INCLUDE_DIRECTORIES "${Boost_INCLUDE_DIRS}")
459 +- add_dependencies(Boost::boost Boost)
460 ++ add_dependencies(boost Boost)
461 + find_package_handle_standard_args(Boost DEFAULT_MSG
462 + Boost_INCLUDE_DIRS Boost_LIBRARIES)
463 + mark_as_advanced(Boost_LIBRARIES BOOST_INCLUDE_DIRS)
464 +@@ -253,7 +253,7 @@ function(maybe_add_boost_dep target)
465 + get_filename_component(ext ${src} EXT)
466 + # assuming all cxx source files include boost header(s)
467 + if(ext MATCHES ".cc|.cpp|.cxx")
468 +- add_dependencies(${target} Boost::boost)
469 ++ add_dependencies(${target} boost)
470 + return()
471 + endif()
472 + endforeach()
473 +diff --git a/cmake/modules/FindBoost.cmake b/cmake/modules/FindBoost.cmake
474 +index bc61995b03..4419632fa4 100644
475 +--- a/cmake/modules/FindBoost.cmake
476 ++++ b/cmake/modules/FindBoost.cmake
477 +@@ -293,9 +293,9 @@ function(_boost_get_canonical_target_name component target_var)
478 + string(TOLOWER "${component}" component)
479 + if(component MATCHES "^([a-z_]*)(python|numpy)([1-9])\\.?([0-9])?$")
480 + # handle pythonXY and numpyXY versioned components and also python X.Y, mpi_python etc.
481 +- set(${target_var} "Boost::${CMAKE_MATCH_1}${CMAKE_MATCH_2}" PARENT_SCOPE)
482 ++ set(${target_var} "boost_${CMAKE_MATCH_1}${CMAKE_MATCH_2}" PARENT_SCOPE)
483 + else()
484 +- set(${target_var} "Boost::${component}" PARENT_SCOPE)
485 ++ set(${target_var} "boost_${component}" PARENT_SCOPE)
486 + endif()
487 + endfunction()
488 +
489 +@@ -403,19 +403,19 @@ function(_boost_set_legacy_variables_from_config)
490 + if(WIN32)
491 + _boost_set_if_unset(Boost_LIB_DIAGNOSTIC_DEFINITIONS "-DBOOST_LIB_DIAGNOSTIC")
492 + endif()
493 +- if(NOT TARGET Boost::headers)
494 +- add_library(Boost::headers INTERFACE IMPORTED)
495 +- target_include_directories(Boost::headers INTERFACE ${Boost_INCLUDE_DIRS})
496 ++ if(NOT TARGET boost_headers)
497 ++ add_library(boost_headers INTERFACE IMPORTED)
498 ++ target_include_directories(boost_headers INTERFACE ${Boost_INCLUDE_DIRS})
499 + endif()
500 + # Legacy targets w/o functionality as all handled by defined targets
501 + foreach(lib diagnostic_definitions disable_autolinking dynamic_linking)
502 +- if(NOT TARGET Boost::${lib})
503 +- add_library(Boost::${lib} INTERFACE IMPORTED)
504 ++ if(NOT TARGET boost_${lib})
505 ++ add_library(boost_${lib} INTERFACE IMPORTED)
506 + endif()
507 + endforeach()
508 +- if(NOT TARGET Boost::boost)
509 +- add_library(Boost::boost INTERFACE IMPORTED)
510 +- target_link_libraries(Boost::boost INTERFACE Boost::headers)
511 ++ if(NOT TARGET boost_boost)
512 ++ add_library(boost_boost INTERFACE IMPORTED)
513 ++ target_link_libraries(boost_boost INTERFACE boost_headers)
514 + endif()
515 + endfunction()
516 +
517 +@@ -580,10 +580,6 @@ macro(_Boost_ADJUST_LIB_VARS basename)
518 +
519 + if(Boost_${basename}_LIBRARY AND Boost_${basename}_HEADER)
520 + set(Boost_${basename}_FOUND ON)
521 +- if("x${basename}" STREQUAL "xTHREAD" AND NOT TARGET Threads::Threads)
522 +- string(APPEND Boost_ERROR_REASON_THREAD " (missing dependency: Threads)")
523 +- set(Boost_THREAD_FOUND OFF)
524 +- endif()
525 + endif()
526 +
527 + endif()
528 +@@ -1170,7 +1166,7 @@ function(_Boost_COMPONENT_DEPENDENCIES component _ret)
529 + if (NOT _boost_DEPS_STRING)
530 + set(_boost_DEPS_STRING "(none)")
531 + endif()
532 +- # message(STATUS "Dependencies for Boost::${component}: ${_boost_DEPS_STRING}")
533 ++ # message(STATUS "Dependencies for Boost_${component}: ${_boost_DEPS_STRING}")
534 + endfunction()
535 +
536 + #
537 +@@ -1254,7 +1250,7 @@ function(_Boost_COMPONENT_HEADERS component _hdrs)
538 + if (NOT _boost_HDRS_STRING)
539 + set(_boost_HDRS_STRING "(none)")
540 + endif()
541 +- # message(STATUS "Headers for Boost::${component}: ${_boost_HDRS_STRING}")
542 ++ # message(STATUS "Headers for Boost_${component}: ${_boost_HDRS_STRING}")
543 + endfunction()
544 +
545 + #
546 +@@ -1302,7 +1298,7 @@ endfunction()
547 +
548 + #
549 + # Some boost libraries may require particular set of compler features.
550 +-# The very first one was `boost::fiber` introduced in Boost 1.62.
551 ++# The very first one was `boost_fiber` introduced in Boost 1.62.
552 + # One can check required compiler features of it in
553 + # - `${Boost_ROOT}/libs/fiber/build/Jamfile.v2`;
554 + # - `${Boost_ROOT}/libs/context/build/Jamfile.v2`.
555 +@@ -1472,11 +1468,11 @@ _Boost_DEBUG_PRINT_VAR("${CMAKE_CURRENT_LIST_FILE}" "${CMAKE_CURRENT_LIST_LINE}"
556 + # on all platforms to keep end user code free from platform dependent
557 + # code. Also provide convenience targets to disable autolinking and
558 + # enable dynamic linking.
559 +-if(NOT TARGET Boost::diagnostic_definitions)
560 +- add_library(Boost::diagnostic_definitions INTERFACE IMPORTED)
561 +- add_library(Boost::disable_autolinking INTERFACE IMPORTED)
562 +- add_library(Boost::dynamic_linking INTERFACE IMPORTED)
563 +- set_target_properties(Boost::dynamic_linking PROPERTIES
564 ++if(NOT TARGET boost_diagnostic_definitions)
565 ++ add_library(boost_diagnostic_definitions INTERFACE IMPORTED)
566 ++ add_library(boost_disable_autolinking INTERFACE IMPORTED)
567 ++ add_library(boost_dynamic_linking INTERFACE IMPORTED)
568 ++ set_target_properties(boost_dynamic_linking PROPERTIES
569 + INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_DYN_LINK")
570 + endif()
571 + if(WIN32)
572 +@@ -1498,9 +1494,9 @@ if(WIN32)
573 + # code to emit a #pragma message each time a library is selected
574 + # for linking.
575 + set(Boost_LIB_DIAGNOSTIC_DEFINITIONS "-DBOOST_LIB_DIAGNOSTIC")
576 +- set_target_properties(Boost::diagnostic_definitions PROPERTIES
577 ++ set_target_properties(boost_diagnostic_definitions PROPERTIES
578 + INTERFACE_COMPILE_DEFINITIONS "BOOST_LIB_DIAGNOSTIC")
579 +- set_target_properties(Boost::disable_autolinking PROPERTIES
580 ++ set_target_properties(boost_disable_autolinking PROPERTIES
581 + INTERFACE_COMPILE_DEFINITIONS "BOOST_ALL_NO_LIB")
582 + endif()
583 +
584 +@@ -1933,7 +1929,7 @@ if("thread" IN_LIST Boost_FIND_COMPONENTS)
585 + else()
586 + set(_Boost_find_quiet "")
587 + endif()
588 +- find_package(Threads ${_Boost_find_quiet})
589 ++ find_package(boost_thread ${_Boost_find_quiet})
590 + unset(_Boost_find_quiet)
591 + endif()
592 +
593 +@@ -2234,69 +2230,69 @@ endif()
594 + if(Boost_FOUND)
595 + # The builtin CMake package in Boost 1.70+ introduces a new name
596 + # for the header-only lib, let's provide the same UI in module mode
597 +- if(NOT TARGET Boost::headers)
598 +- add_library(Boost::headers INTERFACE IMPORTED)
599 ++ if(NOT TARGET boost_headers)
600 ++ add_library(boost_headers INTERFACE IMPORTED)
601 + if(Boost_INCLUDE_DIRS)
602 +- set_target_properties(Boost::headers PROPERTIES
603 ++ set_target_properties(boost_headers PROPERTIES
604 + INTERFACE_INCLUDE_DIRECTORIES "${Boost_INCLUDE_DIRS}")
605 + endif()
606 + endif()
607 +
608 + # Define the old target name for header-only libraries for backwards
609 + # compat.
610 +- if(NOT TARGET Boost::boost)
611 +- add_library(Boost::boost INTERFACE IMPORTED)
612 +- set_target_properties(Boost::boost
613 +- PROPERTIES INTERFACE_LINK_LIBRARIES Boost::headers)
614 ++ if(NOT TARGET boost_boost)
615 ++ add_library(boost_boost INTERFACE IMPORTED)
616 ++ set_target_properties(boost_boost
617 ++ PROPERTIES INTERFACE_LINK_LIBRARIES boost_headers)
618 + endif()
619 +
620 + foreach(COMPONENT ${Boost_FIND_COMPONENTS})
621 +- if(_Boost_IMPORTED_TARGETS AND NOT TARGET Boost::${COMPONENT})
622 ++ if(_Boost_IMPORTED_TARGETS AND NOT TARGET boost_${COMPONENT})
623 + string(TOUPPER ${COMPONENT} UPPERCOMPONENT)
624 + if(Boost_${UPPERCOMPONENT}_FOUND)
625 + if(Boost_USE_STATIC_LIBS)
626 +- add_library(Boost::${COMPONENT} STATIC IMPORTED)
627 ++ add_library(boost_${COMPONENT} STATIC IMPORTED)
628 + else()
629 + # Even if Boost_USE_STATIC_LIBS is OFF, we might have static
630 + # libraries as a result.
631 +- add_library(Boost::${COMPONENT} UNKNOWN IMPORTED)
632 ++ add_library(boost_${COMPONENT} UNKNOWN IMPORTED)
633 + endif()
634 + if(Boost_INCLUDE_DIRS)
635 +- set_target_properties(Boost::${COMPONENT} PROPERTIES
636 ++ set_target_properties(boost_${COMPONENT} PROPERTIES
637 + INTERFACE_INCLUDE_DIRECTORIES "${Boost_INCLUDE_DIRS}")
638 + endif()
639 + if(EXISTS "${Boost_${UPPERCOMPONENT}_LIBRARY}")
640 +- set_target_properties(Boost::${COMPONENT} PROPERTIES
641 ++ set_target_properties(boost_${COMPONENT} PROPERTIES
642 + IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
643 + IMPORTED_LOCATION "${Boost_${UPPERCOMPONENT}_LIBRARY}")
644 + endif()
645 + if(EXISTS "${Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE}")
646 +- set_property(TARGET Boost::${COMPONENT} APPEND PROPERTY
647 ++ set_property(TARGET boost_${COMPONENT} APPEND PROPERTY
648 + IMPORTED_CONFIGURATIONS RELEASE)
649 +- set_target_properties(Boost::${COMPONENT} PROPERTIES
650 ++ set_target_properties(boost_${COMPONENT} PROPERTIES
651 + IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "CXX"
652 + IMPORTED_LOCATION_RELEASE "${Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE}")
653 + endif()
654 + if(EXISTS "${Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG}")
655 +- set_property(TARGET Boost::${COMPONENT} APPEND PROPERTY
656 ++ set_property(TARGET boost_${COMPONENT} APPEND PROPERTY
657 + IMPORTED_CONFIGURATIONS DEBUG)
658 +- set_target_properties(Boost::${COMPONENT} PROPERTIES
659 ++ set_target_properties(boost_${COMPONENT} PROPERTIES
660 + IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
661 + IMPORTED_LOCATION_DEBUG "${Boost_${UPPERCOMPONENT}_LIBRARY_DEBUG}")
662 + endif()
663 + if(_Boost_${UPPERCOMPONENT}_DEPENDENCIES)
664 + unset(_Boost_${UPPERCOMPONENT}_TARGET_DEPENDENCIES)
665 + foreach(dep ${_Boost_${UPPERCOMPONENT}_DEPENDENCIES})
666 +- list(APPEND _Boost_${UPPERCOMPONENT}_TARGET_DEPENDENCIES Boost::${dep})
667 ++ list(APPEND _Boost_${UPPERCOMPONENT}_TARGET_DEPENDENCIES boost_${dep})
668 + endforeach()
669 + if(COMPONENT STREQUAL "thread")
670 + list(APPEND _Boost_${UPPERCOMPONENT}_TARGET_DEPENDENCIES Threads::Threads)
671 + endif()
672 +- set_target_properties(Boost::${COMPONENT} PROPERTIES
673 ++ set_target_properties(boost_${COMPONENT} PROPERTIES
674 + INTERFACE_LINK_LIBRARIES "${_Boost_${UPPERCOMPONENT}_TARGET_DEPENDENCIES}")
675 + endif()
676 + if(_Boost_${UPPERCOMPONENT}_COMPILER_FEATURES)
677 +- set_target_properties(Boost::${COMPONENT} PROPERTIES
678 ++ set_target_properties(boost_${COMPONENT} PROPERTIES
679 + CXX_STANDARD 17)
680 + endif()
681 + endif()
682 +diff --git a/cmake/modules/Finddpdk.cmake b/cmake/modules/Finddpdk.cmake
683 +index 964ae5dfb0..92bf07c14e 100644
684 +--- a/cmake/modules/Finddpdk.cmake
685 ++++ b/cmake/modules/Finddpdk.cmake
686 +@@ -102,9 +102,9 @@ if(dpdk_FOUND)
687 +
688 + if(NOT TARGET dpdk::dpdk)
689 + add_library(dpdk::dpdk INTERFACE IMPORTED)
690 +- find_package(Threads QUIET)
691 ++ find_package(boost_thread QUIET)
692 + list(APPEND dpdk_LIBRARIES
693 +- Threads::Threads
694 ++ boost_thread
695 + dpdk::cflags)
696 + set_target_properties(dpdk::dpdk PROPERTIES
697 + INTERFACE_LINK_LIBRARIES "${dpdk_LIBRARIES}"
698 +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
699 +index 28ec9835f8..31a1efa19f 100644
700 +--- a/src/CMakeLists.txt
701 ++++ b/src/CMakeLists.txt
702 +@@ -356,12 +356,12 @@ set(ceph_common_objs
703 + set(ceph_common_deps
704 + json_spirit erasure_code arch crc32
705 + ${LIB_RESOLV}
706 +- Boost::thread
707 +- Boost::system
708 +- Boost::random
709 +- Boost::program_options
710 +- Boost::date_time
711 +- Boost::iostreams
712 ++ boost_thread
713 ++ boost_system
714 ++ boost_random
715 ++ boost_program_options
716 ++ boost_date_time
717 ++ boost_iostreams
718 + ${BLKID_LIBRARIES}
719 + ${Backtrace_LIBRARIES}
720 + ${BLKIN_LIBRARIES}
721 +@@ -522,7 +522,7 @@ if (WITH_CEPHFS)
722 + ceph_mds.cc)
723 + add_executable(ceph-mds ${ceph_mds_srcs})
724 + target_link_libraries(ceph-mds mds ${CMAKE_DL_LIBS} global-static ceph-common
725 +- Boost::thread)
726 ++ boost_thread)
727 + install(TARGETS ceph-mds DESTINATION bin)
728 + endif()
729 +
730 +diff --git a/src/crimson/CMakeLists.txt b/src/crimson/CMakeLists.txt
731 +index d7b58521d4..e1533af33f 100644
732 +--- a/src/crimson/CMakeLists.txt
733 ++++ b/src/crimson/CMakeLists.txt
734 +@@ -106,8 +106,8 @@ target_link_libraries(crimson-common
735 + PRIVATE
736 + crc32
737 + crimson::cflags
738 +- Boost::iostreams
739 +- Boost::random
740 ++ boost_iostreams
741 ++ boost_random
742 + ${NSS_LIBRARIES} ${NSPR_LIBRARIES} OpenSSL::Crypto)
743 +
744 + set(crimson_auth_srcs
745 +diff --git a/src/mgr/CMakeLists.txt b/src/mgr/CMakeLists.txt
746 +index 180e39bc1c..8323aa29a5 100644
747 +--- a/src/mgr/CMakeLists.txt
748 ++++ b/src/mgr/CMakeLists.txt
749 +@@ -30,7 +30,7 @@ target_include_directories(ceph-mgr SYSTEM PRIVATE "${PYTHON_INCLUDE_DIRS}")
750 + target_link_libraries(ceph-mgr
751 + osdc client heap_profiler
752 + global-static ceph-common
753 +- Boost::python${MGR_PYTHON_VERSION_MAJOR}${MGR_PYTHON_VERSION_MINOR}
754 ++ boost_python${MGR_PYTHON_VERSION_MAJOR}${MGR_PYTHON_VERSION_MINOR}
755 + ${MGR_PYTHON_LIBRARIES} ${CMAKE_DL_LIBS} ${GSSAPI_LIBRARIES})
756 + set_target_properties(ceph-mgr PROPERTIES
757 + POSITION_INDEPENDENT_CODE ${EXE_LINKER_USE_PIE})
758 +diff --git a/src/rbd_replay/CMakeLists.txt b/src/rbd_replay/CMakeLists.txt
759 +index e9d3804c5f..5c6eb58de1 100644
760 +--- a/src/rbd_replay/CMakeLists.txt
761 ++++ b/src/rbd_replay/CMakeLists.txt
762 +@@ -36,7 +36,7 @@ if(HAVE_BABELTRACE)
763 + global
764 + babeltrace
765 + babeltrace-ctf
766 +- Boost::date_time
767 ++ boost_date_time
768 + )
769 + install(TARGETS rbd-replay-prep DESTINATION bin)
770 + endif(HAVE_BABELTRACE)
771 +diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt
772 +index d184c783de..00740331e3 100644
773 +--- a/src/rgw/CMakeLists.txt
774 ++++ b/src/rgw/CMakeLists.txt
775 +@@ -203,7 +203,7 @@ if(WITH_CURL_OPENSSL)
776 + endif()
777 +
778 + if(WITH_BOOST_CONTEXT)
779 +- target_link_libraries(rgw_a PRIVATE Boost::coroutine Boost::context)
780 ++ target_link_libraries(rgw_a PRIVATE boost_coroutine boost_context)
781 + endif()
782 +
783 + set(rgw_libs rgw_a)
784 +@@ -354,7 +354,7 @@ if(WITH_RADOSGW_AMQP_ENDPOINT)
785 + target_link_libraries(rgw_admin_user PRIVATE RabbitMQ::RabbitMQ)
786 + endif()
787 + if(WITH_BOOST_CONTEXT)
788 +- target_link_libraries(rgw_admin_user PRIVATE Boost::coroutine Boost::context)
789 ++ target_link_libraries(rgw_admin_user PRIVATE boost_coroutine boost_context)
790 + endif()
791 +
792 + if(WITH_TESTS)
793 +diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
794 +index 5dcee1694d..60743be698 100644
795 +--- a/src/test/CMakeLists.txt
796 ++++ b/src/test/CMakeLists.txt
797 +@@ -159,7 +159,7 @@ add_executable(ceph_omapbench
798 + )
799 + target_link_libraries(ceph_omapbench
800 + librados
801 +- Boost::program_options
802 ++ boost_program_options
803 + global
804 + ${BLKID_LIBRARIES}
805 + ${CMAKE_DL_LIBS}
806 +diff --git a/src/test/common/CMakeLists.txt b/src/test/common/CMakeLists.txt
807 +index 71fb77cda9..aff8fb6565 100644
808 +--- a/src/test/common/CMakeLists.txt
809 ++++ b/src/test/common/CMakeLists.txt
810 +@@ -315,8 +315,8 @@ add_ceph_unittest(unittest_hobject)
811 +
812 + add_executable(unittest_async_completion test_async_completion.cc)
813 + add_ceph_unittest(unittest_async_completion)
814 +-target_link_libraries(unittest_async_completion Boost::system)
815 ++target_link_libraries(unittest_async_completion boost_system)
816 +
817 + add_executable(unittest_async_shared_mutex test_async_shared_mutex.cc)
818 + add_ceph_unittest(unittest_async_shared_mutex)
819 +-target_link_libraries(unittest_async_shared_mutex ceph-common Boost::system)
820 ++target_link_libraries(unittest_async_shared_mutex ceph-common boost_system)
821 +diff --git a/src/test/erasure-code/CMakeLists.txt b/src/test/erasure-code/CMakeLists.txt
822 +index 721f6c3675..1cd9635c77 100644
823 +--- a/src/test/erasure-code/CMakeLists.txt
824 ++++ b/src/test/erasure-code/CMakeLists.txt
825 +@@ -2,15 +2,15 @@
826 + add_executable(ceph_erasure_code_benchmark
827 + ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
828 + ceph_erasure_code_benchmark.cc)
829 +-target_link_libraries(ceph_erasure_code_benchmark ceph-common Boost::program_options global ${CMAKE_DL_LIBS})
830 ++target_link_libraries(ceph_erasure_code_benchmark ceph-common boost_program_options global ${CMAKE_DL_LIBS})
831 + install(TARGETS ceph_erasure_code_benchmark
832 + DESTINATION bin)
833 +
834 + add_executable(ceph_erasure_code_non_regression ceph_erasure_code_non_regression.cc)
835 +-target_link_libraries(ceph_erasure_code_non_regression ceph-common Boost::program_options global ${CMAKE_DL_LIBS})
836 ++target_link_libraries(ceph_erasure_code_non_regression ceph-common boost_program_options global ${CMAKE_DL_LIBS})
837 +
838 + add_executable(ceph_erasure_code ceph_erasure_code.cc)
839 +-target_link_libraries(ceph_erasure_code ceph-common Boost::program_options global ${CMAKE_DL_LIBS})
840 ++target_link_libraries(ceph_erasure_code ceph-common boost_program_options global ${CMAKE_DL_LIBS})
841 + install(TARGETS ceph_erasure_code
842 + DESTINATION bin)
843 +
844 +diff --git a/src/test/lazy-omap-stats/CMakeLists.txt b/src/test/lazy-omap-stats/CMakeLists.txt
845 +index fad71f135c..06a3d2d929 100644
846 +--- a/src/test/lazy-omap-stats/CMakeLists.txt
847 ++++ b/src/test/lazy-omap-stats/CMakeLists.txt
848 +@@ -4,7 +4,7 @@ add_executable(ceph_test_lazy_omap_stats
849 + main.cc
850 + lazy_omap_stats_test.cc)
851 + target_link_libraries(ceph_test_lazy_omap_stats
852 +- librados ${UNITTEST_LIBS} Boost::system)
853 ++ librados ${UNITTEST_LIBS} boost_system)
854 + install(TARGETS
855 + ceph_test_lazy_omap_stats
856 + DESTINATION ${CMAKE_INSTALL_BINDIR})
857 +diff --git a/src/test/librados/CMakeLists.txt b/src/test/librados/CMakeLists.txt
858 +index 4fc53d2406..e6304394f8 100644
859 +--- a/src/test/librados/CMakeLists.txt
860 ++++ b/src/test/librados/CMakeLists.txt
861 +@@ -62,7 +62,7 @@ add_executable(ceph_test_rados_api_asio asio.cc)
862 + target_link_libraries(ceph_test_rados_api_asio global
863 + librados ${UNITTEST_LIBS})
864 + if(WITH_BOOST_CONTEXT)
865 +- target_link_libraries(ceph_test_rados_api_asio Boost::coroutine Boost::context)
866 ++ target_link_libraries(ceph_test_rados_api_asio boost_coroutine boost_context)
867 + endif()
868 +
869 + add_executable(ceph_test_rados_api_list
870 +@@ -132,7 +132,7 @@ add_executable(ceph_test_rados_api_tier_pp
871 + tier_cxx.cc
872 + $<TARGET_OBJECTS:unit-main>)
873 + target_link_libraries(ceph_test_rados_api_tier_pp
874 +- librados global ${UNITTEST_LIBS} Boost::system radostest-cxx)
875 ++ librados global ${UNITTEST_LIBS} boost_system radostest-cxx)
876 +
877 + add_executable(ceph_test_rados_api_snapshots
878 + snapshots.cc)
879 +diff --git a/src/test/librbd/CMakeLists.txt b/src/test/librbd/CMakeLists.txt
880 +index 3c3e9db6c1..2c208c1a4f 100644
881 +--- a/src/test/librbd/CMakeLists.txt
882 ++++ b/src/test/librbd/CMakeLists.txt
883 +@@ -27,7 +27,7 @@ target_link_libraries(rbd_test PRIVATE
884 + radostest
885 + radostest-cxx
886 + librados
887 +- Boost::thread
888 ++ boost_thread
889 + GMock::GMock
890 + GTest::GTest)
891 +
892 +diff --git a/src/test/mon/CMakeLists.txt b/src/test/mon/CMakeLists.txt
893 +index b712e95be7..6225ff3320 100644
894 +--- a/src/test/mon/CMakeLists.txt
895 ++++ b/src/test/mon/CMakeLists.txt
896 +@@ -44,7 +44,7 @@ target_link_libraries(unittest_mon_montypes mon global)
897 + add_executable(ceph_test_mon_memory_target
898 + test_mon_memory_target.cc
899 + )
900 +-target_link_libraries(ceph_test_mon_memory_target ${UNITTEST_LIBS} Boost::system)
901 ++target_link_libraries(ceph_test_mon_memory_target ${UNITTEST_LIBS} boost_system)
902 + install(TARGETS ceph_test_mon_memory_target
903 + DESTINATION ${CMAKE_INSTALL_BINDIR})
904 +
905 +diff --git a/src/test/rgw/CMakeLists.txt b/src/test/rgw/CMakeLists.txt
906 +index cde6348d57..e6ce738834 100644
907 +--- a/src/test/rgw/CMakeLists.txt
908 ++++ b/src/test/rgw/CMakeLists.txt
909 +@@ -144,7 +144,7 @@ add_ceph_unittest(unittest_rgw_dmclock_scheduler)
910 + target_link_libraries(unittest_rgw_dmclock_scheduler radosgw_a dmclock)
911 + if(WITH_BOOST_CONTEXT)
912 + target_compile_definitions(unittest_rgw_dmclock_scheduler PRIVATE BOOST_COROUTINES_NO_DEPRECATION_WARNING)
913 +- target_link_libraries(unittest_rgw_dmclock_scheduler Boost::coroutine Boost::context)
914 ++ target_link_libraries(unittest_rgw_dmclock_scheduler boost_coroutine boost_context)
915 + endif()
916 +
917 + if(WITH_RADOSGW_AMQP_ENDPOINT)
918 +diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
919 +index d31f3d2408..6945018b11 100644
920 +--- a/src/tools/CMakeLists.txt
921 ++++ b/src/tools/CMakeLists.txt
922 +@@ -35,20 +35,20 @@ install(PROGRAMS
923 + endif(WITH_TESTS)
924 +
925 + add_executable(ceph-osdomap-tool ceph_osdomap_tool.cc)
926 +-target_link_libraries(ceph-osdomap-tool os global Boost::program_options)
927 ++target_link_libraries(ceph-osdomap-tool os global boost_program_options)
928 + install(TARGETS ceph-osdomap-tool DESTINATION bin)
929 +
930 + add_executable(ceph-monstore-tool
931 + ceph_monstore_tool.cc
932 + ../mgr/mgr_commands.cc)
933 +-target_link_libraries(ceph-monstore-tool os global Boost::program_options)
934 ++target_link_libraries(ceph-monstore-tool os global boost_program_options)
935 + install(TARGETS ceph-monstore-tool DESTINATION bin)
936 +
937 + add_executable(ceph-objectstore-tool
938 + ceph_objectstore_tool.cc
939 + rebuild_mondb.cc
940 + RadosDump.cc)
941 +-target_link_libraries(ceph-objectstore-tool osd os global Boost::program_options ${CMAKE_DL_LIBS})
942 ++target_link_libraries(ceph-objectstore-tool osd os global boost_program_options ${CMAKE_DL_LIBS})
943 + if(WITH_FUSE)
944 + target_link_libraries(ceph-objectstore-tool ${FUSE_LIBRARIES})
945 + endif(WITH_FUSE)