| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 1 | # third_party external repositories |
| 2 | |
| 3 | git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
| Tim Windelschmidt | 6b1b79a | 2024-08-27 00:04:18 +0200 | [diff] [blame] | 4 | |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 5 | http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| Tim Windelschmidt | 6b1b79a | 2024-08-27 00:04:18 +0200 | [diff] [blame] | 6 | |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 7 | http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") |
| 8 | |
| 9 | # Used by tests in cloud/takeover |
| 10 | http_file( |
| 11 | name = "debian_11_cloudimage", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 12 | integrity = "sha256-FMruxoujEpoRWptXOW0I3AlzzJ9WnOBJIy19FddorUE=", |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 13 | 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 |
| 19 | http_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 | |
| 28 | git_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 Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 38 | COCKROACH_VERSION = "22.1.6" |
| 39 | |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 40 | http_archive( |
| 41 | name = "cockroach", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 42 | build_file = "//third_party/cockroach:BUILD.repo", |
| 43 | integrity = "sha256-CCHP9XcEAPuUyLbCqzONlvQRT78rMga8im3PYvnA9Oo=", |
| 44 | strip_prefix = "cockroach-v%s.linux-amd64" % COCKROACH_VERSION, |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 45 | urls = [ |
| 46 | # TODO: select() to pick other host architectures. |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 47 | "https://binaries.cockroachdb.com/cockroach-v%s.linux-amd64.tgz" % COCKROACH_VERSION, |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 48 | ], |
| 49 | ) |
| 50 | |
| 51 | # CockroachDB repository used for linter passes. |
| 52 | http_archive( |
| 53 | name = "com_github_cockroachdb_cockroach", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 54 | integrity = "sha256-bDVo7yRM5rh0aU7u7Lg+1PXV3/bPA3yVLs3naCimxQI=", |
| 55 | strip_prefix = "cockroach-" + COCKROACH_VERSION, |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 56 | urls = [ |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 57 | "https://github.com/cockroachdb/cockroach/archive/v%s.tar.gz" % COCKROACH_VERSION, |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 58 | ], |
| 59 | ) |
| 60 | |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 61 | # Derived from Mozilla NSS, currently needed for containerd to be able to pull images |
| 62 | http_file( |
| 63 | name = "cacerts", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 64 | integrity = "sha256-G/RYQSVo4TSkUU9eFwoyjREJHgcccRCVXJiE7YeXKsk=", |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 65 | urls = ["https://curl.se/ca/cacert-2024-07-02.pem"], |
| 66 | ) |
| 67 | |
| 68 | # lz4, the library and the tool. |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 69 | LZ4_VERSION = "1.9.2" |
| 70 | |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 71 | http_archive( |
| 72 | name = "com_github_lz4_lz4", |
| 73 | patch_args = ["-p1"], |
| 74 | patches = ["//third_party/lz4:build.patch"], |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 75 | strip_prefix = "lz4-" + LZ4_VERSION, |
| 76 | urls = ["https://github.com/lz4/lz4/archive/v%s.tar.gz" % LZ4_VERSION], |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 77 | ) |
| 78 | |
| 79 | # ini.h, a tiny ini parser library |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 80 | INIH_VERSION = "r53" |
| 81 | |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 82 | http_archive( |
| 83 | name = "inih", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 84 | 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 Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 88 | ) |
| 89 | |
| 90 | # qboot bootloader for MicroVMs |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 91 | QBOOT_VERSION = "a5300c4949b8d4de2d34bedfaed66793f48ec948" |
| 92 | |
| Tim Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 93 | http_archive( |
| 94 | name = "com_github_bonzini_qboot", |
| 95 | build_file = "//third_party/qboot:qboot.bzl", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 96 | 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 Windelschmidt | 4a3e05f | 2024-07-30 18:19:21 +0200 | [diff] [blame] | 99 | ) |
| 100 | |
| 101 | git_repository( |
| 102 | name = "gperf", |
| 103 | commit = "de9373c2d48a3edf29862eb8be44764a7f7d24c6", |
| 104 | remote = "https://github.com/monogon-dev/gperf.git", |
| 105 | shallow_since = "1615306886 +0100", |
| 106 | ) |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 107 | |
| Lorenz Brun | 8448d70 | 2024-09-11 16:31:12 +0000 | [diff] [blame] | 108 | LINUX_VERSION = "6.6.50" |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 109 | |
| 110 | http_archive( |
| 111 | name = "linux", |
| 112 | build_file = "//third_party/linux/external:BUILD.repo", |
| Lorenz Brun | 8448d70 | 2024-09-11 16:31:12 +0000 | [diff] [blame] | 113 | integrity = "sha256-wGXjba8oIQBgyRo37z6SrFgUeE5jRXfgTkBil+rS6G4=", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 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", |
| Lorenz Brun | c7a332b | 2024-09-12 17:58:42 +0200 | [diff] [blame^] | 120 | "//third_party/linux/external:fb-devs-knob.patch", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 121 | ], |
| 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 Brun | 2545895 | 2024-09-11 16:35:28 +0000 | [diff] [blame] | 126 | LINUX_FIRMWARE_VERSION = "20240909" |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 127 | |
| 128 | http_archive( |
| 129 | name = "linux-firmware", |
| 130 | build_file = "//third_party/linux-firmware:BUILD.repo", |
| Lorenz Brun | 2545895 | 2024-09-11 16:35:28 +0000 | [diff] [blame] | 131 | integrity = "sha256-k+m2riJAZhY5yHT1/Dj2d9GK/jZbF6E/7mtPxPukLBA=", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 132 | 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 Brun | c752ec6 | 2024-09-11 16:36:43 +0000 | [diff] [blame] | 136 | INTEL_UCODE_VERSION = "20240910" |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 137 | |
| 138 | http_archive( |
| 139 | name = "intel_ucode", |
| 140 | build_file = "//third_party/intel_ucode:BUILD.repo", |
| Lorenz Brun | c752ec6 | 2024-09-11 16:36:43 +0000 | [diff] [blame] | 141 | integrity = "sha256-i3WC6sfpppE1bhizvcvHstsJSU4EDsmApKX7bQ2iYb8=", |
| Tim Windelschmidt | e1420ab | 2024-08-27 01:53:16 +0200 | [diff] [blame] | 142 | 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 | |
| 146 | git_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 | |
| 160 | MUSL_VERSION = "1.1.24" |
| 161 | |
| 162 | http_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 | |
| 170 | UTIL_LINUX_VERSION = "2.36.2" |
| 171 | |
| 172 | http_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 | |
| 182 | URCU_VERSION = "0.14.0" |
| 183 | |
| 184 | http_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 | |
| 194 | XFSPROGS_VERSION = "6.9.0" |
| 195 | |
| 196 | http_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 | |
| 206 | PIXMAN_VERSION = "0.40.0" |
| 207 | |
| 208 | http_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 | |
| 216 | URING_VERSION = "2.0" |
| 217 | |
| 218 | http_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. |
| 233 | SECCOMP_VERSION = "2.5.1" |
| 234 | |
| 235 | http_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 | |
| 249 | GLIB_VERSION = "2.67.5" |
| 250 | |
| 251 | http_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 | |
| 267 | QEMU_VERSION = "5.2.0" |
| 268 | |
| 269 | http_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 |
| 286 | CHRONY_VERSION = "4.1" |
| 287 | |
| 288 | http_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 | |
| 301 | CAP_VERSION = "1.2.55" |
| 302 | |
| 303 | http_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 | |
| 315 | GNUEFI_VERSION = "3.0.14" |
| 316 | |
| 317 | http_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. |
| 327 | EFISTUB_VERSION = "3542da2442d8b29661b47c42ad7e5fa9bc8562ec" |
| 328 | |
| 329 | http_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 | |
| 343 | LIBPG_QUERY_VERSION = "15-4.2.3" |
| 344 | |
| 345 | http_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 | |
| 353 | DOSFSTOOLS_VERSION = "c888797b1d84ffbb949f147e3116e8bfb2e145a7" |
| 354 | |
| 355 | http_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). |
| 364 | LIBTPMS_VERSION = "93a827aeccd3ab2178281571b1545dcfffa2991b" |
| 365 | |
| 366 | http_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 |
| 383 | SWTPM_VERSION = "0c9a6c4a12a63b86ab472e69e95bd75853d4fa96" |
| 384 | |
| 385 | http_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 | ) |