Skip to content

Commit

Permalink
tensorstore/third_party updates
Browse files Browse the repository at this point in the history
The remaining packages to update are:
* boringssl: Requires updating Windows builds to the Windows 11 SDK.
* riegeli: Requires some additional code changes.

PiperOrigin-RevId: 678936901
Change-Id: I687690b5de02623def3f01c3476dce1f55ca28a2
  • Loading branch information
laramiel authored and copybara-github committed Sep 26, 2024
1 parent 1b569eb commit 1917a84
Show file tree
Hide file tree
Showing 12 changed files with 143 additions and 52 deletions.
6 changes: 3 additions & 3 deletions third_party/aws_c_auth/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def repo():
maybe(
third_party_http_archive,
name = "aws_c_auth",
sha256 = "f49f5dce1153e908dd9c0639f4aa4b1477f8564a28635f433cc0be121a18106e",
strip_prefix = "aws-c-auth-0.7.29",
sha256 = "7f97aacef6bd1649734383c2bf022250671f353b7fa60d195e6865d7f4594b43",
strip_prefix = "aws-c-auth-0.7.31",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-c-auth/archive/v0.7.29.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-c-auth/archive/v0.7.31.tar.gz",
],
build_file = Label("//third_party:aws_c_auth/aws_c_auth.BUILD.bazel"),
cmake_name = "aws_c_auth",
Expand Down
6 changes: 3 additions & 3 deletions third_party/aws_c_http/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def repo():
maybe(
third_party_http_archive,
name = "aws_c_http",
sha256 = "4c3a4a6845653c1b01162968f936c31aea6b25d3a0bdbf050b2342b8b94fcca6",
strip_prefix = "aws-c-http-0.8.8",
sha256 = "f878802a4e0bcefadce9959ce443acaf77607a68d138f9d3db04a5a878f1a871",
strip_prefix = "aws-c-http-0.8.10",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-c-http/archive/v0.8.8.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-c-http/archive/v0.8.10.tar.gz",
],
build_file = Label("//third_party:aws_c_http/aws_c_http.BUILD.bazel"),
cmake_name = "aws_c_http",
Expand Down
6 changes: 3 additions & 3 deletions third_party/aws_c_mqtt/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def repo():
maybe(
third_party_http_archive,
name = "aws_c_mqtt",
sha256 = "6a41456f9eee15d71e4e2ee162b354865809f26620f1e6e5acb237f190f77f3f",
strip_prefix = "aws-c-mqtt-0.10.4",
sha256 = "7579fafc74a8751c15c0196eda6ec93d00a17e7f79fb994f34a8f62ceb66cc62",
strip_prefix = "aws-c-mqtt-0.10.6",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-c-mqtt/archive/v0.10.4.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-c-mqtt/archive/v0.10.6.tar.gz",
],
build_file = Label("//third_party:aws_c_mqtt/aws_c_mqtt.BUILD.bazel"),
cmake_name = "aws_c_mqtt",
Expand Down
6 changes: 3 additions & 3 deletions third_party/aws_c_s3/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def repo():
maybe(
third_party_http_archive,
name = "aws_c_s3",
sha256 = "b671006ae2b5c1302e49ca022e0f9e6504cfe171d9e47c3e59c52b2ab8e80ef5",
strip_prefix = "aws-c-s3-0.6.5",
sha256 = "2945ffb9e6529f560b34eee018ebdd4397288477f2df0126b5fd5cc2490fd056",
strip_prefix = "aws-c-s3-0.6.6",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-c-s3/archive/v0.6.5.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-c-s3/archive/v0.6.6.tar.gz",
],
build_file = Label("//third_party:aws_c_s3/aws_c_s3.BUILD.bazel"),
cmake_name = "aws_c_s3",
Expand Down
6 changes: 3 additions & 3 deletions third_party/aws_checksums/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def repo():
maybe(
third_party_http_archive,
name = "aws_checksums",
sha256 = "844e5a4f659f454112c559d4f4043b7accfbb134e47a55f4c55f79d9c71bdab1",
strip_prefix = "aws-checksums-0.1.19",
sha256 = "12f80085993662b6d2cbd2d090b49b4350d19396b1d218d52323712cc8dee252",
strip_prefix = "aws-checksums-0.1.20",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-checksums/archive/v0.1.19.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-checksums/archive/v0.1.20.tar.gz",
],
build_file = Label("//third_party:aws_checksums/aws_checksums.BUILD.bazel"),
cmake_name = "aws_checksums",
Expand Down
6 changes: 3 additions & 3 deletions third_party/aws_crt_cpp/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def repo():
maybe(
third_party_http_archive,
name = "aws_crt_cpp",
sha256 = "7f27df9d2028008e665bab4b2e094365eac696610610e52182c679a43dbeaf6f",
strip_prefix = "aws-crt-cpp-0.28.2",
sha256 = "0d0255eb1983ff3b6f7a7e98a54f65e2e8b40a7c7d6118a96a9c656ada7afb5f",
strip_prefix = "aws-crt-cpp-0.28.3",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-crt-cpp/archive/v0.28.2.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/awslabs/aws-crt-cpp/archive/v0.28.3.tar.gz",
],
build_file = Label("//third_party:aws_crt_cpp/aws_crt_cpp.BUILD.bazel"),
remove_paths = ["VERSION"],
Expand Down
6 changes: 3 additions & 3 deletions third_party/aws_s2n_tls/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ def repo():
maybe(
third_party_http_archive,
name = "aws_s2n_tls",
sha256 = "896d9f8f8e9bd2fdcb9a21b18aede4f7afc65bde279afabc60abf97fa5069dd1",
strip_prefix = "s2n-tls-1.5.2",
sha256 = "609d4ab5747e592a8749f2db7ff6422ea2e0aff3d2790b6d36defe276f422a71",
strip_prefix = "s2n-tls-1.5.3",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/aws/s2n-tls/archive/v1.5.2.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/aws/s2n-tls/archive/v1.5.3.tar.gz",
],
build_file = Label("//third_party:aws_s2n_tls/aws_s2n_tls.BUILD.bazel"),
cmake_name = "s2n_tls",
Expand Down
30 changes: 22 additions & 8 deletions third_party/com_google_libyuv/libyuv.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,38 @@ licenses(["notice"])

