Author: Jonas Jelten <jj@ubuntu.com>
Date: Thu, 12 Feb 2026 17:04:41 +0100
Subject: remove boost-system dependency

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+bug/2141453
Forwarded: yes, https://github.com/paoloshasta/shasta/pull/61

---
 dynamicExecutable/CMakeLists.txt | 8 ++------
 dynamicLibrary/CMakeLists.txt    | 4 ----
 staticExecutable/CMakeLists.txt  | 8 ++------
 staticLibrary/CMakeLists.txt     | 4 ----
 4 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/dynamicExecutable/CMakeLists.txt b/dynamicExecutable/CMakeLists.txt
index 5f04441..e8f3b25 100644
--- a/dynamicExecutable/CMakeLists.txt
+++ b/dynamicExecutable/CMakeLists.txt
@@ -36,10 +36,6 @@ endif(BUILD_NATIVE)
 # Build id.
 add_definitions(-DBUILD_ID=${BUILD_ID})
 
-# Definitions needed to eliminate dependency on the boost system library.
-add_definitions(-DBOOST_SYSTEM_NO_DEPRECATED)
-add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
-
 # This is needed to avoid some Boost warnings about deprecated messages.
 # We canot fix this in Shasta as it is a Boost problem.
 # It can be removed if Boost is fixed.
@@ -66,13 +62,13 @@ if(X86_64)
     target_link_libraries(
         shastaDynamicExecutable
         shastaDynamicLibrary
-        atomic boost_system boost_program_options boost_chrono boost_serialization spoa png z 
+        atomic boost_program_options boost_chrono boost_serialization spoa png z 
         lapack blas quadmath pthread)
 else(X86_64)
     target_link_libraries(
         shastaDynamicExecutable
         shastaDynamicLibrary
-        atomic boost_system boost_program_options boost_chrono boost_serialization spoa png z 
+        atomic boost_program_options boost_chrono boost_serialization spoa png z 
         lapack blas pthread)
 endif(X86_64)
 
diff --git a/dynamicLibrary/CMakeLists.txt b/dynamicLibrary/CMakeLists.txt
index 72b9bc6..b50312e 100644
--- a/dynamicLibrary/CMakeLists.txt
+++ b/dynamicLibrary/CMakeLists.txt
@@ -37,10 +37,6 @@ endif(BUILD_NATIVE)
 # Build id.
 add_definitions(-DBUILD_ID=${BUILD_ID})
 
-# Definitions needed to eliminate dependency on the boost system library.
-add_definitions(-DBOOST_SYSTEM_NO_DEPRECATED)
-add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
-
 # This is needed to avoid some Boost warnings about deprecated messages.
 # We canot fix this in Shasta as it is a Boost problem.
 # It can be removed if Boost is fixed.
diff --git a/staticExecutable/CMakeLists.txt b/staticExecutable/CMakeLists.txt
index af89d6e..56bc7c2 100644
--- a/staticExecutable/CMakeLists.txt
+++ b/staticExecutable/CMakeLists.txt
@@ -32,10 +32,6 @@ endif(BUILD_NATIVE)
 # Build id.
 add_definitions(-DBUILD_ID=${BUILD_ID})
 
-# Definitions needed to eliminate dependency on the boost system library.
-add_definitions(-DBOOST_SYSTEM_NO_DEPRECATED)
-add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
-
 # This is needed to avoid some Boost warnings about deprecated messages.
 # We canot fix this in Shasta as it is a Boost problem.
 # It can be removed if Boost is fixed.
@@ -61,14 +57,14 @@ if(X86_64)
     target_link_libraries(
         shastaStaticExecutable
         shastaStaticLibrary
-        atomic boost_system boost_program_options boost_chrono boost_serialization  spoa png z
+        atomic boost_program_options boost_chrono boost_serialization  spoa png z
         lapack blas quadmath
         -Wl,--whole-archive -lpthread -Wl,--no-whole-archive)
 else(X86_64)
     target_link_libraries(
         shastaStaticExecutable
         shastaStaticLibrary
-        atomic boost_system boost_program_options boost_chrono boost_serialization spoa png z
+        atomic boost_program_options boost_chrono boost_serialization spoa png z
         lapack blas
         -Wl,--whole-archive -lpthread -Wl,--no-whole-archive)
 endif(X86_64) 
diff --git a/staticLibrary/CMakeLists.txt b/staticLibrary/CMakeLists.txt
index 71a3d04..05e5665 100644
--- a/staticLibrary/CMakeLists.txt
+++ b/staticLibrary/CMakeLists.txt
@@ -32,10 +32,6 @@ endif(BUILD_NATIVE)
 # Build id.
 add_definitions(-DBUILD_ID=${BUILD_ID})
 
-# Definitions needed to eliminate dependency on the boost system library.
-add_definitions(-DBOOST_SYSTEM_NO_DEPRECATED)
-add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY)
-
 # This is needed to avoid some Boost warnings about deprecated messages.
 # We canot fix this in Shasta as it is a Boost problem.
 # It can be removed if Boost is fixed.
