-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
docker-machine-driver-xhyve: fix libev issue #6875
Conversation
/cc @MikeMcQuaid |
Could the Makefile be patched instead? Then formula is pretty messy after this. Ideally if you are going to or have fixed this upstream already we'll just apply the upstream patch. |
@MikeMcQuaid I see. will do. BTW, What command is can be tested efficiently? |
@zchee You could use |
dabd83f
to
8cde84a
Compare
@MikeMcQuaid Fixed with Edit: In |
Thanks advice :) |
@@ -38,8 +40,12 @@ def install | |||
|
|||
if build.with? "qcow2" | |||
build_tags << " qcow2" | |||
ENV["LIBEV_FILE"] = "#{Formula["libev"].lib}/libev.a" |
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.
If you're using the static library you can do depends_on "libev" => :build
above.
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.
Got it. will do.
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.
Wait for the above reply, and fix this together.
@@ -23,6 +23,8 @@ class DockerMachineDriverXhyve < Formula | |||
depends_on "libev" | |||
end | |||
|
|||
patch :DATA |
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 you please add a link to the upstream patch commit and explanation of why the patch is needed in a comment in the formula file. Thanks!
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.
That's patch is not merge to upstream yet. Because $(LIBEV_FILE)
is just carried from
https://github.com/docker/hyperkit/blob/master/Makefile#L83
I would like to follow hyperkit as much as possible. but, Now I'm considering allowing the user to specify the path. So, there is no commit url yet.
Also, sometimes Go users set $GO_LDFLAGS
to shell global. i.e. always strip symbol table & DWARF with -s -w
.
In this case, if change the +=
to ?=
, GNU Make handling shell $GO_LDFLAGS
env(IIRC).
It means, ignores -X=xhyve.GitCommit=(...)
trick.
There is a possibility that I can not take a commit hash on the issue, So I am not going to change upstream.
Well, If some comment is necessary, I would appreciate it if I could get your advice, because I am not good at English...
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.
Is this going to go upstream in some form? If so, when? If it's definitely going to be included in the next release I'm fine with that. How about # Allow specifying version and libev location
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.
Ah, In other words, I will not this patch to my repository, because have side effects.
This patch is Homebrew specific.
I'll add # Allow specifying version and libev location
.
8cde84a
to
ebd0469
Compare
Just to pull this out so it's visible: Homebrew does not accept Homebrew-specific patches that will never be merged upstream. We'll need to figure out something that can work both for your upstream project and Homebrew. |
@MikeMcQuaid Hmm... |
@zchee We'd pretty strongly rather avoid it. It makes it much harder to keep the formula up to date. What's wrong with your patch being merged upstream as-is? |
As I said on #6875 (comment), below are why I do not merge patches (after the
In other words, without This patch have problems without If following the tool manager's policy, and change my repository's |
You could instead provide a
Providing options for packagers is pretty well established as a practice.
Allowing to to be overridden seems acceptable and I suspect upstream |
@zchee What's the latest on this? |
@MikeMcQuaid I'll release v0.3.1 soon, will fix together. |
@zchee Great, thanks. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?Change to without
make
build.libev
static library file was hardcoded myMakefile
, It is not a good idea to update the version for fix it.So, I wrote the doing with the
Makefile
.Close #6678