# HG changeset patch # User Sebastien Jodogne # Date 1529510600 -7200 # Node ID 2c4fe62550e9a9f0e1e35023594c545f8f45a527 # Parent e0476e8cb73d2423ef572e904699ed50391395ad# Parent ee9a6cd63891a0ed3060924f371d74d6c44ae98c integration mainline->jobs diff -r e0476e8cb73d -r 2c4fe62550e9 NEWS --- a/NEWS Fri Jun 15 11:18:20 2018 +0200 +++ b/NEWS Wed Jun 20 18:03:20 2018 +0200 @@ -38,6 +38,8 @@ * Fix generation of DICOMDIR if PatientID is empty * Fix issue 25 (Deadlock with Lua scripts): The event queue is now implemented for Lua +* Upgraded dependencies for static and Windows builds: + - boost 1.67.0 Version 1.3.2 (2018-04-18) diff -r e0476e8cb73d -r 2c4fe62550e9 Resources/CMake/BoostConfiguration.cmake --- a/Resources/CMake/BoostConfiguration.cmake Fri Jun 15 11:18:20 2018 +0200 +++ b/Resources/CMake/BoostConfiguration.cmake Wed Jun 20 18:03:20 2018 +0200 @@ -53,9 +53,10 @@ ## Parameters for static compilation of Boost ## - set(BOOST_NAME boost_1_66_0) - set(BOOST_BCP_SUFFIX bcpdigest-1.3.2) - set(BOOST_MD5 "e509e66140e8f2fd4d326b0052825f52") + set(BOOST_NAME boost_1_67_0) + set(BOOST_VERSION 1.67.0) + set(BOOST_BCP_SUFFIX bcpdigest-1.4.0) + set(BOOST_MD5 "fb3535a88e72c3d4c4d06b047b8e57fe") set(BOOST_URL "http://www.orthanc-server.com/downloads/third-party/${BOOST_NAME}_${BOOST_BCP_SUFFIX}.tar.gz") set(BOOST_SOURCES_DIR ${CMAKE_BINARY_DIR}/${BOOST_NAME}) @@ -103,7 +104,7 @@ execute_process( COMMAND ${PATCH_EXECUTABLE} -p0 -N -i - ${ORTHANC_ROOT}/Resources/Patches/boost-1.66.0-linux-standard-base.patch + ${ORTHANC_ROOT}/Resources/Patches/boost-${BOOST_VERSION}-linux-standard-base.patch WORKING_DIRECTORY ${CMAKE_BINARY_DIR} RESULT_VARIABLE Failure ) diff -r e0476e8cb73d -r 2c4fe62550e9 Resources/CMake/BoostConfiguration.sh --- a/Resources/CMake/BoostConfiguration.sh Fri Jun 15 11:18:20 2018 +0200 +++ b/Resources/CMake/BoostConfiguration.sh Wed Jun 20 18:03:20 2018 +0200 @@ -18,10 +18,11 @@ ## - Orthanc between 1.1.0 and 1.2.0: Boost 1.60.0 ## - Orthanc 1.3.0: Boost 1.64.0 ## - Orthanc 1.3.1: Boost 1.65.1 -## - Orthanc >= 1.3.2: Boost 1.66.0 +## - Orthanc 1.3.2: Boost 1.66.0 +## - Orthanc >= 1.4.0: Boost 1.67.0 -BOOST_VERSION=1_66_0 -ORTHANC_VERSION=1.3.2 +BOOST_VERSION=1_67_0 +ORTHANC_VERSION=1.4.0 rm -rf /tmp/boost_${BOOST_VERSION} rm -rf /tmp/bcp/boost_${BOOST_VERSION} @@ -32,14 +33,14 @@ echo "Generating the subset..." mkdir -p /tmp/bcp/boost_${BOOST_VERSION} -bcp --boost=/tmp/boost_${BOOST_VERSION} thread system locale date_time filesystem math/special_functions algorithm uuid atomic iostreams program_options numeric/ublas geometry polygon /tmp/bcp/boost_${BOOST_VERSION} +bcp --boost=/tmp/boost_${BOOST_VERSION} thread system locale date_time filesystem math/special_functions algorithm uuid atomic iostreams program_options numeric/ublas geometry polygon signals2 /tmp/bcp/boost_${BOOST_VERSION} echo "Removing documentation..." -rm -rf /tmp/bcp/boost_1_66_0/libs/locale/doc/html -rm -rf /tmp/bcp/boost_1_66_0/libs/algorithm/doc/html -rm -rf /tmp/bcp/boost_1_66_0/libs/geometry/doc/html -rm -rf /tmp/bcp/boost_1_66_0/libs/geometry/doc/doxy/doxygen_output/html -rm -rf /tmp/bcp/boost_1_66_0/libs/filesystem/example/ +rm -rf /tmp/bcp/boost_${BOOST_VERSION}/libs/locale/doc/html +rm -rf /tmp/bcp/boost_${BOOST_VERSION}/libs/algorithm/doc/html +rm -rf /tmp/bcp/boost_${BOOST_VERSION}/libs/geometry/doc/html +rm -rf /tmp/bcp/boost_${BOOST_VERSION}/libs/geometry/doc/doxy/doxygen_output/html +rm -rf /tmp/bcp/boost_${BOOST_VERSION}/libs/filesystem/example/ # https://stackoverflow.com/questions/1655372/longest-line-in-a-file LONGEST_FILENAME=`find /tmp/bcp/ | awk '{print length, $0}' | sort -nr | head -1` diff -r e0476e8cb73d -r 2c4fe62550e9 Resources/Patches/boost-1.67.0-linux-standard-base.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/Patches/boost-1.67.0-linux-standard-base.patch Wed Jun 20 18:03:20 2018 +0200 @@ -0,0 +1,24 @@ +diff -urEb boost_1_67_0.orig/boost/move/adl_move_swap.hpp boost_1_67_0/boost/move/adl_move_swap.hpp +--- boost_1_67_0.orig/boost/move/adl_move_swap.hpp 2018-06-20 18:00:42.559109755 +0200 ++++ boost_1_67_0/boost/move/adl_move_swap.hpp 2018-06-20 17:49:35.176072431 +0200 +@@ -28,6 +28,8 @@ + //Try to avoid including , as it's quite big + #if defined(_MSC_VER) && defined(BOOST_DINKUMWARE_STDLIB) + #include //Dinkum libraries define std::swap in utility which is lighter than algorithm ++#elif defined(__LSB_VERSION__) ++# include + #elif defined(BOOST_GNU_STDLIB) + //For non-GCC compilers, where GNUC version is not very reliable, or old GCC versions + //use the good old stl_algobase header, which is quite lightweight +diff -urEb boost_1_67_0.orig/boost/thread/detail/config.hpp boost_1_67_0/boost/thread/detail/config.hpp +--- boost_1_67_0.orig/boost/thread/detail/config.hpp 2018-06-20 18:00:42.555109761 +0200 ++++ boost_1_67_0/boost/thread/detail/config.hpp 2018-06-20 18:01:08.695070530 +0200 +@@ -417,6 +417,8 @@ + #define BOOST_THREAD_INTERNAL_CLOCK_IS_MONO + #elif defined(BOOST_THREAD_CHRONO_MAC_API) + #define BOOST_THREAD_HAS_MONO_CLOCK ++#elif defined(__LSB_VERSION__) ++ #define BOOST_THREAD_HAS_MONO_CLOCK + #else + #include // check for CLOCK_MONOTONIC + #if defined(CLOCK_MONOTONIC)