Skip to content

Commit 43131e5

Browse files
committed
dependencies: bump pybind11 to v2.13.1
1 parent a9fbfc1 commit 43131e5

File tree

5 files changed

+20
-40
lines changed

5 files changed

+20
-40
lines changed

WORKSPACE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ git_repository(
6565

6666
git_repository(
6767
name = "rules_python",
68-
tag = "0.31.0",
68+
tag = "0.33.2",
6969
remote = "https://github.com/bazelbuild/rules_python.git",
7070
)
7171

@@ -245,21 +245,21 @@ git_repository(
245245
new_git_repository(
246246
name = "pybind11",
247247
build_file = "@pybind11_bazel//:pybind11.BUILD",
248-
tag = "v2.12.0",
248+
tag = "v2.13.1",
249249
remote = "https://github.com/pybind/pybind11.git",
250250
)
251251

252252
new_git_repository(
253253
name = "pybind11_abseil",
254-
commit = "52f27398876a3177049977249e004770bd869e61", # 2024/01/11
254+
tag = "v202402.0",
255255
patches = ["//patches:pybind11_abseil.patch"],
256256
patch_args = ["-p1"],
257257
remote = "https://github.com/pybind/pybind11_abseil.git",
258258
)
259259

260260
new_git_repository(
261261
name = "pybind11_protobuf",
262-
commit = "3b11990a99dea5101799e61d98a82c4737d240cc", # 2024/01/04
262+
commit = "e90f33efeb2ae5c4e85ef83b22298f58e1e30894", # 2024/06/21
263263
remote = "https://github.com/pybind/pybind11_protobuf.git",
264264
)
265265

cmake/dependencies/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ if(BUILD_absl)
8282
set(ABSL_PROPAGATE_CXX_STD ON)
8383
set(ABSL_BUILD_TESTING OFF)
8484
FetchContent_Declare(
85-
abseil-cpp
85+
absl
8686
GIT_REPOSITORY "https://github.com/abseil/abseil-cpp.git"
8787
GIT_TAG "20240116.2"
8888
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/abseil-cpp-20240116.2.patch"
8989
)
90-
FetchContent_MakeAvailable(abseil-cpp)
90+
FetchContent_MakeAvailable(absl)
9191
list(POP_BACK CMAKE_MESSAGE_INDENT)
9292
message(CHECK_PASS "fetched")
9393
endif()
@@ -102,6 +102,7 @@ if(BUILD_Protobuf)
102102
set(protobuf_BUILD_SHARED_LIBS OFF)
103103
set(protobuf_BUILD_EXPORT OFF)
104104
set(protobuf_MSVC_STATIC_RUNTIME OFF)
105+
#set(protobuf_BUILD_LIBUPB ON)
105106
FetchContent_Declare(
106107
Protobuf
107108
GIT_REPOSITORY "https://github.com/protocolbuffers/protobuf.git"
@@ -169,7 +170,7 @@ if(BUILD_PYTHON AND BUILD_pybind11)
169170
FetchContent_Declare(
170171
pybind11
171172
GIT_REPOSITORY "https://github.com/pybind/pybind11.git"
172-
GIT_TAG "v2.12.0"
173+
GIT_TAG "v2.13.1"
173174
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11.patch"
174175
)
175176
FetchContent_MakeAvailable(pybind11)
@@ -183,7 +184,7 @@ if(BUILD_PYTHON AND BUILD_pybind11_abseil)
183184
FetchContent_Declare(
184185
pybind11_abseil
185186
GIT_REPOSITORY "https://github.com/pybind/pybind11_abseil.git" # 2024/01/11
186-
GIT_TAG "52f27398876a3177049977249e004770bd869e61"
187+
GIT_TAG "v202402.0"
187188
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11_abseil.patch"
188189
)
189190
FetchContent_MakeAvailable(pybind11_abseil)
@@ -197,7 +198,7 @@ if(BUILD_PYTHON AND BUILD_pybind11_protobuf)
197198
FetchContent_Declare(
198199
pybind11_protobuf
199200
GIT_REPOSITORY "https://github.com/pybind/pybind11_protobuf.git"
200-
GIT_TAG "3b11990a99dea5101799e61d98a82c4737d240cc" # 2024/01/04
201+
GIT_TAG "e90f33efeb2ae5c4e85ef83b22298f58e1e30894" # 2024/06/21
201202
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../../patches/pybind11_protobuf.patch"
202203
)
203204
FetchContent_MakeAvailable(pybind11_protobuf)

patches/protobuf-v27.2.patch

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,3 @@ index 9b51e9722..33c1021d4 100644
5454
${protobuf_BINARY_DIR}
5555
# Support #include-ing other top-level directories, i.e. upb_generator.
5656
${protobuf_SOURCE_DIR}
57-
diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake
58-
index 11c09b1bc..fdea9ce16 100644
59-
--- a/cmake/libprotobuf.cmake
60-
+++ b/cmake/libprotobuf.cmake
61-
@@ -28,6 +28,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
62-
endif()
63-
target_include_directories(libprotobuf PUBLIC
64-
$<BUILD_INTERFACE:${protobuf_SOURCE_DIR}/src>
65-
+ $<BUILD_INTERFACE:${protobuf_SOURCE_DIR}>
66-
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
67-
)
68-
target_link_libraries(libprotobuf PUBLIC ${protobuf_ABSL_USED_TARGETS})

patches/pybind11_abseil.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ index ceb65a8..e142837 100644
5555
include_directories(${TOP_LEVEL_DIR} ${pybind11_INCLUDE_DIRS})
5656
diff --git a/cmake/dependencies/CMakeLists.txt b/cmake/dependencies/CMakeLists.txt
5757
new file mode 100644
58-
index 0000000..ffe4d38
58+
index 0000000..826eda8
5959
--- /dev/null
6060
+++ b/cmake/dependencies/CMakeLists.txt
6161
@@ -0,0 +1,15 @@
@@ -64,7 +64,7 @@ index 0000000..ffe4d38
6464
+set(ABSL_PROPAGATE_CXX_STD ON)
6565
+set(BUILD_TESTING OFF)
6666
+FetchContent_Declare(
67-
+ abseil-cpp
67+
+ absl
6868
+ URL https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.0.tar.gz
6969
+ URL_HASH
7070
+ SHA256=59d2976af9d6ecf001a81a35749a6e551a335b949d34918cfade07737b9d93c5)
@@ -73,9 +73,9 @@ index 0000000..ffe4d38
7373
+ pybind11
7474
+ URL https://github.com/pybind/pybind11/archive/refs/heads/master.tar.gz)
7575
+
76-
+FetchContent_MakeAvailable(abseil-cpp pybind11)
76+
+FetchContent_MakeAvailable(absl pybind11)
7777
diff --git a/pybind11_abseil/BUILD b/pybind11_abseil/BUILD
78-
index 4cff8b7..33e614a 100644
78+
index 791c245..33e614a 100644
7979
--- a/pybind11_abseil/BUILD
8080
+++ b/pybind11_abseil/BUILD
8181
@@ -25,43 +25,39 @@ pybind_library(
@@ -90,7 +90,7 @@ index 4cff8b7..33e614a 100644
9090
visibility = ["//visibility:public"],
9191
deps = [
9292
"@com_google_absl//absl/status",
93-
- "@local_config_python//:python_headers", # buildcleaner: keep
93+
- "@rules_python//python/cc:current_py_cc_headers", # buildcleaner: keep
9494
],
9595
)
9696

@@ -101,7 +101,7 @@ index 4cff8b7..33e614a 100644
101101
visibility = ["//visibility:private"],
102102
deps = [
103103
":ok_status_singleton_lib",
104-
- "@local_config_python//:python_headers", # buildcleaner: keep
104+
- "@rules_python//python/cc:current_py_cc_headers", # buildcleaner: keep
105105
],
106106
)
107107

@@ -113,7 +113,7 @@ index 4cff8b7..33e614a 100644
113113
- linkshared = 1,
114114
deps = [
115115
":ok_status_singleton_pyinit_google3",
116-
- "@local_config_python//:python_headers", # buildcleaner: keep
116+
- "@rules_python//python/cc:current_py_cc_headers", # buildcleaner: keep
117117
],
118118
)
119119

@@ -149,7 +149,7 @@ index 4cff8b7..33e614a 100644
149149
- linkshared = 1,
150150
deps = [
151151
":status_pyinit_google3",
152-
- "@local_config_python//:python_headers", # buildcleaner: keep
152+
- "@rules_python//python/cc:current_py_cc_headers", # buildcleaner: keep
153153
],
154154
)
155155

