Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 1.3 kB view raw
1diff --git a/distdir_deps.bzl b/distdir_deps.bzl 2index c7fc4588e4..01e6966fca 100644 3--- a/distdir_deps.bzl 4+++ b/distdir_deps.bzl 5@@ -192,6 +192,8@@ DIST_DEPS = { 6 "archive": "a5477045acaa34586420942098f5fecd3570f577.tar.gz", 7 "sha256": "cf7f71eaff90b24c1a28b49645a9ff03a9a6c1e7134291ce70901cb63e7364b5", 8 "strip_prefix": "upb-a5477045acaa34586420942098f5fecd3570f577", 9+ "patches": ["//:upb-clang16.patch"], 10+ "patch_args": ["-p1"], 11 "urls": [ 12 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/a5477045acaa34586420942098f5fecd3570f577.tar.gz", 13 "https://github.com/protocolbuffers/upb/archive/a5477045acaa34586420942098f5fecd3570f577.tar.gz", 14diff --git a/upb-clang16.patch b/upb-clang16.patch 15new file mode 100644 16index 0000000000..f81855181f 17--- /dev/null 18+++ upb-clang16.patch 19@@ -0,0 +1,10 @@ 20+--- a/bazel/build_defs.bzl 21++++ b/bazel/build_defs.bzl 22+@@ -43,6 +43,7 @@ 23+ "-Werror=pedantic", 24+ "-Wall", 25+ "-Wstrict-prototypes", 26++ "-Wno-gnu-offsetof-extensions", 27+ # GCC (at least) emits spurious warnings for this that cannot be fixed 28+ # without introducing redundant initialization (with runtime cost): 29+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635 30