forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepositories.bzl
More file actions
228 lines (205 loc) · 9.85 KB
/
Copy pathrepositories.bzl
File metadata and controls
228 lines (205 loc) · 9.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
"""
This module contains the sources for all third party dependencies.
"""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@toolchains_llvm//toolchain:sysroot.bzl", "sysroot")
def data_dependency():
"""
Define third party dependency sources.
`integrity` can be generated using:
openssl dgst -sha256 -binary ARCHIVE.tar.gz | openssl base64 -A | sed 's/^/sha256-/'
"""
http_archive(
name = "ada",
build_file = "//bazel/thirdparty:ada.BUILD",
sha256 = "bd89fcf57c93e965e6e2488448ab9d1cf8005311808c563b288f921d987e4924",
url = "https://vectorized-public.s3.us-west-2.amazonaws.com/dependencies/ada-3.2.4.single-header.zip",
)
http_archive(
name = "avro",
build_file = "//bazel/thirdparty:avro.BUILD",
sha256 = "1c09dd94cc8fcac0fa99359254507cfd538c527bcb8b5066d16b6289ac87ea93",
strip_prefix = "avro-6821e2b454401308d4e3819c0569d0fe7f2a66fa",
url = "https://github.com/redpanda-data/avro/archive/6821e2b454401308d4e3819c0569d0fe7f2a66fa.tar.gz",
patches = [
"//bazel/thirdparty:avro-snappy-includes.patch",
"//bazel/thirdparty:avro-fmt-const.patch",
],
patch_args = ["-p1"],
)
http_archive(
name = "base64",
build_file = "//bazel/thirdparty:base64.BUILD",
sha256 = "b21be58a90d31302ba86056db7ef77a481393b9359c505be5337d7d54e8a0559",
strip_prefix = "base64-0.5.0",
url = "https://vectorized-public.s3.amazonaws.com/dependencies/base64-v0.5.0.tar.gz",
)
http_archive(
name = "c-ares",
build_file = "//bazel/thirdparty:c-ares.BUILD",
sha256 = "912dd7cc3b3e8a79c52fd7fb9c0f4ecf0aaa73e45efda880266a2d6e26b84ef5",
strip_prefix = "c-ares-1.34.6",
url = "https://vectorized-public.s3.amazonaws.com/dependencies/c-ares-1.34.6.tar.gz",
)
http_archive(
name = "hdrhistogram",
build_file = "//bazel/thirdparty:hdrhistogram.BUILD",
integrity = "sha256-u5U1GmqLJC3Jvh8oVidhqE1M8Kh0/8kKm2MHcKZGjpQ=",
strip_prefix = "HdrHistogram_c-0.11.8",
url = "https://github.com/HdrHistogram/HdrHistogram_c/archive/refs/tags/0.11.8.tar.gz",
)
http_archive(
name = "hwloc",
build_file = "//bazel/thirdparty:hwloc.BUILD",
sha256 = "866ac8ef07b350a6a2ba0c6826c37d78e8994dcbcd443bdd2b436350de19d540",
strip_prefix = "hwloc-2.11.2",
url = "https://vectorized-public.s3.amazonaws.com/dependencies/hwloc-2.11.2.tar.gz",
)
http_archive(
name = "jsoncons",
build_file = "//bazel/thirdparty:jsoncons.BUILD",
sha256 = "078ba32cd1198cbeb1903fbf4881d4960b226bdf8083d9f5a927b96f0aa8d6dd",
strip_prefix = "jsoncons-ffd2540bc9cfb54c16ef4d29d80622605d8dfbe8",
url = "https://github.com/danielaparker/jsoncons/archive/ffd2540bc9cfb54c16ef4d29d80622605d8dfbe8.tar.gz",
patches = ["//bazel/thirdparty:jsoncons-pr-603.patch"],
patch_args = ["-p1"],
)
http_archive(
name = "krb5",
build_file = "//bazel/thirdparty:krb5.BUILD",
sha256 = "289f5bb81d1f2f8d5eecebe56a056aeed95d35fd9bb4a7071c5dd7ad4b3fe888",
strip_prefix = "krb5-krb5-1.22.2-final",
url = "https://github.com/krb5/krb5/archive/refs/tags/krb5-1.22.2-final.tar.gz",
patches = [
"//bazel/thirdparty:0002-Fix-two-NegoEx-parsing-vulnerabilities.patch",
"//bazel/thirdparty:0003-Fix-build-when-KRB5_DNS_LOOKUP-isnt-defined.patch",
],
patch_args = ["-p1"],
)
http_archive(
name = "libpciaccess",
build_file = "//bazel/thirdparty:libpciaccess.BUILD",
sha256 = "d0d0d53c2085d21ab37ae5989e55a3de13d4d80dc2c0a8d5c77154ea70f4783c",
strip_prefix = "libpciaccess-2ec2576cabefef1eaa5dd9307c97de2e887fc347",
url = "https://vectorized-public.s3.amazonaws.com/dependencies/libpciaccess-2ec2576cabefef1eaa5dd9307c97de2e887fc347.tar.gz",
)
http_archive(
name = "libprotobuf_mutator",
build_file = "//bazel/thirdparty:libprotobuf-mutator.BUILD",
sha256 = "0847a2ee65552a92643131e934b50164e8b79fadc7be24b180a1c8d6dbb05952",
strip_prefix = "libprotobuf-mutator-dc4ced337a9fb4047e2dc727268fbac55ca82f73",
url = "https://github.com/google/libprotobuf-mutator/archive/dc4ced337a9fb4047e2dc727268fbac55ca82f73.zip",
)
http_archive(
name = "lksctp",
build_file = "//bazel/thirdparty:lksctp.BUILD",
sha256 = "0c8fac0a5c66eea339dce6be857101b308ce1064c838b81125b0dde3901e8032",
strip_prefix = "lksctp-tools-lksctp-tools-1.0.19",
url = "https://vectorized-public.s3.amazonaws.com/dependencies/lksctp-tools-1.0.19.tar.gz",
)
#
# ** IMPORTANT - OpenSSL and FIPS **
#
# Below there are two OpenSSL archives that are retrieved. The first, named
# simply "openssl", may reference any desired version of OpenSSL 3.0.0 and above.
#
# The second archive retrieved is named "openssl-fips", and *MUST* reference
# the specific version of OpenSSL, 3.1.2, which is the latest FIPS approved
# version as of 3/11/2025. Do not change this version. For more info visit:
# https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/4985
#
# This 2 build approach is described in more detail in the FIPS README here:
# https://github.com/openssl/openssl/blob/master/README-FIPS.md
#
http_archive(
name = "openssl",
build_file = "//bazel/thirdparty:openssl.BUILD",
patches = ["//bazel/thirdparty:openssl-reproducible-buildinf.patch"],
patch_args = ["-p1"],
sha256 = "a8c0d28a529ca480f9f36cf5792e2cd21984552a3c8e4aa11a24aa31aeac98e8",
strip_prefix = "openssl-3.5.7",
url = "https://vectorized-public.s3.amazonaws.com/dependencies/openssl-3.5.7.tar.gz",
)
http_archive(
name = "openssl-fips",
build_file = "//bazel/thirdparty:openssl-fips.BUILD",
sha256 = "a0ce69b8b97ea6a35b96875235aa453b966ba3cba8af2de23657d8b6767d6539",
strip_prefix = "openssl-3.1.2",
url = "https://vectorized-public.s3.amazonaws.com/dependencies/openssl-3.1.2.tar.gz",
)
http_archive(
name = "rapidjson",
build_file = "//bazel/thirdparty:rapidjson.BUILD",
sha256 = "d085ef6d175d9b20800958c695c7767d65f9c1985a73d172150e57e84f6cd61c",
strip_prefix = "rapidjson-14a5dd756e9bef26f9b53d3b4eb1b73c6a1794d5",
url = "https://github.com/redpanda-data/rapidjson/archive/14a5dd756e9bef26f9b53d3b4eb1b73c6a1794d5.tar.gz",
)
http_archive(
name = "roaring",
build_file = "//bazel/thirdparty:roaring.BUILD",
sha256 = "78487658b774f27546e79de2ddd37fca56679b23f256425d2c86aabf7d1b8066",
strip_prefix = "CRoaring-c433d1c70c10fb2e40f049e019e2abbcafa6e69d",
url = "https://github.com/redpanda-data/CRoaring/archive/c433d1c70c10fb2e40f049e019e2abbcafa6e69d.tar.gz",
)
# branch: v26.2.x
http_archive(
name = "seastar",
build_file = "//bazel/thirdparty:seastar.BUILD",
sha256 = "e800bfbfeaf514ad90cb480aa5e317c01c514f99ed97ee0ac2ef3c9c55dc43a5",
strip_prefix = "seastar-5d474c884fb54f1bbef9fe9bfada0eb48feb47b5",
url = "https://github.com/redpanda-data/seastar/archive/5d474c884fb54f1bbef9fe9bfada0eb48feb47b5.tar.gz",
patches = [
"//bazel/thirdparty:seastar-test-runner-stack.patch",
"//bazel/thirdparty:seastar-thread-test-stack.patch",
],
patch_args = ["-p1"],
)
http_archive(
name = "unordered_dense",
build_file = "//bazel/thirdparty:unordered_dense.BUILD",
sha256 = "8393d08b2a41949c70345926515036df55643e80118b608bcec6f4202d4a3026",
strip_prefix = "unordered_dense-f30ed41b58af8c79788e8581fe57a6faf856258e",
url = "https://github.com/martinus/unordered_dense/archive/f30ed41b58af8c79788e8581fe57a6faf856258e.tar.gz",
)
http_archive(
name = "wasmtime",
build_file = "//bazel/thirdparty:wasmtime.BUILD",
sha256 = "a7f989b170d109696b928b4b3d1ec1d930064af7df47178e1341bd96e5c34465",
strip_prefix = "wasmtime-9e1084ffac08b1bf9c82de40c0efc1baff14b9ad",
url = "https://github.com/bytecodealliance/wasmtime/archive/9e1084ffac08b1bf9c82de40c0efc1baff14b9ad.tar.gz",
)
http_archive(
name = "xxhash",
build_file = "//bazel/thirdparty:xxhash.BUILD",
sha256 = "716fbe4fc85ecd36488afbbc635b59b5ab6aba5ed3b69d4a32a46eae5a453d38",
strip_prefix = "xxHash-bbb27a5efb85b92a0486cf361a8635715a53f6ba",
url = "https://github.com/Cyan4973/xxHash/archive/bbb27a5efb85b92a0486cf361a8635715a53f6ba.tar.gz",
)
# The sysroot is consumed two ways. The upstream `sysroot` rule from
# toolchains_llvm exposes a single source-directory artifact that the
# cc_toolchain ingests as one input. The packaging rules in
# //bazel/packaging need individual file labels for the dynamic loader
# and versioned shared libraries to ship alongside the binary, so we
# also pull the same tarball via http_archive with a glob-based BUILD.
_SYSROOT_URL = "https://github.com/redpanda-data/llvm-project/releases/download/llvmorg-22.1.0/sysroot-ubuntu-22.04-{arch}-2026-05-05.tar.zst"
for arch, sha in [
("x86_64", "0d85fc9e155e664403c1c3c40831d865796d36a91b78a2e6d8922aa6ad3f0375"),
("aarch64", "1afc00adf978c90ad8ffd3b729180923c27d57a7702ea23ba35c714e11d0def2"),
]:
url = _SYSROOT_URL.format(arch = arch)
sysroot(
name = arch + "_sysroot",
sha256 = sha,
urls = [url],
)
http_archive(
name = arch + "_sysroot_runtime",
build_file_content = """filegroup(
name = "runtime",
srcs = glob(["**/*.so.*"], allow_empty = False),
visibility = ["//visibility:public"],
)
""",
sha256 = sha,
urls = [url],
)