exports_files(["LICENSE"])

# See
# https://chromium.googlesource.com/libyuv/libyuv/+/refs/heads/main/BUILD.gn
# See https://chromium.googlesource.com/libyuv/libyuv/+/refs/heads/main/BUILD.gn

cc_library(
name = "libyuv",
srcs = glob(
include = [
"source/*.cc",
"include/libyuv/*.h",
],
include = ["source/*.cc"],
exclude = [
"source/*_msa.cc", # mips
"source/*_lsx.cc", # loong64
"source/*_lasx.cc", # loong64
"source/*_lsx.cc", # loong64
"source/*_msa.cc", # mips
"source/*_neon.cc", # aarch
"source/*_neon64.cc", # aarch64
"source/*_sme.cc", # arm9 sme
"source/*_sve.cc", # arm9 sve
],
),
local_defines = [
"LIBYUV_DISABLE_SVE",
"LIBYUV_DISABLE_SME",
"LIBYUV_DISABLE_NEON",
],
deps = [":libyuv_headers"],
)

cc_library(
name = "libyuv_headers",
hdrs = ["include/libyuv.h"] + glob([
"include/libyuv/*.h",
]),
strip_include_prefix = "include",
visibility = ["//visibility:private"],
)

#TODO: Once the compiler supports dotprod, add neon/neon64.
#TODO: Once the compiler supports arm9, add sme and sve., add arm9_sme.
11 changes: 5 additions & 6 deletions third_party/com_google_libyuv/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# buildifier: disable=module-docstring

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load(
"//third_party:repo.bzl",
"third_party_http_archive",
)
load("//third_party:repo.bzl", "third_party_http_archive")

