# HG changeset patch # User Alain Mazy # Date 1793787808 -3600 # Node ID 0adcea89191f2db999c2f43513871a63fc30fb63 # Parent 5bfcb432ad3d46037323ed48b48bd140ae2c472c updated boost to 1.92 to hopefully solve compilation issues on recent macos diff -r 5bfcb432ad3d -r 0adcea89191f NEWS --- a/NEWS Thu Oct 22 16:25:27 2026 +0200 +++ b/NEWS Wed Nov 04 11:23:28 2026 +0100 @@ -52,6 +52,7 @@ * Upgraded dependencies for static builds: - dcmtk 3.7.1 - openssl 3.5.9 (LTS branch) + - boost 1.92.0 Version 1.13.0 (2026-08-15) diff -r 5bfcb432ad3d -r 0adcea89191f OrthancFramework/Resources/CMake/BoostConfiguration.cmake --- a/OrthancFramework/Resources/CMake/BoostConfiguration.cmake Thu Oct 22 16:25:27 2026 +0200 +++ b/OrthancFramework/Resources/CMake/BoostConfiguration.cmake Wed Nov 04 11:23:28 2026 +0100 @@ -100,10 +100,10 @@ ## Parameters for static compilation of Boost ## - set(BOOST_NAME boost_1_89_0) - set(BOOST_VERSION 1.89.0) - set(BOOST_BCP_SUFFIX bcpdigest-1.12.11) - set(BOOST_MD5 "af98f0ba3507cb611e78f96fe8bd0a7c") + set(BOOST_NAME boost_1_92_0) + set(BOOST_VERSION 1.92.0) + set(BOOST_BCP_SUFFIX bcpdigest-1.13.1) + set(BOOST_MD5 "010ba1178dfd94495747d00b99421bbf") set(BOOST_URL "${THIRD_PARTY_DOWNLOADS_ROOT_URL}/${BOOST_NAME}_${BOOST_BCP_SUFFIX}.tar.gz") set(BOOST_SOURCES_DIR ${CMAKE_BINARY_DIR}/${BOOST_NAME}) diff -r 5bfcb432ad3d -r 0adcea89191f OrthancFramework/Resources/CMake/BoostConfiguration.sh --- a/OrthancFramework/Resources/CMake/BoostConfiguration.sh Thu Oct 22 16:25:27 2026 +0200 +++ b/OrthancFramework/Resources/CMake/BoostConfiguration.sh Wed Nov 04 11:23:28 2026 +0100 @@ -29,9 +29,10 @@ ## - Orthanc between 1.12.3 and 1.12.4: Boost 1.85.0 ## - Orthanc between 1.12.5 and 1.12.10: Boost 1.86.0 ## - Orthanc > 1.12.10: Boost 1.89.0 +## - Orthanc > 1.13.1: Boost 1.92.0 -BOOST_VERSION=1_89_0 -ORTHANC_VERSION=1.12.11 +BOOST_VERSION=1_92_0 +ORTHANC_VERSION=1.13.1 rm -rf /tmp/boost_${BOOST_VERSION} rm -rf /tmp/bcp/boost_${BOOST_VERSION} diff -r 5bfcb432ad3d -r 0adcea89191f OrthancFramework/Resources/Patches/boost-1.92.0-emscripten.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OrthancFramework/Resources/Patches/boost-1.92.0-emscripten.patch Wed Nov 04 11:23:28 2026 +0100 @@ -0,0 +1,116 @@ +diff -urN boost_1_92_0.orig/libs/locale/src/shared/date_time.cpp boost_1_92_0/libs/locale/src/shared/date_time.cpp +--- boost_1_92_0.orig/libs/locale/src/shared/date_time.cpp 2026-11-04 10:49:20.000000000 +0100 ++++ boost_1_92_0/libs/locale/src/shared/date_time.cpp 2026-11-04 11:04:26.149779603 +0100 +@@ -12,8 +12,10 @@ + #include + #include + #include +-#include +-#include ++#if !defined(__EMSCRIPTEN__) ++# include ++# include ++#endif + #include + + namespace boost { namespace locale { +@@ -400,6 +402,7 @@ + return impl_->get_option(abstract_calendar::is_dst) != 0; + } + ++#if !defined(__EMSCRIPTEN__) + namespace time_zone { + boost::mutex& tz_mutex() + { +@@ -422,7 +425,7 @@ + return boost::exchange(tz_id(), new_id); + } + } // namespace time_zone +- ++#endif + }} // namespace boost::locale + + // boostinspect:nominmax +diff -urN boost_1_92_0.orig/libs/locale/src/shared/generator.cpp boost_1_92_0/libs/locale/src/shared/generator.cpp +--- boost_1_92_0.orig/libs/locale/src/shared/generator.cpp 2026-11-04 10:49:20.000000000 +0100 ++++ boost_1_92_0/libs/locale/src/shared/generator.cpp 2026-11-04 11:05:17.822446608 +0100 +@@ -8,8 +8,10 @@ + #include + #include + #include +-#include +-#include ++#if !defined(__EMSCRIPTEN__) ++# include ++# include ++#endif + #include + #include + #include +@@ -22,7 +24,9 @@ + {} + + mutable std::map cached; ++#if !defined(__EMSCRIPTEN__) + mutable boost::mutex cached_lock; ++#endif + + category_t cats; + char_facet_t chars; +@@ -100,7 +104,9 @@ + std::locale generator::generate(const std::locale& base, const std::string& id) const + { + if(d->caching_enabled) { ++#if !defined(__EMSCRIPTEN__) + boost::unique_lock guard(d->cached_lock); ++#endif + const auto p = d->cached.find(id); + if(p != d->cached.end()) + return p->second; +diff -urN boost_1_92_0.orig/libs/locale/src/shared/localization_backend.cpp boost_1_92_0/libs/locale/src/shared/localization_backend.cpp +--- boost_1_92_0.orig/libs/locale/src/shared/localization_backend.cpp 2026-11-04 10:49:20.000000000 +0100 ++++ boost_1_92_0/libs/locale/src/shared/localization_backend.cpp 2026-11-04 11:06:12.247295617 +0100 +@@ -5,8 +5,10 @@ + // https://www.boost.org/LICENSE_1_0.txt + + #include +-#include +-#include ++#if !defined(__EMSCRIPTEN__) ++# include ++# include ++#endif + #include + #include + #include +@@ -211,11 +213,13 @@ + return mgr; + } + ++#if !defined(__EMSCRIPTEN__) + boost::mutex& localization_backend_manager_mutex() + { + static boost::mutex the_mutex; + return the_mutex; + } ++#endif + localization_backend_manager& localization_backend_manager_global() + { + static localization_backend_manager the_manager = make_default_backend_mgr(); +@@ -225,12 +229,16 @@ + + localization_backend_manager localization_backend_manager::global() + { ++#if !defined(__EMSCRIPTEN__) + boost::unique_lock lock(localization_backend_manager_mutex()); ++#endif + return localization_backend_manager_global(); + } + localization_backend_manager localization_backend_manager::global(const localization_backend_manager& in) + { ++#if !defined(__EMSCRIPTEN__) + boost::unique_lock lock(localization_backend_manager_mutex()); ++#endif + return exchange(localization_backend_manager_global(), in); + } +