From 0ccfc74e8653e03560f86e9d1f2c0ae5bbb3a1f2 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Tue, 12 Sep 2023 11:59:42 -0500 Subject: [PATCH] Fix build @com_github_ethereum_c_kzg_4844//... (#12890) Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> --- .../com_github_ethereum_c_kzg_4844.patch | 52 +++++++++++-------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/third_party/com_github_ethereum_c_kzg_4844.patch b/third_party/com_github_ethereum_c_kzg_4844.patch index 1f558f22f..9a3b1e0a8 100644 --- a/third_party/com_github_ethereum_c_kzg_4844.patch +++ b/third_party/com_github_ethereum_c_kzg_4844.patch @@ -1,25 +1,8 @@ ---- a/src/BUILD.bazel 1969-12-31 18:00:00.000000000 -0600 -+++ b/src/BUILD.bazel 2023-06-14 14:04:30.351403498 -0500 -@@ -0,0 +1,8 @@ -+cc_library( -+ name = "kzg", -+ hdrs = [ -+ "c_kzg_4844.c", -+ "c_kzg_4844.h", -+ ], -+ visibility = ["//visibility:public"], -+) ---- a/bindings/go/blst_headers/BUILD.bazel 1969-12-31 18:00:00.000000000 -0600 -+++ b/bindings/go/blst_headers/BUILD.bazel 2023-06-14 13:24:09.719404241 -0500 -@@ -0,0 +1,5 @@ -+cc_library( -+ name = "hdrs", -+ hdrs = glob(["*.h"]), -+ visibility = ["//visibility:public"], -+) ---- a/bindings/go/BUILD.bazel 2023-06-14 15:06:46.875902949 -0500 -+++ b/bindings/go/BUILD.bazel 2023-06-14 15:07:05.491898747 -0500 -@@ -4,10 +4,14 @@ +diff --git a/bindings/go/BUILD.bazel b/bindings/go/BUILD.bazel +index 7e49df7..1d476f7 100644 +--- a/bindings/go/BUILD.bazel ++++ b/bindings/go/BUILD.bazel +@@ -4,10 +4,14 @@ load("@prysm//tools/go:def.bzl", "go_library") go_library( name = "go", srcs = ["main.go"], @@ -36,3 +19,28 @@ ], importpath = "github.com/ethereum/c-kzg-4844/bindings/go", visibility = ["//visibility:public"], +diff --git a/bindings/go/blst_headers/BUILD.bazel b/bindings/go/blst_headers/BUILD.bazel +new file mode 100644 +index 0000000..82cad2c +--- /dev/null ++++ b/bindings/go/blst_headers/BUILD.bazel +@@ -0,0 +1,5 @@ ++cc_library( ++ name = "hdrs", ++ hdrs = glob(["*.h"]), ++ visibility = ["//visibility:public"], ++) +diff --git a/src/BUILD.bazel b/src/BUILD.bazel +new file mode 100644 +index 0000000..b3f845d +--- /dev/null ++++ b/src/BUILD.bazel +@@ -0,0 +1,8 @@ ++cc_library( ++ name = "kzg", ++ hdrs = [ ++ "c_kzg_4844.c", ++ "c_kzg_4844.h", ++ ], ++ visibility = ["//visibility:public"], ++)