blob: fa68cb89444b9cfcc09b6388cbf801294a04cd06 [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",
21 integrity = "sha256-p0peRHUdKS0XvYeeWqi0C6qUtdwvBD3x46y7PiPq0HM=",
22 strip_prefix = "nogo-analyzer-0.0.2",
23 urls = [
24 "https://github.com/sluongng/nogo-analyzer/archive/refs/tags/v0.0.2.tar.gz",
25 ],
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
108LINUX_VERSION = "6.6.42"
109
110http_archive(
111 name = "linux",
112 build_file = "//third_party/linux/external:BUILD.repo",
113 integrity = "sha256-iAHIwpfXdOdgRJd+w9BoQ5ncTnzONH1zCHTseLd05oM=",
114 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",
120 ],
121 strip_prefix = "linux-" + LINUX_VERSION,
122 urls = ["https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-%s.tar.xz" % LINUX_VERSION],
123)
124
125LINUX_FIRMWARE_VERSION = "20240513"
126
127http_archive(
128 name = "linux-firmware",
129 build_file = "//third_party/linux-firmware:BUILD.repo",
130 integrity = "sha256-tyJDZOH9fua4A/hhdH+czefCAwr5Of3B7uoIPqhc5Rw=",
131 strip_prefix = "linux-firmware-" + LINUX_FIRMWARE_VERSION,
132 urls = ["https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-%s.tar.gz" % LINUX_FIRMWARE_VERSION],
133)
134
135INTEL_UCODE_VERSION = "20231114"
136
137http_archive(
138 name = "intel_ucode",
139 build_file = "//third_party/intel_ucode:BUILD.repo",
140 integrity = "sha256-zuJvMR9+LAOd1IzTD5lRg73puY+0wwOYAOLdr1wJDlU=",
141 strip_prefix = "Intel-Linux-Processor-Microcode-Data-Files-microcode-" + INTEL_UCODE_VERSION,
142 urls = ["https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/refs/tags/microcode-%s.tar.gz" % INTEL_UCODE_VERSION],
143)
144
145git_repository(
146 name = "edk2",
147 build_file = "//third_party/edk2/external:BUILD.repo",
148 commit = "b24306f15daa2ff8510b06702114724b33895d3c", # stable202202
149 patch_args = ["-p1"],
150 patches = [
151 "//third_party/edk2/patches:disable-werror.patch",
152 "//third_party/edk2/patches:remove-brotli-build.patch",
153 ],
154 recursive_init_submodules = True,
155 remote = "https://github.com/tianocore/edk2",
156 shallow_since = "1645456780 +0000",
157)
158
159MUSL_VERSION = "1.1.24"
160
161http_archive(
162 name = "musl",
163 build_file = "//third_party/musl:BUILD.repo",
164 integrity = "sha256-E3DJqBKyzyp9koAlEMygBYzDfmanvt1wBR8KNAFQIqM=",
165 strip_prefix = "musl-" + MUSL_VERSION,
166 urls = ["https://www.musl-libc.org/releases/musl-%s.tar.gz" % MUSL_VERSION],
167)
168
169UTIL_LINUX_VERSION = "2.36.2"
170
171http_archive(
172 name = "util_linux",
173 build_file = "//third_party/util-linux:util-linux.bzl",
174 integrity = "sha256-CEvG+b1Hm/146JJOY/hbsXlTaBvx2tJA5NhgGiEpTQs=",
175 patch_args = ["-p1"],
176 patches = ["//third_party/util-linux/patches:bazel_cc_fix.patch"],
177 strip_prefix = "util-linux-" + UTIL_LINUX_VERSION,
178 urls = ["https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/snapshot/util-linux-%s.tar.gz" % UTIL_LINUX_VERSION],
179)
180
181URCU_VERSION = "0.14.0"
182
183http_archive(
184 name = "urcu",
185 build_file = "//third_party/urcu:urcu.bzl",
186 integrity = "sha256-QvtRKaP//lpLeQ3+HqOnNMae4JX++/ZJMmJpu6lMJi0=",
187 patch_args = ["-p1"],
188 patches = ["//third_party/urcu/patches:generated-files.patch"],
189 strip_prefix = "userspace-rcu-" + URCU_VERSION,
190 urls = ["https://github.com/urcu/userspace-rcu/archive/refs/tags/v%s.tar.gz" % URCU_VERSION],
191)
192
193XFSPROGS_VERSION = "6.9.0"
194
195http_archive(
196 name = "xfsprogs",
197 build_file = "//third_party/xfsprogs:xfsprogs.bzl",
198 integrity = "sha256-/nIGlou9gXd1S6cy9jn4Ubacj3CsX5a7DhgtiGZBQL8=",
199 patch_args = ["-p1"],
200 patches = ["//third_party/xfsprogs/patches:bazel_cc_fix.patch"],
201 strip_prefix = "xfsprogs-dev-" + XFSPROGS_VERSION,
202 urls = ["https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/snapshot/xfsprogs-dev-%s.tar.gz" % XFSPROGS_VERSION],
203)
204
205PIXMAN_VERSION = "0.40.0"
206
207http_archive(
208 name = "pixman",
209 build_file = "//third_party/pixman:pixman.bzl",
210 integrity = "sha256-bSAN7DdA2exOyNEYDiV3nAC8dJ+UJ4yLkCH1U02yI/w=",
211 strip_prefix = "pixman-" + PIXMAN_VERSION + "/pixman",
212 urls = ["https://www.cairographics.org/releases/pixman-%s.tar.gz" % PIXMAN_VERSION],
213)
214
215URING_VERSION = "2.0"
216
217http_archive(
218 name = "uring",
219 build_file = "//third_party/uring:uring.bzl",
220 integrity = "sha256-ygaezEqhuvEDG9dy5Ol/fibftrtzPXn3AVlYmyKrTcA=",
221 patch_args = ["-p1"],
222 patches = [
223 "//third_party/uring/patches:bazel_cc_fix.patch",
224 "//third_party/uring/patches:include-compat-h.patch",
225 ],
226 strip_prefix = "liburing-liburing-" + URING_VERSION,
227 urls = ["https://github.com/axboe/liburing/archive/liburing-%s.tar.gz" % URING_VERSION],
228)
229
230# NOTE: Remember to update seccomp.bzl's seccomp.h template rule
231# with the correct version.
232SECCOMP_VERSION = "2.5.1"
233
234http_archive(
235 name = "seccomp",
236 build_file = "//third_party/seccomp:seccomp.bzl",
237 integrity = "sha256-dq1U4x0UOzmpkINWQEUhKpZeAmoQEKdC7deT0m1pmCk=",
238 patch_args = ["-p1"],
239 patches = [
240 "//third_party/seccomp/patches:bazel_cc_fix.patch",
241 "//third_party/seccomp/patches:fix_generated_includes.patch",
242 ],
243 strip_prefix = "libseccomp-" + SECCOMP_VERSION,
244 # We cannot use the actual release tarball as it contains files generated incorrectly for our environment
245 urls = ["https://github.com/seccomp/libseccomp/archive/v%s.tar.gz" % SECCOMP_VERSION],
246)
247
248GLIB_VERSION = "2.67.5"
249
250http_archive(
251 name = "glib",
252 integrity = "sha256-QQlm23EmONx0kFTAo8MIdUXVEGZDE5wlgGOZpRqNSrE=",
253 patch_args = [
254 "-p1",
255 "-u",
256 ],
257 patches = [
258 "//third_party/glib/patches:bazel_cc_fix.patch",
259 "//third_party/glib/patches:bazel_support.patch",
260 ],
261 strip_prefix = "glib-" + GLIB_VERSION,
262 # We cannot use the actual release tarball as it contains files generated incorrectly for our environment
263 urls = ["https://gitlab.gnome.org/GNOME/glib/-/archive/%s/glib-%s.tar.gz" % (GLIB_VERSION, GLIB_VERSION)],
264)
265
266QEMU_VERSION = "5.2.0"
267
268http_archive(
269 name = "qemu",
270 integrity = "sha256-yxjYibYo++Y3ZysDJnidmw47gCfgRFuTZTfHhUnfF7w=",
271 patch_args = ["-p1"],
272 patches = [
273 "//third_party/qemu/patches:fix_code_issues.patch",
274 "//third_party/qemu/patches:bazel_support.patch",
275 "//third_party/qemu/patches:pregenerated_config_files.patch",
276 "//third_party/qemu/patches:headers_fix.patch",
277 "//third_party/qemu/patches:linux-headers-update.patch",
278 "//third_party/qemu/patches:standard-headers-removal.patch",
279 ],
280 strip_prefix = "qemu-" + QEMU_VERSION,
281 urls = ["https://download.qemu.org/qemu-%s.tar.xz" % QEMU_VERSION],
282)
283
284# ONCHANGE(//third_party/chrony:chrony.bzl): version needs to be kept in sync
285CHRONY_VERSION = "4.1"
286
287http_archive(
288 name = "chrony",
289 build_file = "//third_party/chrony:chrony.bzl",
290 integrity = "sha256-7Xby0/k0esYiGpGtS9VT3QVlrBiM10kNCAHQj3FxFkw=",
291 patch_args = ["-p1"],
292 patches = [
293 "//third_party/chrony/patches:disable_defaults.patch",
294 "//third_party/chrony/patches:support_fixed_uids.patch",
295 ],
296 strip_prefix = "chrony-" + CHRONY_VERSION,
297 urls = ["https://download.tuxfamily.org/chrony/chrony-%s.tar.gz" % CHRONY_VERSION],
298)
299
300CAP_VERSION = "1.2.55"
301
302http_archive(
303 name = "cap",
304 build_file = "//third_party/cap:cap.bzl",
305 integrity = "sha256-4pMiAy6pTpBpauLRdTDtyRTHF2UjLuj9T944umOcslY=",
306 patch_args = ["-p1"],
307 patches = [
308 "//third_party/cap/patches:add_go_codegen.patch",
309 ],
310 strip_prefix = "libcap-cap/v%s/libcap" % CAP_VERSION,
311 urls = ["https://git.kernel.org/pub/scm/libs/libcap/libcap.git/snapshot/libcap-cap/v%s.tar.gz" % CAP_VERSION],
312)
313
314GNUEFI_VERSION = "3.0.14"
315
316http_archive(
317 name = "gnuefi",
318 build_file = "//third_party/gnuefi:gnuefi.bzl",
319 integrity = "sha256-V4XneCX+xeZm5MINeqqa9M2VI1GywJWTlydE/oQ2+Vc=",
320 strip_prefix = "gnu-efi-%s" % GNUEFI_VERSION,
321 urls = ["https://github.com/ncroxon/gnu-efi/archive/refs/tags/%s.tar.gz" % GNUEFI_VERSION],
322)
323
324# Developed in the systemd monorepo, pinned to master as there have been a bunch of critical fixes for the
325# EFI stub since 249.
326EFISTUB_VERSION = "3542da2442d8b29661b47c42ad7e5fa9bc8562ec"
327
328http_archive(
329 name = "efistub",
330 build_file = "//third_party/efistub:efistub.bzl",
331 integrity = "sha256-AhwTW+45ynNG0fCZI758BEo9NYZv9BGnyWJnAv9MlSM=",
332 patch_args = ["-p1"],
333 patches = [
334 "//third_party/efistub/patches:use-sysv-for-kernel.patch",
335 "//third_party/efistub/patches:remove-wrong-cmdline-assertion.patch",
336 "//third_party/efistub/patches:ab-slot-handling.patch",
337 ],
338 strip_prefix = "systemd-%s" % EFISTUB_VERSION,
339 urls = ["https://github.com/systemd/systemd/archive/%s.zip" % EFISTUB_VERSION],
340)
341
342LIBPG_QUERY_VERSION = "15-4.2.3"
343
344http_archive(
345 name = "libpg_query",
346 build_file = "//third_party/libpg_query/external:BUILD.repo",
347 integrity = "sha256-i4INY0QrFnfOTw3yqVs/r9vFIKgpAd74EhdVnsTfnms=",
348 strip_prefix = "libpg_query-" + LIBPG_QUERY_VERSION,
349 urls = ["https://github.com/pganalyze/libpg_query/archive/refs/tags/%s.tar.gz" % LIBPG_QUERY_VERSION],
350)
351
352DOSFSTOOLS_VERSION = "c888797b1d84ffbb949f147e3116e8bfb2e145a7"
353
354http_archive(
355 name = "com_github_dosfstools_dosfstools",
356 build_file = "//third_party/dosfstools:dosfstools.bzl",
357 integrity = "sha256-SkC0iMDCWcEftUeD/G8B5e6RJYK7SdM9DRGxH4WkLo0=",
358 strip_prefix = "dosfstools-" + DOSFSTOOLS_VERSION,
359 urls = ["https://github.com/dosfstools/dosfstools/archive/%s.zip" % DOSFSTOOLS_VERSION],
360)
361
362# master at 2024/01/09 (0.10.0 prerelease).
363LIBTPMS_VERSION = "93a827aeccd3ab2178281571b1545dcfffa2991b"
364
365http_archive(
366 name = "libtpms",
367 integrity = "sha256-5QnguhCfd9pRe15YqfCTvrBAUl5r5R3gbRFTyCeMcNE=",
368 patch_args = ["-p1"],
369 patches = [
370 "//third_party/libtpms/patches:0001-boringssl-compat-new-SHA-types.patch",
371 "//third_party/libtpms/patches:0002-boringssl-compat-removed-const_DES_cblock.patch",
372 "//third_party/libtpms/patches:0003-boringssl-compat-removed-EC_POINTs_mul.patch",
373 "//third_party/libtpms/patches:0004-boringssl-compat-removed-camellia-support.patch",
374 "//third_party/libtpms/patches:0005-boringssl-compat-remove-constant-time-flags-UNSAFE.patch",
375 "//third_party/libtpms/patches:0006-bazel-support-implement.patch",
376 ],
377 strip_prefix = "libtpms-" + LIBTPMS_VERSION,
378 urls = ["https://github.com/stefanberger/libtpms/archive/%s.tar.gz" % LIBTPMS_VERSION],
379)
380
381# master at 2024/06/04
382SWTPM_VERSION = "0c9a6c4a12a63b86ab472e69e95bd75853d4fa96"
383
384http_archive(
385 name = "swtpm",
386 integrity = "sha256-Fp3bE5WX+oCOES1FJFdEXHntUhuzT5mQZtIN6SFAVs4=",
387 patch_args = ["-p1"],
388 patches = [
389 "//third_party/swtpm/patches:0001-bazel-compat-glib.h-glib-glib.h.patch",
390 "//third_party/swtpm/patches:0002-swtpm_localca-replace-gmp-mpz-dependency-with-boring.patch",
391 "//third_party/swtpm/patches:0003-swtpm_setup-replace-dep-on-JSON-GLib-with-sheredom-j.patch",
392 "//third_party/swtpm/patches:0004-bazel-support-implement.patch",
393 ],
394 strip_prefix = "swtpm-" + SWTPM_VERSION,
395 urls = ["https://github.com/stefanberger/swtpm/archive/%s.tar.gz" % SWTPM_VERSION],
396)