-
-
Notifications
You must be signed in to change notification settings - Fork 13k
zeromq: disable libunwind to fix pkg-config #36121
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
Conversation
the jenkins build complains that the |
# https://github.com/Homebrew/homebrew-core/pull/35940#issuecomment-454177261 | ||
# ENV["LIBUNWIND_LIBS"] = "-framework System" | ||
# sdk = MacOS::CLT.installed? ? "" : MacOS.sdk_path | ||
# ENV["LIBUNWIND_CFLAGS"] = "-I#{sdk}/usr/include" |
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.
I think it's probably worth deleting rather than commenting out the code (that's what the Git history is for) and leaving the link to the PR comment.
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.
I did so during brew pull --bottle
@@ -56,5 +59,7 @@ def install | |||
EOS | |||
system ENV.cc, "test.c", "-L#{lib}", "-lzmq", "-o", "test" | |||
system "./test" | |||
system "pkg-config", "libzmq", "--cflags" | |||
system "pkg-config", "libzmq", "--libs" |
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.
Thanks for adding a test 👍
thanks for the reviews! |
Closes Homebrew#36121. Signed-off-by: Steven Peters <scpeters@openrobotics.org>
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?ZeroMQ uses
libunwind
by manually specifying its build flags since macOS provideslibunwind
but without a pkg-config file. That wasn't a problem until the recent zeromq 4.3.1 release changed itslibzmq.pc
pkg-config file to requirelibunwind.pc
( #35940 (comment) ). I first noticed this in downstream software outside of homebrew-core, but it has also caused a build failure of libbitcoin-protocol in the boost 1.69 pull request ( #35030 ).I submitted a pull request to add
libunwind.pc
to brew in Homebrew/brew#5539 but that won't be accepted as long as Homebrew/brew#5068 is outstanding. So as suggested by a zeromq developer ( #35940 (comment) ), this pull request will disablelibunwind
support until we can resolve thepkg-config
issue.I've also added a test for the
pkg-config
file to the formula so we can catch this in the future.