treewide: add aliases for third_party dependencies
With bzlmod it is currently not possible to access other third_party libraries. By adding an alias inside the root module we can work around this with a fairly moderate hack. We do have a folder and BUILD file for every dependency anyway, so this isn't that bad.
Change-Id: I472194f590fd4c4aa8ba304af70dd8b92ecc5c1e
Reviewed-on: https://review.monogon.dev/c/monogon/+/3231
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/third_party/qemu/patches/bazel_support.patch b/third_party/qemu/patches/bazel_support.patch
index 4770db8..00c1ff2 100644
--- a/third_party/qemu/patches/bazel_support.patch
+++ b/third_party/qemu/patches/bazel_support.patch
@@ -268,7 +268,7 @@
+ "G_LOG_DOMAIN=\\\"Slirp\\\"",
+ ],
+ deps = [
-+ "@glib//glib",
++ "@@//third_party/glib",
+ ],
+ includes = ["include", "slirp/src"],
+)
@@ -914,11 +914,11 @@
+ ":capstone",
+ ":fdt",
+ ":slirp",
-+ "@glib//glib",
-+ "@pixman//:pixman",
-+ "@seccomp",
-+ "@uring//:uring",
-+ "@zlib//:zlib",
++ "@@//third_party/glib",
++ "@@//third_party/pixman",
++ "@@//third_party/seccomp",
++ "@@//third_party/uring",
++ "@@//third_party:zlib",
+ ],
+ includes = ["include", "capstone/include/capstone"],
+ alwayslink = True, # QEMU uses __attribute__((constructor)) functions
@@ -1109,9 +1109,9 @@
+ "_LARGEFILE_SOURCE",
+ ],
+ deps = [
-+ "@glib//glib",
-+ "@uring//:uring",
-+ "@zlib//:zlib",
++ "@@//third_party/glib",
++ "@@//third_party/uring",
++ "@@//third_party:zlib",
+ ],
+ visibility = ["//visibility:public"],
+ includes = ["include"],
@@ -1255,9 +1255,9 @@
+ ":fdt",
+ ":qemu",
+ ":slirp",
-+ "@glib//glib",
-+ "@pixman//:pixman",
-+ "@zlib//:zlib",
++ "@@//third_party/glib",
++ "@@//third_party/pixman",
++ "@@//third_party:zlib",
+ ],
+ visibility = ["//visibility:public"],
+ includes = ["target/i386", "tcg/i386", "accel/tcg"],