def repo():
maybe(
third_party_http_archive,
name = "com_google_libyuv",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/chromium.googlesource.com/libyuv/libyuv/+archive/97bd3bba83e3eb4df85e8e243ceb1abebc190a43.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/chromium.googlesource.com/libyuv/libyuv/+archive/61bf0b61f7799c02eddc87b65c0fc542011cfd2b.tar.gz",
],
# googlesource does not cache archive files; the sha256 is only valid for the mirror.
sha256 = "668d771967903caa559d749bc188e91bab4d355b3631b013068a582ab78b0368",
sha256 = "a869a841acb0579d85354a227562b15a603e35f5112394a48955eda20d736f46",
build_file = Label("//third_party:com_google_libyuv/libyuv.BUILD.bazel"),
cmake_name = "libyuv",
cmake_target_mapping = {
Expand Down
81 changes: 81 additions & 0 deletions third_party/com_google_re2/re2.BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
package(default_visibility = ["//visibility:public"])

licenses(["notice"])

exports_files(["LICENSE"])

cc_library(
name = "re2",
srcs = [
"re2/bitmap256.cc",
"re2/bitmap256.h",
"re2/bitstate.cc",
"re2/compile.cc",
"re2/dfa.cc",
"re2/filtered_re2.cc",
"re2/mimics_pcre.cc",
"re2/nfa.cc",
"re2/onepass.cc",
"re2/parse.cc",
"re2/perl_groups.cc",
"re2/pod_array.h",
"re2/prefilter.cc",
"re2/prefilter.h",
"re2/prefilter_tree.cc",
"re2/prefilter_tree.h",
"re2/prog.cc",
"re2/prog.h",
"re2/re2.cc",
"re2/regexp.cc",
"re2/regexp.h",
"re2/set.cc",
"re2/simplify.cc",
"re2/sparse_array.h",
"re2/sparse_set.h",
"re2/tostring.cc",
"re2/unicode_casefold.cc",
"re2/unicode_casefold.h",
"re2/unicode_groups.cc",
"re2/unicode_groups.h",
"re2/walker-inl.h",
"util/rune.cc",
"util/strutil.cc",
"util/strutil.h",
"util/utf.h",
],
hdrs = [
"re2/filtered_re2.h",
"re2/re2.h",
"re2/set.h",
"re2/stringpiece.h",
],
copts = select({
"@platforms//os:windows": [],
"//conditions:default": ["-pthread"],
}),
linkopts = select({
# macOS doesn't need `-pthread' when linking and it appears that
# older versions of Clang will warn about the unused command line
# argument, so just don't pass it.
"@platforms//os:macos": [],
"@platforms//os:windows": [],
"//conditions:default": ["-pthread"],
}),
visibility = ["//visibility:public"],
deps = [
"@com_google_absl//absl/base",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/container:fixed_array",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/container:inlined_vector",
"@com_google_absl//absl/hash",
"@com_google_absl//absl/log:absl_check",
"@com_google_absl//absl/log:absl_log",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/types:optional",
"@com_google_absl//absl/types:span",
],
)
18 changes: 8 additions & 10 deletions third_party/com_google_re2/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# buildifier: disable=module-docstring

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load(
"//third_party:repo.bzl",
"third_party_http_archive",
)
load("//third_party:repo.bzl", "third_party_http_archive")

# REPO_BRANCH = main

def repo():
maybe(
third_party_http_archive,
name = "com_google_re2",
strip_prefix = "re2-03da4fc0857c285e3a26782f6bc8931c4c950df4",
strip_prefix = "re2-2024-07-02",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/google/re2/archive/03da4fc0857c285e3a26782f6bc8931c4c950df4.tar.gz", # 2023-06-01
"https://storage.googleapis.com/tensorstore-bazel-mirror/github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz",
],
sha256 = "ef516fb84824a597c4d5d0d6d330daedb18363b5a99eda87d027e6bdd9cba299",
repo_mapping = {
"@com_github_google_benchmark": "@com_google_benchmark",
},
sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b",
# Cloned from the repo in place of patching the bundled BUILD.bazel
build_file = Label("//third_party:com_google_re2/re2.BUILD.bazel"),
cmake_name = "Re2",
bazel_to_cmake = {
"include": [""],
Expand Down
13 changes: 6 additions & 7 deletions third_party/libtiff/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# buildifier: disable=module-docstring

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load(
"//third_party:repo.bzl",
"third_party_http_archive",
)
load("//third_party:repo.bzl", "third_party_http_archive")

# Homepages http://www.simplesystems.org/libtiff/
# TODO: Use mirror the gitlab bundle: "https://gitlab.com/libtiff/libtiff"
Expand All @@ -25,10 +24,10 @@ def repo():
third_party_http_archive,
name = "libtiff",
urls = [
"https://storage.googleapis.com/tensorstore-bazel-mirror/download.osgeo.org/libtiff/tiff-4.6.0.tar.gz",
"https://storage.googleapis.com/tensorstore-bazel-mirror/download.osgeo.org/libtiff/tiff-4.7.0.tar.gz",
],
sha256 = "88b3979e6d5c7e32b50d7ec72fb15af724f6ab2cbf7e10880c360a77e4b5d99a",
strip_prefix = "tiff-4.6.0",
sha256 = "67160e3457365ab96c5b3286a0903aa6e78bdc44c4bc737d2e486bcecb6ba976",
strip_prefix = "tiff-4.7.0",
build_file = Label("//third_party:libtiff/libtiff.BUILD.bazel"),
system_build_file = Label("//third_party:libtiff/system.BUILD.bazel"),
remove_paths = ["VERSION"],
Expand Down

0 comments on commit 1917a84

Please sign in to comment.