FreeBSD: remove QAT and lz4 repository registrations and build targets. Intel QAT (qatlib, qatzip, qat_zstd) and CryptoMB (ipp_crypto_crypto_mb) and DLB (intel_dlb) are Linux x86_64-only hardware acceleration extensions and are never built on FreeBSD. lz4 is only used as a build-time dependency of QATzip (linked into libqatzip.a) and is similarly unneeded. Remove the repository registrations so Bazel does not attempt to fetch them, and remove the lz4 foreign_cc build target and its use in librdkafka_build (librdkafka is a Kafka-mesh contrib extension not built in this pomerium-envoy-custom configuration). --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -168,11 +168,6 @@ _com_github_grpc_grpc() _rules_proto_grpc() _com_github_unicode_org_icu() - _com_github_intel_ipp_crypto_crypto_mb() - _com_github_intel_qatlib() - _com_github_intel_qatzip() - _com_github_qat_zstd() - _com_github_lz4_lz4() _com_github_jbeder_yaml_cpp() _com_github_libevent_libevent() _com_github_luajit_luajit() --- a/bazel/foreign_cc/BUILD +++ b/bazel/foreign_cc/BUILD @@ -79,26 +79,7 @@ tags = ["skip_on_windows"], deps = [ "gperftools_build", - ], -) - -make( - name = "lz4", - args = [ - "MOREFLAGS='-fPIC'", - "BUILD_SHARED=no", - ], - lib_source = "@com_github_lz4_lz4//:all", - out_static_libs = [ - "liblz4.a", ], - tags = ["skip_on_windows"], - targets = [ - "lib", - "install", - ], - visibility = ["//visibility:public"], - alwayslink = False, ) # Kafka client dependency used by Kafka-mesh filter. @@ -116,7 +97,6 @@ targets = [ "ARFLAGS='' WITH_LDS='n' libs install-subdirs", ], - deps = [":lz4"], alwayslink = True, )