Skip to content

Commit 8e07125

Browse files
build(deps): Migrate Boost and msgpack-cxx dependencies to task-based installation (fixes #1243); Drop required Boost version back to 1.81; Add missing ZStd CMake target links. (#1254)
Co-authored-by: kirkrodrigues <[email protected]>
1 parent 4fa8a55 commit 8e07125

File tree

16 files changed

+83
-179
lines changed

16 files changed

+83
-179
lines changed

components/core/CMakeLists.txt

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,18 @@ if(CLP_NEED_BOOST)
157157
if(CLP_USE_STATIC_LIBS)
158158
set(Boost_USE_STATIC_LIBS ON)
159159
endif()
160-
find_package(Boost 1.89 REQUIRED iostreams program_options filesystem regex url)
161-
if(Boost_FOUND)
162-
message(STATUS "Found Boost ${Boost_VERSION}")
163-
else()
164-
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for Boost")
165-
endif()
160+
find_package(
161+
Boost
162+
1.81...1.88
163+
REQUIRED
164+
filesystem
165+
iostreams
166+
program_options
167+
regex
168+
system
169+
url
170+
)
171+
message(STATUS "Found Boost ${Boost_VERSION}")
166172
endif()
167173

168174
if(CLP_NEED_CATCH2)
@@ -271,14 +277,10 @@ if(CLP_NEED_MONGOCXX)
271277
endif()
272278
endif()
273279

274-
# Find and setup msgpack
280+
# Find and setup msgpack-cxx
275281
if(CLP_NEED_MSGPACKCXX)
276282
find_package(msgpack-cxx 7.0.0 REQUIRED)
277-
if(msgpack-cxx_FOUND)
278-
message(STATUS "Found msgpack-cxx ${msgpack-cxx_VERSION}")
279-
else()
280-
message(FATAL_ERROR "Could not find msgpack-cxx")
281-
endif()
283+
message(STATUS "Found msgpack-cxx ${msgpack-cxx_VERSION}")
282284
endif()
283285

284286
find_package(Threads REQUIRED)
@@ -731,7 +733,11 @@ if(CLP_BUILD_TESTING)
731733
target_link_libraries(unitTest
732734
PRIVATE
733735
absl::flat_hash_map
734-
Boost::filesystem Boost::iostreams Boost::program_options Boost::regex Boost::url
736+
Boost::filesystem
737+
Boost::iostreams
738+
Boost::program_options
739+
Boost::regex
740+
Boost::url
735741
Catch2::Catch2WithMain
736742
${CURL_LIBRARIES}
737743
clp_s::search::ast
@@ -745,6 +751,7 @@ if(CLP_BUILD_TESTING)
745751
LibLZMA::LibLZMA
746752
MariaDBClient::MariaDBClient
747753
${MONGOCXX_TARGET}
754+
msgpack-cxx
748755
nlohmann_json::nlohmann_json
749756
simdjson::simdjson
750757
spdlog::spdlog

components/core/cmake/Options/options.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ function(set_clp_s_json_constructor_dependencies)
284284
CLP_NEED_FMT
285285
CLP_NEED_MONGOCXX
286286
CLP_NEED_SPDLOG
287+
CLP_NEED_ZSTD
287288
)
288289
endfunction()
289290

components/core/src/clp/clg/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ if(CLP_BUILD_EXECUTABLES)
144144
fmt::fmt
145145
log_surgeon::log_surgeon
146146
MariaDBClient::MariaDBClient
147+
msgpack-cxx
147148
nlohmann_json::nlohmann_json
148149
spdlog::spdlog
149150
${sqlite_LIBRARY_DEPENDENCIES}

components/core/src/clp/clp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ if(CLP_BUILD_EXECUTABLES)
185185
${sqlite_LIBRARY_DEPENDENCIES}
186186
LibArchive::LibArchive
187187
MariaDBClient::MariaDBClient
188+
msgpack-cxx
188189
nlohmann_json::nlohmann_json
189190
${STD_FS_LIBS}
190191
clp::string_utils

components/core/src/clp_s/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set(
1818
../clp/cli_utils.hpp
1919
../clp/Defs.h
2020
../clp/EncodedVariableInterpreter.cpp
21-
../clp/EncodedVariableInterpreter.hpp
21+
../clp/EncodedVariableInterpreter.hpp
2222
../clp/ErrorCode.hpp
2323
../clp/ffi/encoding_methods.cpp
2424
../clp/ffi/encoding_methods.hpp
@@ -69,15 +69,15 @@ set(
6969
../clp/ir/parsing.inc
7070
../clp/ir/types.hpp
7171
../clp/LogSurgeonReader.cpp
72-
../clp/LogSurgeonReader.hpp
72+
../clp/LogSurgeonReader.hpp
7373
../clp/NetworkReader.cpp
7474
../clp/NetworkReader.hpp
7575
../clp/networking/socket_utils.cpp
7676
../clp/networking/socket_utils.hpp
7777
../clp/Query.cpp
7878
../clp/Query.hpp
7979
../clp/QueryToken.cpp
80-
../clp/QueryToken.hpp
80+
../clp/QueryToken.hpp
8181
../clp/ReaderInterface.cpp
8282
../clp/ReaderInterface.hpp
8383
../clp/ReadOnlyMemoryMappedFile.cpp
@@ -115,6 +115,7 @@ if(CLP_BUILD_CLP_S_CLP_DEPENDENCIES)
115115
clp::string_utils
116116
log_surgeon::log_surgeon
117117
ystdlib::containers
118+
${zstd_TARGET}
118119
PRIVATE
119120
Boost::regex
120121
${CURL_LIBRARIES}
@@ -124,7 +125,6 @@ if(CLP_BUILD_CLP_S_CLP_DEPENDENCIES)
124125
OpenSSL::Crypto
125126
spdlog::spdlog
126127
ystdlib::error_handling
127-
${zstd_TARGET}
128128
)
129129
endif()
130130

@@ -354,6 +354,7 @@ if(CLP_BUILD_CLP_S_JSONCONSTRUCTOR)
354354
clp_s_json_constructor
355355
PUBLIC
356356
clp_s::archive_reader
357+
${zstd_TARGET}
357358
PRIVATE
358359
fmt::fmt
359360
${MONGOCXX_TARGET}

components/core/src/clp_s/indexer/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set(
1515
../../clp/database_utils.hpp
1616
../../clp/Defs.h
1717
../../clp/EncodedVariableInterpreter.cpp
18-
../../clp/EncodedVariableInterpreter.hpp
18+
../../clp/EncodedVariableInterpreter.hpp
1919
../../clp/ErrorCode.hpp
2020
../../clp/ffi/encoding_methods.cpp
2121
../../clp/ffi/encoding_methods.hpp
@@ -118,6 +118,7 @@ if(CLP_BUILD_EXECUTABLES)
118118
clp::string_utils
119119
date::date
120120
MariaDBClient::MariaDBClient
121+
msgpack-cxx
121122
nlohmann_json::nlohmann_json
122123
OpenSSL::Crypto
123124
simdjson::simdjson

components/core/src/reducer/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ if(CLP_BUILD_EXECUTABLES)
4444
target_link_libraries(reducer-server
4545
PRIVATE
4646
Boost::program_options
47+
Boost::system
4748
clp::string_utils
4849
fmt::fmt
4950
${MONGOCXX_TARGET}

components/core/tools/scripts/lib_install/centos-stream-9/install-packages-from-source.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@ set -u
99
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
1010
lib_install_scripts_dir="${script_dir}/.."
1111

12-
# NOTE: The remaining installation scripts depend on boost, so we install it beforehand.
13-
"${lib_install_scripts_dir}/install-boost.sh" 1.89.0
14-
1512
"${lib_install_scripts_dir}/liblzma.sh" 5.8.1
16-
"${lib_install_scripts_dir}/msgpack.sh" 7.0.0

components/core/tools/scripts/lib_install/install-boost.sh

Lines changed: 0 additions & 48 deletions
This file was deleted.

components/core/tools/scripts/lib_install/macos/install-all.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@ if ! command -v uv ; then
2727
fi
2828

2929
brew install \
30-
boost \
3130
coreutils \
3231
gcc \
3332
java11 \
3433
libarchive \
3534
llvm@16 \
3635
lz4 \
3736
mariadb-connector-c \
38-
msgpack-cxx \
3937
xz \
4038
zstd
4139

0 commit comments

Comments
 (0)