From 0d035168ea3b3b81dcc4ffe814de646b74c4f2c7 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Thu, 13 Mar 2025 15:45:20 +0100 Subject: [PATCH] deps: bump abseil-cpp to 20250127.0 --- Dependencies.txt | 2 +- MODULE.bazel | 33 +++++++++---------- cmake/dependencies/CMakeLists.txt | 11 +++++-- cmake/host.CMakeLists.txt | 11 +++++-- cmake/java.cmake | 2 ++ cmake/python.cmake | 2 ++ .../dotnet/Google.OrTools.runtime.csproj.in | 2 ++ patches/BUILD.bazel | 2 +- ...22.0.patch => abseil-cpp-20250127.0.patch} | 0 9 files changed, 40 insertions(+), 25 deletions(-) rename patches/{abseil-cpp-20240722.0.patch => abseil-cpp-20250127.0.patch} (100%) diff --git a/Dependencies.txt b/Dependencies.txt index 6b15bab1c1..4a6a1d5861 100644 --- a/Dependencies.txt +++ b/Dependencies.txt @@ -1,5 +1,5 @@ ZLIB=1.3.1 -abseil-cpp=20240722.0 +abseil-cpp=20250127.0 Protobuf=v29.3 Eigen=3.4.0 Re2=2024-04-01 diff --git a/MODULE.bazel b/MODULE.bazel index 03542b8dd0..d457d0bd87 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -8,38 +8,37 @@ OR_TOOLS_VERSION = "9.12" module( - name = "ortools", + name = "or-tools", version = OR_TOOLS_VERSION, - repo_name = "com_google_ortools", ) # see https://registry.bazel.build/ -bazel_dep(name = "abseil-cpp", version = "20240722.0.bcr.2", repo_name = "com_google_absl") +bazel_dep(name = "abseil-cpp", version = "20250127.0", repo_name = "com_google_absl") bazel_dep(name = "bazel_skylib", version = "1.7.1") -bazel_dep(name = "contrib_rules_jvm", version = "0.27.0") -bazel_dep(name = "eigen", version = "3.4.0.bcr.2") -bazel_dep(name = "fuzztest", version = "20241028.0", repo_name = "com_google_fuzztest") -bazel_dep(name = "gazelle", version = "0.39.1", repo_name = "bazel_gazelle") -bazel_dep(name = "glpk", version = "5.0.bcr.2") -bazel_dep(name = "google_benchmark", version = "1.8.5", repo_name = "com_google_benchmark") -bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest") +bazel_dep(name = "contrib_rules_jvm", version = "0.28.0") +bazel_dep(name = "eigen", version = "4.0.0-20241125.bcr.1") +bazel_dep(name = "fuzztest", version = "20250214.0", repo_name = "com_google_fuzztest") +bazel_dep(name = "gazelle", version = "0.42.0", repo_name = "bazel_gazelle") +bazel_dep(name = "glpk", version = "5.0.bcr.3") +bazel_dep(name = "google_benchmark", version = "1.9.1", repo_name = "com_google_benchmark") +bazel_dep(name = "googletest", version = "1.16.0", repo_name = "com_google_googletest") bazel_dep(name = "highs", version = "1.9.0") -bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "platforms", version = "0.0.11") bazel_dep(name = "protobuf", version = "29.3", repo_name = "com_google_protobuf") bazel_dep(name = "pybind11_abseil", version = "202402.0") bazel_dep(name = "pybind11_bazel", version = "2.13.6") bazel_dep(name = "pybind11_protobuf", version = "0.0.0-20240524-1d7a729") -bazel_dep(name = "re2", version = "2024-07-02", repo_name = "com_google_re2") +bazel_dep(name = "re2", version = "2024-07-02.bcr.1", repo_name = "com_google_re2") bazel_dep(name = "rules_cc", version = "0.1.1") -bazel_dep(name = "rules_go", version = "0.50.1", repo_name = "io_bazel_rules_go") -bazel_dep(name = "rules_java", version = "8.6.3") -bazel_dep(name = "rules_jvm_external", version = "6.6") +bazel_dep(name = "rules_go", version = "0.53.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "rules_java", version = "8.9.0") +bazel_dep(name = "rules_jvm_external", version = "6.7") bazel_dep(name = "rules_license", version = "1.0.0") bazel_dep(name = "rules_proto", version = "7.1.0") -bazel_dep(name = "rules_python", version = "1.0.0") +bazel_dep(name = "rules_python", version = "1.2.0") bazel_dep(name = "scip", version = "9.2.1") bazel_dep(name = "swig", version = "4.3.0") -bazel_dep(name = "zlib", version = "1.3.1.bcr.4") +bazel_dep(name = "zlib", version = "1.3.1.bcr.5") git_override( module_name = "pybind11_abseil", diff --git a/cmake/dependencies/CMakeLists.txt b/cmake/dependencies/CMakeLists.txt index 0f8e55cf23..2855e6542c 100644 --- a/cmake/dependencies/CMakeLists.txt +++ b/cmake/dependencies/CMakeLists.txt @@ -78,16 +78,21 @@ endif() if(BUILD_absl) message(CHECK_START "Fetching Abseil-cpp") list(APPEND CMAKE_MESSAGE_INDENT " ") - set(ABSL_ENABLE_INSTALL ON) set(ABSL_USE_SYSTEM_INCLUDES ON) + # We want Abseil to declare what C++ standard it was compiled with. set(ABSL_PROPAGATE_CXX_STD ON) + # We want Abseil to keep the INSTALL rules enabled, even though it is a + # subproject. Otherwise the install rules in this project break. + set(ABSL_ENABLE_INSTALL ON) set(ABSL_BUILD_TESTING OFF) FetchContent_Declare( absl GIT_REPOSITORY "https://github.com/abseil/abseil-cpp.git" - GIT_TAG "20240722.0" + GIT_TAG "20250127.0" GIT_SHALLOW TRUE - PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/abseil-cpp-20240722.0.patch" + PATCH_COMMAND git apply --ignore-whitespace + "${CMAKE_CURRENT_LIST_DIR}/../../patches/abseil-cpp-20250127.0.patch" + OVERRIDE_FIND_PACKAGE ) FetchContent_MakeAvailable(absl) list(POP_BACK CMAKE_MESSAGE_INDENT) diff --git a/cmake/host.CMakeLists.txt b/cmake/host.CMakeLists.txt index 7cac2cf11c..d7e553976a 100644 --- a/cmake/host.CMakeLists.txt +++ b/cmake/host.CMakeLists.txt @@ -102,11 +102,14 @@ list(APPEND CMAKE_MESSAGE_INDENT " ") set(ABSL_ENABLE_INSTALL ON) set(ABSL_USE_SYSTEM_INCLUDES ON) set(ABSL_PROPAGATE_CXX_STD ON) +set(ABSL_BUILD_TESTING OFF) FetchContent_Declare( absl GIT_REPOSITORY "https://github.com/abseil/abseil-cpp.git" - GIT_TAG "20240722.0" - PATCH_COMMAND git apply "${CMAKE_CURRENT_LIST_DIR}/@PATCHES_PATH@/abseil-cpp-20240722.0.patch") + GIT_TAG "20250127.0" + GIT_SHALLOW TRUE + PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/@PATCHES_PATH@/abseil-cpp-20250127.0.patch" +) FetchContent_MakeAvailable(absl) list(POP_BACK CMAKE_MESSAGE_INDENT) message(CHECK_PASS "fetched") @@ -122,8 +125,10 @@ FetchContent_Declare( protobuf GIT_REPOSITORY "https://github.com/protocolbuffers/protobuf.git" GIT_TAG "v29.3" + GIT_SHALLOW TRUE GIT_SUBMODULES "" - PATCH_COMMAND git apply "${CMAKE_CURRENT_LIST_DIR}/@PATCHES_PATH@/protobuf-v29.3.patch") + PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/@PATCHES_PATH@/protobuf-v29.3.patch" +) FetchContent_MakeAvailable(protobuf) list(POP_BACK CMAKE_MESSAGE_INDENT) message(CHECK_PASS "fetched") diff --git a/cmake/java.cmake b/cmake/java.cmake index 50235446e1..b890416234 100644 --- a/cmake/java.cmake +++ b/cmake/java.cmake @@ -365,6 +365,7 @@ add_custom_command( $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> + $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> @@ -397,6 +398,7 @@ add_custom_command( $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> + $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> diff --git a/cmake/python.cmake b/cmake/python.cmake index b008d3dd95..454cadf069 100644 --- a/cmake/python.cmake +++ b/cmake/python.cmake @@ -521,6 +521,7 @@ add_custom_command( $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> + $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> @@ -554,6 +555,7 @@ add_custom_command( $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> + $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_unix_absl_lib}:$> $<${need_windows_absl_lib}:$> diff --git a/ortools/dotnet/Google.OrTools.runtime.csproj.in b/ortools/dotnet/Google.OrTools.runtime.csproj.in index f7dfe0833d..69b2318a9a 100644 --- a/ortools/dotnet/Google.OrTools.runtime.csproj.in +++ b/ortools/dotnet/Google.OrTools.runtime.csproj.in @@ -78,6 +78,7 @@ $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> + $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> @@ -111,6 +112,7 @@ $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> + $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> $<@need_unix_absl_lib@:;$> $<@need_windows_absl_lib@:;$> diff --git a/patches/BUILD.bazel b/patches/BUILD.bazel index b78c6d1ab5..64bb85c149 100644 --- a/patches/BUILD.bazel +++ b/patches/BUILD.bazel @@ -12,7 +12,7 @@ # limitations under the License. exports_files([ - "abseil-cpp-20240722.0.patch", + "abseil-cpp-20250127.0.patch", "highs-v1.9.0.patch", "protobuf-v29.3.patch", "pybind11_abseil.patch", diff --git a/patches/abseil-cpp-20240722.0.patch b/patches/abseil-cpp-20250127.0.patch similarity index 100% rename from patches/abseil-cpp-20240722.0.patch rename to patches/abseil-cpp-20250127.0.patch