From 05e9cf0f8dcbcee4630d8f3649d7e7312d00b9ee Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Sat, 18 May 2024 07:39:07 +0200 Subject: [PATCH] [boost-container] Add boost-static-assert dep --- ports/boost-container/emscripten-pthread.diff | 18 ++++++++++++++++++ ports/boost-container/no-static-assert.diff | 12 ++++++++++++ ports/boost-container/vcpkg.json | 3 ++- scripts/boost/generate-ports.ps1 | 1 + versions/b-/boost-container.json | 5 +++++ versions/baseline.json | 2 +- 6 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 ports/boost-container/emscripten-pthread.diff create mode 100644 ports/boost-container/no-static-assert.diff diff --git a/ports/boost-container/emscripten-pthread.diff b/ports/boost-container/emscripten-pthread.diff new file mode 100644 index 00000000000000..0d4b97a2295fa3 --- /dev/null +++ b/ports/boost-container/emscripten-pthread.diff @@ -0,0 +1,18 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 01e97c5..30af76f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,6 +15,13 @@ add_library(boost_container + src/synchronized_pool_resource.cpp + src/unsynchronized_pool_resource.cpp + ) ++if(EMSCRIPTEN) ++ # BOOST_HAS_PTHREADS is required to avoid windows declarations in ++ # libs/container/include/boost/container/detail/thread_mutex.hpp ++ # This should come from include/boost/config/detail/posix_features.hpp, ++ # but ... https://github.com/microsoft/vcpkg/issues/38469 ++ target_compile_options(boost_container PUBLIC -pthread) ++endif() + + add_library(Boost::container ALIAS boost_container) + diff --git a/ports/boost-container/no-static-assert.diff b/ports/boost-container/no-static-assert.diff new file mode 100644 index 00000000000000..cb9c0be8d01e8d --- /dev/null +++ b/ports/boost-container/no-static-assert.diff @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 78acbe2..01e97c5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -26,7 +26,6 @@ target_link_libraries(boost_container + Boost::config + Boost::intrusive + Boost::move +- Boost::static_assert + ) + + target_compile_definitions(boost_container diff --git a/ports/boost-container/vcpkg.json b/ports/boost-container/vcpkg.json index 264f40baf8b682..08d638f9855df9 100644 --- a/ports/boost-container/vcpkg.json +++ b/ports/boost-container/vcpkg.json @@ -2,8 +2,9 @@ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", "name": "boost-container", "version": "1.85.0", + "port-version": 1, "description": "Boost container module", - "homepage": "https://github.com/boostorg/container", + "homepage": "https://www.boost.org/libs/container", "license": "BSL-1.0", "dependencies": [ { diff --git a/scripts/boost/generate-ports.ps1 b/scripts/boost/generate-ports.ps1 index ee503a25c95794..ec53ed8ec1195a 100644 --- a/scripts/boost/generate-ports.ps1 +++ b/scripts/boost/generate-ports.ps1 @@ -28,6 +28,7 @@ $semverVersion = ($version -replace "(\d+(\.\d+){1,3}).*", "`$1") # Clear this array when moving to a new boost version $defaultPortVersion = 0 $portVersions = @{ + 'boost-container' = 1; } function Get-PortVersion { diff --git a/versions/b-/boost-container.json b/versions/b-/boost-container.json index 7282bf9ff7488f..ac886e32e904ae 100644 --- a/versions/b-/boost-container.json +++ b/versions/b-/boost-container.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "66fab56c944311d758da01419f79c3253e7dfda1", + "version": "1.85.0", + "port-version": 1 + }, { "git-tree": "1261ff9673aab60f032284e51aa4400a1fa88a6a", "version": "1.85.0", diff --git a/versions/baseline.json b/versions/baseline.json index 9a70e2da564c3c..6ae74b8ae94848 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -810,7 +810,7 @@ }, "boost-container": { "baseline": "1.85.0", - "port-version": 0 + "port-version": 1 }, "boost-container-hash": { "baseline": "1.85.0",