blob: 8b152e2832d2459a41308f0bb8cc786ce412d60c [file] [log] [blame]
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +02001# third_party external repositories
2
3git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
Tim Windelschmidt6b1b79a2024-08-27 00:04:18 +02004
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +02005http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Tim Windelschmidt6b1b79a2024-08-27 00:04:18 +02006
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +02007http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
8
9# Used by tests in cloud/takeover
10http_file(
11 name = "debian_11_cloudimage",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020012 integrity = "sha256-FMruxoujEpoRWptXOW0I3AlzzJ9WnOBJIy19FddorUE=",
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020013 urls = [
14 "https://cloud.debian.org/images/cloud/bullseye/20230124-1270/debian-11-genericcloud-amd64-20230124-1270.qcow2",
15 ],
16)
17
18# Used to include staticcheck as nogo analyzer
19http_archive(
20 name = "com_github_sluongng_nogo_analyzer",
Tim Windelschmidt677de972024-09-25 05:30:04 +020021 integrity = "sha256-Dca16GCU0IHgW80MPkH8J1ojmMZOVFN2FmE5QSGB8VA=",
22 strip_prefix = "nogo-analyzer-0.0.3",
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020023 urls = [
Tim Windelschmidt677de972024-09-25 05:30:04 +020024 "https://github.com/sluongng/nogo-analyzer/archive/refs/tags/v0.0.3.tar.gz",
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020025 ],
26)
27
28git_repository(
29 name = "boringssl",
30 commit = "d7278cebad5b8eda0901246f2215344cffece4f4",
31 remote = "https://boringssl.googlesource.com/boringssl",
32)
33
34# CockroachDB binary used for tests.
35#
36# WARNING: Not distributed under an OSI certified license. Must only be used in
37# tests, not be redistributed!
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020038COCKROACH_VERSION = "22.1.6"
39
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020040http_archive(
41 name = "cockroach",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020042 build_file = "//third_party/cockroach:BUILD.repo",
43 integrity = "sha256-CCHP9XcEAPuUyLbCqzONlvQRT78rMga8im3PYvnA9Oo=",
44 strip_prefix = "cockroach-v%s.linux-amd64" % COCKROACH_VERSION,
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020045 urls = [
46 # TODO: select() to pick other host architectures.
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020047 "https://binaries.cockroachdb.com/cockroach-v%s.linux-amd64.tgz" % COCKROACH_VERSION,
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020048 ],
49)
50
51# CockroachDB repository used for linter passes.
52http_archive(
53 name = "com_github_cockroachdb_cockroach",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020054 integrity = "sha256-bDVo7yRM5rh0aU7u7Lg+1PXV3/bPA3yVLs3naCimxQI=",
55 strip_prefix = "cockroach-" + COCKROACH_VERSION,
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020056 urls = [
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020057 "https://github.com/cockroachdb/cockroach/archive/v%s.tar.gz" % COCKROACH_VERSION,
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020058 ],
59)
60
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020061# Derived from Mozilla NSS, currently needed for containerd to be able to pull images
62http_file(
63 name = "cacerts",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020064 integrity = "sha256-G/RYQSVo4TSkUU9eFwoyjREJHgcccRCVXJiE7YeXKsk=",
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020065 urls = ["https://curl.se/ca/cacert-2024-07-02.pem"],
66)
67
68# lz4, the library and the tool.
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020069LZ4_VERSION = "1.9.2"
70
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020071http_archive(
72 name = "com_github_lz4_lz4",
73 patch_args = ["-p1"],
74 patches = ["//third_party/lz4:build.patch"],
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020075 strip_prefix = "lz4-" + LZ4_VERSION,
76 urls = ["https://github.com/lz4/lz4/archive/v%s.tar.gz" % LZ4_VERSION],
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020077)
78
79# ini.h, a tiny ini parser library
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020080INIH_VERSION = "r53"
81
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020082http_archive(
83 name = "inih",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020084 build_file = "//third_party/inih:inih.bzl",
85 integrity = "sha256-AbA2b9/fY2PvwHDC+Fbxr6M+emVGVIutpUVq2UpRYkE=",
86 strip_prefix = "inih-" + INIH_VERSION,
87 urls = ["https://github.com/benhoyt/inih/archive/%s.tar.gz" % INIH_VERSION],
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020088)
89
90# qboot bootloader for MicroVMs
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020091QBOOT_VERSION = "a5300c4949b8d4de2d34bedfaed66793f48ec948"
92
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020093http_archive(
94 name = "com_github_bonzini_qboot",
95 build_file = "//third_party/qboot:qboot.bzl",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +020096 integrity = "sha256-pkOySG++5XuWllnUCJhAlMqa+hoEgxfdP10wIuRyE+g=",
97 strip_prefix = "qboot-" + QBOOT_VERSION,
98 urls = ["https://github.com/bonzini/qboot/archive/%s.tar.gz" % QBOOT_VERSION],
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +020099)
100
101git_repository(
102 name = "gperf",
103 commit = "de9373c2d48a3edf29862eb8be44764a7f7d24c6",
104 remote = "https://github.com/monogon-dev/gperf.git",
105 shallow_since = "1615306886 +0100",
106)
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200107
Lorenz Brun8448d702024-09-11 16:31:12 +0000108LINUX_VERSION = "6.6.50"
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200109
110http_archive(
111 name = "linux",
112 build_file = "//third_party/linux/external:BUILD.repo",
Lorenz Brun8448d702024-09-11 16:31:12 +0000113 integrity = "sha256-wGXjba8oIQBgyRo37z6SrFgUeE5jRXfgTkBil+rS6G4=",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200114 patch_args = ["-p1"],
115 patches = [
116 "//third_party/linux/external:0001-block-partition-expose-PARTUUID-through-uevent.patch",
117 "//third_party/linux/external:disable-static-ifs.patch",
118 "//third_party/linux/external:enable-pmsg.patch",
119 "//third_party/linux/external:lacp_fix.patch",
Lorenz Brunc7a332b2024-09-12 17:58:42 +0200120 "//third_party/linux/external:fb-devs-knob.patch",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200121 ],
122 strip_prefix = "linux-" + LINUX_VERSION,
123 urls = ["https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-%s.tar.xz" % LINUX_VERSION],
124)
125
Lorenz Brun25458952024-09-11 16:35:28 +0000126LINUX_FIRMWARE_VERSION = "20240909"
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200127
128http_archive(
129 name = "linux-firmware",
130 build_file = "//third_party/linux-firmware:BUILD.repo",
Lorenz Brun25458952024-09-11 16:35:28 +0000131 integrity = "sha256-k+m2riJAZhY5yHT1/Dj2d9GK/jZbF6E/7mtPxPukLBA=",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200132 strip_prefix = "linux-firmware-" + LINUX_FIRMWARE_VERSION,
133 urls = ["https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-%s.tar.gz" % LINUX_FIRMWARE_VERSION],
134)
135
Lorenz Brunc752ec62024-09-11 16:36:43 +0000136INTEL_UCODE_VERSION = "20240910"
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200137
138http_archive(
139 name = "intel_ucode",
140 build_file = "//third_party/intel_ucode:BUILD.repo",
Lorenz Brunc752ec62024-09-11 16:36:43 +0000141 integrity = "sha256-i3WC6sfpppE1bhizvcvHstsJSU4EDsmApKX7bQ2iYb8=",
Tim Windelschmidte1420ab2024-08-27 01:53:16 +0200142 strip_prefix = "Intel-Linux-Processor-Microcode-Data-Files-microcode-" + INTEL_UCODE_VERSION,
143 urls = ["https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/refs/tags/microcode-%s.tar.gz" % INTEL_UCODE_VERSION],
144)
145
146git_repository(
147 name = "edk2",
148 build_file = "//third_party/edk2/external:BUILD.repo",
149 commit = "b24306f15daa2ff8510b06702114724b33895d3c", # stable202202
150 patch_args = ["-p1"],
151 patches = [
152 "//third_party/edk2/patches:disable-werror.patch",
153 "//third_party/edk2/patches:remove-brotli-build.patch",
154 ],
155 recursive_init_submodules = True,
156 remote = "https://github.com/tianocore/edk2",
157 shallow_since = "1645456780 +0000",
158)
159
160MUSL_VERSION = "1.1.24"
161
162http_archive(
163 name = "musl",
164 build_file = "//third_party/musl:BUILD.repo",
165 integrity = "sha256-E3DJqBKyzyp9koAlEMygBYzDfmanvt1wBR8KNAFQIqM=",
166 strip_prefix = "musl-" + MUSL_VERSION,
167 urls = ["https://www.musl-libc.org/releases/musl-%s.tar.gz" % MUSL_VERSION],
168)
169
170UTIL_LINUX_VERSION = "2.36.2"
171
172http_archive(
173 name = "util_linux",
174 build_file = "//third_party/util-linux:util-linux.bzl",
175 integrity = "sha256-CEvG+b1Hm/146JJOY/hbsXlTaBvx2tJA5NhgGiEpTQs=",
176 patch_args = ["-p1"],
177 patches = ["//third_party/util-linux/patches:bazel_cc_fix.patch"],
178 strip_prefix = "util-linux-" + UTIL_LINUX_VERSION,
179 urls = ["https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/snapshot/util-linux-%s.tar.gz" % UTIL_LINUX_VERSION],
180)
181
182URCU_VERSION = "0.14.0"
183
184http_archive(
185 name = "urcu",
186 build_file = "//third_party/urcu:urcu.bzl",
187 integrity = "sha256-QvtRKaP//lpLeQ3+HqOnNMae4JX++/ZJMmJpu6lMJi0=",
188 patch_args = ["-p1"],
189 patches = ["//third_party/urcu/patches:generated-files.patch"],
190 strip_prefix = "userspace-rcu-" + URCU_VERSION,
191 urls = ["https://github.com/urcu/userspace-rcu/archive/refs/tags/v%s.tar.gz" % URCU_VERSION],
192)
193
194XFSPROGS_VERSION = "6.9.0"
195
196http_archive(
197 name = "xfsprogs",
198 build_file = "//third_party/xfsprogs:xfsprogs.bzl",
199 integrity = "sha256-/nIGlou9gXd1S6cy9jn4Ubacj3CsX5a7DhgtiGZBQL8=",
200 patch_args = ["-p1"],
201 patches = ["//third_party/xfsprogs/patches:bazel_cc_fix.patch"],
202 strip_prefix = "xfsprogs-dev-" + XFSPROGS_VERSION,
203 urls = ["https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-%s.tar.gz" % XFSPROGS_VERSION],
204)
205
206PIXMAN_VERSION = "0.40.0"
207
208http_archive(
209 name = "pixman",
210 build_file = "//third_party/pixman:pixman.bzl",
211 integrity = "sha256-bSAN7DdA2exOyNEYDiV3nAC8dJ+UJ4yLkCH1U02yI/w=",
212 strip_prefix = "pixman-" + PIXMAN_VERSION + "/pixman",
213 urls = ["https://www.cairographics.org/releases/pixman-%s.tar.gz" % PIXMAN_VERSION],
214)
215
216URING_VERSION = "2.0"
217
218http_archive(
219 name = "uring",
220 build_file = "//third_party/uring:uring.bzl",
221 integrity = "sha256-ygaezEqhuvEDG9dy5Ol/fibftrtzPXn3AVlYmyKrTcA=",
222 patch_args = ["-p1"],
223 patches = [
224 "//third_party/uring/patches:bazel_cc_fix.patch",
225 "//third_party/uring/patches:include-compat-h.patch",
226 ],
227 strip_prefix = "liburing-liburing-" + URING_VERSION,
228 urls = ["https://github.com/axboe/liburing/archive/liburing-%s.tar.gz" % URING_VERSION],
229)
230
231# NOTE: Remember to update seccomp.bzl's seccomp.h template rule
232# with the correct version.
233SECCOMP_VERSION = "2.5.1"
234
235http_archive(
236 name = "seccomp",
237 build_file = "//third_party/seccomp:seccomp.bzl",
238 integrity = "sha256-dq1U4x0UOzmpkINWQEUhKpZeAmoQEKdC7deT0m1pmCk=",
239 patch_args = ["-p1"],
240 patches = [
241 "//third_party/seccomp/patches:bazel_cc_fix.patch",
242 "//third_party/seccomp/patches:fix_generated_includes.patch",
243 ],
244 strip_prefix = "libseccomp-" + SECCOMP_VERSION,
245 # We cannot use the actual release tarball as it contains files generated incorrectly for our environment
246 urls = ["https://github.com/seccomp/libseccomp/archive/v%s.tar.gz" % SECCOMP_VERSION],
247)
248
249GLIB_VERSION = "2.67.5"
250
251http_archive(
252 name = "glib",
253 integrity = "sha256-QQlm23EmONx0kFTAo8MIdUXVEGZDE5wlgGOZpRqNSrE=",
254 patch_args = [
255 "-p1",
256 "-u",
257 ],
258 patches = [
259 "//third_party/glib/patches:bazel_cc_fix.patch",
260 "//third_party/glib/patches:bazel_support.patch",
261 ],
262 strip_prefix = "glib-" + GLIB_VERSION,
263 # We cannot use the actual release tarball as it contains files generated incorrectly for our environment
264 urls = ["https://gitlab.gnome.org/GNOME/glib/-/archive/%s/glib-%s.tar.gz" % (GLIB_VERSION, GLIB_VERSION)],
265)
266
267QEMU_VERSION = "5.2.0"
268
269http_archive(
270 name = "qemu",
271 integrity = "sha256-yxjYibYo++Y3ZysDJnidmw47gCfgRFuTZTfHhUnfF7w=",
272 patch_args = ["-p1"],
273 patches = [
274 "//third_party/qemu/patches:fix_code_issues.patch",
275 "//third_party/qemu/patches:bazel_support.patch",
276 "//third_party/qemu/patches:pregenerated_config_files.patch",
277 "//third_party/qemu/patches:headers_fix.patch",
278 "//third_party/qemu/patches:linux-headers-update.patch",
279 "//third_party/qemu/patches:standard-headers-removal.patch",
280 ],
281 strip_prefix = "qemu-" + QEMU_VERSION,
282 urls = ["https://download.qemu.org/qemu-%s.tar.xz" % QEMU_VERSION],
283)
284
285# ONCHANGE(//third_party/chrony:chrony.bzl): version needs to be kept in sync
286CHRONY_VERSION = "4.1"
287
288http_archive(
289 name = "chrony",
290 build_file = "//third_party/chrony:chrony.bzl",
291 integrity = "sha256-7Xby0/k0esYiGpGtS9VT3QVlrBiM10kNCAHQj3FxFkw=",
292 patch_args = ["-p1"],
293 patches = [
294 "//third_party/chrony/patches:disable_defaults.patch",
295 "//third_party/chrony/patches:support_fixed_uids.patch",
296 ],
297 strip_prefix = "chrony-" + CHRONY_VERSION,
298 urls = ["https://download.tuxfamily.org/chrony/chrony-%s.tar.gz" % CHRONY_VERSION],
299)
300
301CAP_VERSION = "1.2.55"
302
303http_archive(
304 name = "cap",
305 build_file = "//third_party/cap:cap.bzl",
306 integrity = "sha256-4pMiAy6pTpBpauLRdTDtyRTHF2UjLuj9T944umOcslY=",
307 patch_args = ["-p1"],
308 patches = [
309 "//third_party/cap/patches:add_go_codegen.patch",
310 ],
311 strip_prefix = "libcap-cap/v%s/libcap" % CAP_VERSION,
312 urls = ["https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v%s.tar.gz" % CAP_VERSION],
313)
314
315GNUEFI_VERSION = "3.0.14"
316
317http_archive(
318 name = "gnuefi",
319 build_file = "//third_party/gnuefi:gnuefi.bzl",
320 integrity = "sha256-V4XneCX+xeZm5MINeqqa9M2VI1GywJWTlydE/oQ2+Vc=",
321 strip_prefix = "gnu-efi-%s" % GNUEFI_VERSION,
322 urls = ["https://github.com/ncroxon/gnu-efi/archive/refs/tags/%s.tar.gz" % GNUEFI_VERSION],
323)
324
325# Developed in the systemd monorepo, pinned to master as there have been a bunch of critical fixes for the
326# EFI stub since 249.
327EFISTUB_VERSION = "3542da2442d8b29661b47c42ad7e5fa9bc8562ec"
328
329http_archive(
330 name = "efistub",
331 build_file = "//third_party/efistub:efistub.bzl",
332 integrity = "sha256-AhwTW+45ynNG0fCZI758BEo9NYZv9BGnyWJnAv9MlSM=",
333 patch_args = ["-p1"],
334 patches = [
335 "//third_party/efistub/patches:use-sysv-for-kernel.patch",
336 "//third_party/efistub/patches:remove-wrong-cmdline-assertion.patch",
337 "//third_party/efistub/patches:ab-slot-handling.patch",
338 ],
339 strip_prefix = "systemd-%s" % EFISTUB_VERSION,
340 urls = ["https://github.com/systemd/systemd/archive/%s.zip" % EFISTUB_VERSION],
341)
342
343LIBPG_QUERY_VERSION = "15-4.2.3"
344
345http_archive(
346 name = "libpg_query",
347 build_file = "//third_party/libpg_query/external:BUILD.repo",
348 integrity = "sha256-i4INY0QrFnfOTw3yqVs/r9vFIKgpAd74EhdVnsTfnms=",
349 strip_prefix = "libpg_query-" + LIBPG_QUERY_VERSION,
350 urls = ["https://github.com/pganalyze/libpg_query/archive/refs/tags/%s.tar.gz" % LIBPG_QUERY_VERSION],
351)
352
353DOSFSTOOLS_VERSION = "c888797b1d84ffbb949f147e3116e8bfb2e145a7"
354
355http_archive(
356 name = "com_github_dosfstools_dosfstools",
357 build_file = "//third_party/dosfstools:dosfstools.bzl",
358 integrity = "sha256-SkC0iMDCWcEftUeD/G8B5e6RJYK7SdM9DRGxH4WkLo0=",
359 strip_prefix = "dosfstools-" + DOSFSTOOLS_VERSION,
360 urls = ["https://github.com/dosfstools/dosfstools/archive/%s.zip" % DOSFSTOOLS_VERSION],
361)
362
363# master at 2024/01/09 (0.10.0 prerelease).
364LIBTPMS_VERSION = "93a827aeccd3ab2178281571b1545dcfffa2991b"
365
366http_archive(
367 name = "libtpms",
368 integrity = "sha256-5QnguhCfd9pRe15YqfCTvrBAUl5r5R3gbRFTyCeMcNE=",
369 patch_args = ["-p1"],
370 patches = [
371 "//third_party/libtpms/patches:0001-boringssl-compat-new-SHA-types.patch",
372 "//third_party/libtpms/patches:0002-boringssl-compat-removed-const_DES_cblock.patch",
373 "//third_party/libtpms/patches:0003-boringssl-compat-removed-EC_POINTs_mul.patch",
374 "//third_party/libtpms/patches:0004-boringssl-compat-removed-camellia-support.patch",
375 "//third_party/libtpms/patches:0005-boringssl-compat-remove-constant-time-flags-UNSAFE.patch",
376 "//third_party/libtpms/patches:0006-bazel-support-implement.patch",
377 ],
378 strip_prefix = "libtpms-" + LIBTPMS_VERSION,
379 urls = ["https://github.com/stefanberger/libtpms/archive/%s.tar.gz" % LIBTPMS_VERSION],
380)
381
382# master at 2024/06/04
383SWTPM_VERSION = "0c9a6c4a12a63b86ab472e69e95bd75853d4fa96"
384
385http_archive(
386 name = "swtpm",
387 integrity = "sha256-Fp3bE5WX+oCOES1FJFdEXHntUhuzT5mQZtIN6SFAVs4=",
388 patch_args = ["-p1"],
389 patches = [
390 "//third_party/swtpm/patches:0001-bazel-compat-glib.h-glib-glib.h.patch",
391 "//third_party/swtpm/patches:0002-swtpm_localca-replace-gmp-mpz-dependency-with-boring.patch",
392 "//third_party/swtpm/patches:0003-swtpm_setup-replace-dep-on-JSON-GLib-with-sheredom-j.patch",
393 "//third_party/swtpm/patches:0004-bazel-support-implement.patch",
394 ],
395 strip_prefix = "swtpm-" + SWTPM_VERSION,
396 urls = ["https://github.com/stefanberger/swtpm/archive/%s.tar.gz" % SWTPM_VERSION],
397)