-
-
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
needle 0.18.1 #99203
needle 0.18.1 #99203
Conversation
Formula/needle.rb
Outdated
def install | ||
system "make", "install", "BINARY_FOLDER_PREFIX=#{prefix}" | ||
bin.install "./Generator/bin/needle" | ||
libexec.install "./Generator/bin/lib_InternalSwiftSyntaxParser.dylib" | ||
deuniversalize_machos libexec/"lib_InternalSwiftSyntaxParser.dylib" |
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.
Can we not patch make
to build the correct one here?
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.
Makefile copies library from Xcode.app (https://github.com/uber/needle/blob/v0.17.2/Makefile#L49) and then just modifies RPATH.
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 don't think that allows us to ship it since XCode is proprietary
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.
We could use the one from the swift formula though. That is guaranteed open source
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'll give that a try.
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.
Looks like swift
might be taking over build from Xcode and causing some issues.
There is a reason it ships with Xcode rather than the OS.
|
I think the Makefile directly runs Is there any extra licensing terms to allow us to just use pre-built from Xcode toolchain? I think that would reduce breakages as upstream will follow Xcode releases. |
We've done stuff like that before, like JavaNativeFoundation in openjdk@11. Sean raises a fair point but I don't really have the answer to it, because no one has really properly raised it or looked into it until now. |
Filed: uber/needle#412 |
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. |
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 --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?