gnucash stable: Don't try to find boost::system in boost 1.89.0 and later

John Ralls jralls at code.gnucash.org
Thu Oct 23 19:49:34 EDT 2025


Updated	 via  https://github.com/Gnucash/gnucash/commit/7e53cbad (commit)
	from  https://github.com/Gnucash/gnucash/commit/00149932 (commit)



commit 7e53cbad4d9b6b68a69d7b4fabc33849dd77c9d0
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Oct 23 13:48:51 2025 -0700

    Don't try to find boost::system in boost 1.89.0 and later
    
    They made it header-only so there's nothing to find.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a527cfdf46..eb99bbe6c1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -599,7 +599,15 @@ set (Boost_FIND_QUIETLY ON)
 if (NOT DEFINED ${BOOST_ROOT})
   set(BOOST_ROOT $ENV{BOOST_ROOT})
 endif()
-find_package (Boost 1.67.0 COMPONENTS date_time filesystem locale program_options regex system)
+find_package (Boost 1.67.0 REQUIRED)
+
+if (Boost_FOUND)
+ if (Boost_VERSION VERSION_LESS "1.89.0")
+  find_package(Boost 1.67.0  COMPONENTS date_time filesystem locale program_options regex system)
+ else()
+  find_package(Boost 1.67.0  COMPONENTS date_time filesystem locale program_options regex)
+ endif()
+endif()
 
 if (Boost_FOUND)
   include_directories(${Boost_INCLUDE_DIRS})
diff --git a/util/ci/actions/archlinux-test/Dockerfile b/util/ci/actions/archlinux-test/Dockerfile
index 4254966ed4..6638e70a4f 100644
--- a/util/ci/actions/archlinux-test/Dockerfile
+++ b/util/ci/actions/archlinux-test/Dockerfile
@@ -2,7 +2,7 @@ from archlinux:latest
 
 run echo "NoExtract = !*locale*/fr*/* !usr/share/i18n/locales/fr_FR*" >> /etc/pacman.conf
 
-run pacman -Syu --quiet --noconfirm glibc gcc cmake make boost python3 pkg-config gettext gtk3 guile git ninja gtest gmock sqlite3 webkit2gtk swig gwenhywfar aqbanking intltool libxslt libofx postgresql-libs libmariadbclient libdbi libdbi-drivers wayland-protocols > /dev/null
+run pacman -Syu --noconfirm glibc gcc cmake make boost python3 pkg-config gettext gtk3 guile git ninja gtest gmock sqlite3 webkit2gtk swig gwenhywfar aqbanking intltool libxslt libofx postgresql-libs libmariadbclient libdbi libdbi-drivers wayland-protocols > /dev/null
 
 run echo en_US.UTF-8 UTF-8 > /etc/locale.gen
 run echo en_GB.UTF-8 UTF-8 >> /etc/locale.gen



Summary of changes:
 CMakeLists.txt                            | 10 +++++++++-
 util/ci/actions/archlinux-test/Dockerfile |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list