patches/pybind11_protobuf.patch

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ diff --git a/cmake/dependencies/CMakeLists.txt b/cmake/dependencies/CMakeLists.t
6060
index 111b34f..f78e946 100644
6161
--- a/cmake/dependencies/CMakeLists.txt
6262
+++ b/cmake/dependencies/CMakeLists.txt
63-
@@ -7,7 +7,7 @@ if(NOT absl_FOUND)
64-
set(ABSL_PROPAGATE_CXX_STD ON)
65-
set(ABSL_ENABLE_INSTALL ON)
66-
FetchContent_Declare(
67-
- absl
68-
+ abseil-cpp
69-
GIT_REPOSITORY ${_absl_repository}
70-
GIT_TAG ${_absl_tag})
71-
endif()
7263
@@ -35,17 +35,17 @@ if(NOT pybind11_FOUND)
7364
endif()
7465

@@ -77,11 +68,11 @@ index 111b34f..f78e946 100644
7768
+# Make dependencies available
7869

7970
-if(NOT absl_FOUND)
80-
+if(NOT abseil-cpp_FOUND)
71+
+if(NOT absl_FOUND)
8172
message(CHECK_START "Fetching Abseil-cpp")
8273
list(APPEND CMAKE_MESSAGE_INDENT " ")
8374
- FetchContent_MakeAvailable(absl)
84-
+ FetchContent_MakeAvailable(abseil-cpp)
75+
+ FetchContent_MakeAvailable(absl)
8576
list(POP_BACK CMAKE_MESSAGE_INDENT)
8677
message(CHECK_PASS "fetched")
8778
endif()

0 commit comments

Comments
 (0)