-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grpc 1.40.0 #84990
grpc 1.40.0 #84990
Conversation
CC @Homebrew/linux |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep this pull request open, add a |
Might have to do with the linker flags. Maybe the order? The missing symbol comes from
|
6331344
to
cf7d6a3
Compare
Let's see if building with |
|
Building
|
It looks like this is really a problem with |
Why does it need the opt path too? Don't
and
point to the same place? |
|
Also, Edit: Oh, wait, missed the Linux-only deps. |
14d650c
to
28944bf
Compare
Also make `llvm` a test dependency on Mojave because of a `brew` bug.
Also, switch to LLVM 12, as this fails to build with LLVM 13.
ba2799d
to
b0a2630
Compare
a9453b9
to
f591c72
Compare
Also, deparallelise the build on Linux and make dependencies explicit, and compile using C++17 in order to use `abseil`.
f591c72
to
bcf74f8
Compare
Objections, @Homebrew/core? |
Can we just make sure to make a comment as to why it's disabled on Linux? Disabling a formula on Linux because it doesn't build is different from disabling it because it is fundamentally incompatible. As an aside perhaps we will eventually need some separate DSL for "skip Linux because it doesn't build" versus "skip Linux because it is incompatible". |
gRPC 1.41.0 has been available if we want to jump to that, or we can finish this and then open new PR: /~https://github.com/grpc/grpc/releases/tag/v1.41.0 Sysdig upstream issue: draios/sysdig#1778. EDIT: |
Maybe try |
@danielnachun ArchLinux does something similar by patching CMake build scripts. Since they successfully updated to diff -rup sysdig-0.27.1/CMakeLists.txt sysdig-0.27.1-grpc-1.41/CMakeLists.txt
--- sysdig-0.27.1/CMakeLists.txt 2020-09-30 16:21:52.000000000 +0200
+++ sysdig-0.27.1-grpc-1.41/CMakeLists.txt 2021-10-08 23:46:51.058659662 +0200
@@ -552,6 +552,7 @@ if(NOT WIN32 AND NOT APPLE)
else()
message(FATAL_ERROR "Couldn't find system grpc")
endif()
+ find_library(ABSL_SYNC_LIB NAMES absl_synchronization)
find_program(GRPC_CPP_PLUGIN grpc_cpp_plugin)
if(NOT GRPC_CPP_PLUGIN)
message(FATAL_ERROR "System grpc_cpp_plugin not found")
diff -rup sysdig-0.27.1/userspace/libsinsp/CMakeLists.txt sysdig-0.27.1-grpc-1.41/userspace/libsinsp/CMakeLists.txt
--- sysdig-0.27.1/userspace/libsinsp/CMakeLists.txt 2020-09-30 16:21:52.000000000 +0200
+++ sysdig-0.27.1-grpc-1.41/userspace/libsinsp/CMakeLists.txt 2021-10-08 23:46:35.785353019 +0200
@@ -209,6 +209,7 @@ if(NOT WIN32)
target_link_libraries(sinsp
"${GRPCPP_LIB}"
"${GRPC_LIB}"
+ "${ABSL_SYNC_LIB}"
"${PROTOBUF_LIB}"
"${CARES_LIB}"
"${JQ_LIB}" EDIT: It is also fine to merge this PR, and do follow-up PRs for fixing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging this so that users can brew extract --version=1.40.0 grpc
if they need to, plus there might be additional issues with 1.41.0
.
Created with
brew bump-formula-pr
.