Description: Fix build with Boost 1.92
Bug-Debian: https://bugs.debian.org/1150310
Author: Jakob Haufe <sur5r@debian.org>
Last-Update: Nov, 04 2026 21:31:40 +0100
Forwarded: no

Index: schroot/test/CMakeLists.txt
===================================================================
--- schroot.orig/test/CMakeLists.txt
+++ schroot/test/CMakeLists.txt
@@ -85,6 +85,7 @@ if (BUILD_TESTS)
   target_link_libraries(sbuild-chroot-chroot
                         sbuild
                         ${REGEX_LIBRARY}
+                        ${Boost_LIBRARIES}
                         testmain)
   add_test(sbuild-chroot-chroot sbuild-chroot-chroot)
 endif (BUILD_TESTS)
@@ -142,8 +143,7 @@ if (BUILD_TESTS)
   add_executable(sbuild-run-parts ${sbuild_run_parts_sources})
   target_link_libraries(sbuild-run-parts
                         sbuild
-                        ${Boost_FILESYSTEM_LIBRARY_RELEASE}
-                        ${Boost_SYSTEM_LIBRARY_RELEASE}
+                        ${Boost_LIBRARIES}
                         testmain)
   add_test(sbuild-run-parts sbuild-run-parts)
 endif (BUILD_TESTS)
Index: schroot/bin/schroot/CMakeLists.txt
===================================================================
--- schroot.orig/bin/schroot/CMakeLists.txt
+++ schroot/bin/schroot/CMakeLists.txt
@@ -34,7 +34,7 @@ set(schroot_sources
 
 include_directories(${PROJECT_BINARY_DIR}/bin ${PROJECT_SOURCE_DIR}/bin)
 add_executable(schroot ${schroot_sources})
-target_link_libraries(schroot sbuild schroot-base schroot-common)
+target_link_libraries(schroot sbuild schroot-base schroot-common ${Boost_LIBRARIES})
 
 install(TARGETS schroot RUNTIME
         DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}
Index: schroot/CMakeLists.txt
===================================================================
--- schroot.orig/CMakeLists.txt
+++ schroot/CMakeLists.txt
@@ -56,7 +56,6 @@ include("cmake/CompilerChecks.cmake")
 
 find_package(Threads REQUIRED)
 
-include(FindBoost)
 find_package(Boost REQUIRED
              COMPONENTS filesystem iostreams program_options regex)
 if(Boost_MAJOR_VERSION EQUAL 1 AND Boost_MINOR_VERSION LESS 69)
Index: schroot/bin/schroot-base/CMakeLists.txt
===================================================================
--- schroot.orig/bin/schroot-base/CMakeLists.txt
+++ schroot/bin/schroot-base/CMakeLists.txt
@@ -26,4 +26,4 @@ set(schroot_base_sources
     schroot-base-run.h)
 
 add_library(schroot-base STATIC ${schroot_base_sources})
-target_link_libraries(schroot-base sbuild ${Boost_PROGRAM_OPTIONS_LIBRARY_RELEASE})
+target_link_libraries(schroot-base sbuild ${Boost_LIBRARIES})
Index: schroot/bin/schroot-listmounts/CMakeLists.txt
===================================================================
--- schroot.orig/bin/schroot-listmounts/CMakeLists.txt
+++ schroot/bin/schroot-listmounts/CMakeLists.txt
@@ -24,7 +24,7 @@ set(listmounts_sources
     schroot-listmounts.cc)
 
 add_executable(schroot-listmounts ${listmounts_sources})
-target_link_libraries(schroot-listmounts sbuild schroot-base)
+target_link_libraries(schroot-listmounts sbuild schroot-base ${Boost_LIBRARIES})
 
 install(TARGETS schroot-listmounts RUNTIME
         DESTINATION ${SCHROOT_LIBEXEC_DIR})
Index: schroot/sbuild/CMakeLists.txt
===================================================================
--- schroot.orig/sbuild/CMakeLists.txt
+++ schroot/sbuild/CMakeLists.txt
@@ -212,9 +212,7 @@ target_link_libraries(sbuild
                         ${PAM_LIBRARY}
                         ${UUID_LIBRARY}
                         ${REGEX_LIBRARY}
-                        ${Boost_IOSTREAMS_LIBRARY_RELEASE}
-                        ${Boost_FILESYSTEM_LIBRARY_RELEASE}
-                        ${Boost_SYSTEM_LIBRARY_RELEASE})
+                        ${Boost_LIBRARIES})
 
 set(pkgincludedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}/sbuild")
 set(pkgincludeauthdir "${CMAKE_INSTALL_FULL_INCLUDEDIR}/sbuild")
Index: schroot/bin/schroot-mount/CMakeLists.txt
===================================================================
--- schroot.orig/bin/schroot-mount/CMakeLists.txt
+++ schroot/bin/schroot-mount/CMakeLists.txt
@@ -25,8 +25,7 @@ set(mount_sources
 
 add_executable(schroot-mount ${mount_sources})
 target_link_libraries(schroot-mount sbuild schroot-base
-                      ${Boost_FILESYSTEM_LIBRARY_RELEASE}
-                      ${Boost_SYSTEM_LIBRARY_RELEASE})
+                      ${Boost_LIBRARIES})
 
 install(TARGETS schroot-mount RUNTIME
         DESTINATION ${SCHROOT_LIBEXEC_DIR})
