From 7af6deb14349359b9987af6906a9113e319c7851 Mon Sep 17 00:00:00 2001 From: Andrei-Fabian-Pop Date: Wed, 12 Aug 2026 14:35:28 +0300 Subject: [PATCH] ci: Fix find_package(Boost) for Ubuntu 26.04 Boost.System is header-only since Boost 1.19 and its compiled library was removed in Boost 1.89, so it must not be requested as a component. This is especially visible in Ubuntu 26.04 since it is the latest apt version. Signed-off-by: Andrei-Fabian-Pop --- gui/CMakeLists.txt | 4 +++- packages/m2k/plugins/m2k/CMakeLists.txt | 5 +++-- packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index e781f322ed..bc3fbe2572 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -111,7 +111,9 @@ find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets Xml Svg REQUIRED) find_package(KDDockWidgets QUIET) add_definitions(-DBOOST_ALL_DYN_LINK) -find_package(Boost COMPONENTS system filesystem thread chrono REQUIRED) +# Boost.System is header-only since Boost 1.69 and its compiled library was removed in Boost 1.89, so it must not be +# requested as a component. +find_package(Boost 1.69 COMPONENTS filesystem thread chrono REQUIRED) message(STATUS "Building: " ${PROJECT_NAME}) add_library(${PROJECT_NAME} SHARED ${PROJECT_SOURCES} ${PROJECT_RESOURCES}) diff --git a/packages/m2k/plugins/m2k/CMakeLists.txt b/packages/m2k/plugins/m2k/CMakeLists.txt index b800b43e89..0f871f2c11 100644 --- a/packages/m2k/plugins/m2k/CMakeLists.txt +++ b/packages/m2k/plugins/m2k/CMakeLists.txt @@ -78,8 +78,9 @@ set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH};/usr/local/lib/cmake) find_package(Qt${QT_VERSION_MAJOR} COMPONENTS ${SCOPY_QT_COMPONENTS} REQUIRED) find_package(libm2k REQUIRED) -find_package(Boost COMPONENTS system filesystem thread chrono REQUIRED) # workaround for Gnuradio not finding -# Boost::chrono +# Boost.System is header-only since Boost 1.69 and its compiled library was removed in Boost 1.89, so it must not be +# requested as a component. +find_package(Boost 1.69 COMPONENTS filesystem thread chrono REQUIRED) find_package( Gnuradio "3.10" REQUIRED COMPONENTS runtime diff --git a/packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt b/packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt index acfbcb1dcf..9e9eba5d85 100644 --- a/packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt +++ b/packages/m2k/plugins/m2k/m2k-gui/CMakeLists.txt @@ -106,7 +106,9 @@ if(SCOPY_ENABLE_SIGROK_GUI) endif() add_definitions(-DBOOST_ALL_DYN_LINK) -find_package(Boost COMPONENTS system filesystem thread chrono REQUIRED) +# Boost.System is header-only since Boost 1.69 and its compiled library was removed in Boost 1.89, so it must not be +# requested as a component. +find_package(Boost 1.69 COMPONENTS filesystem thread chrono REQUIRED) message(STATUS "Building " ${PROJECT_NAME}) add_library(${PROJECT_NAME} SHARED ${PROJECT_SOURCES})