-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
ant: missing dependency on JRE, needed at runtime #4105
Comments
Ah, @edolstra gives rationale here: 54d1721.
I'm not sure I buy the rationale, but however it depends on the java runtime, it doesn't work on Mac OS 😄 |
I don't understand the reasoning in that commit. ant doesn't just manage java builds, it needs java to run. This is like not only failing to bundle gcc with make (which makes sense) but also failing to bundle glibc with make and finding it dynamically at runtime. And if overriding a single drop-in replacement dependency one level deep is too onerous perhaps we should reconsider our package composition style? |
On Tue, Sep 16, 2014 at 4:38 AM, Shea Levy [email protected] wrote:
The one thing I wonder about is if ant can build for a different JDK than |
It works for me:
|
But isn't the point to minimize the opportunity of "works for me"-style problems? Ant needs a JRE at runtime so why, in principle, shouldn't it depend on one? If I were to change the ant expression to build the java code rather than download the binary tarball, would the answer be different?
|
Anyway, I'm not really sure what to do here, because I need |
I second that ant should explicitly depend on a JDK. That's how Who ends up making these decisions? Should someone just make a pull request? |
@stephenjudkins: Decisions are typically done by people who have commit access and are "interested" in the particular issue/package. Submitting a PR is nice way to nudge them, and non-controversial reasonable changes are rarely rejected. |
(triage) still a problem? |
@copumpkin care to make that PR? |
Probably, but it's fairly low on my priority list right now. I'll try to get to it in the next couple of weeks. |
I had to |
Still broken! |
As is the logic behind the original change 🦆 |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Still broken; ant just hangs forever unless you do (e.g.) |
This will be fixed by #359451, since we elect to hard-code values like the path to |
See https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/build-managers/apache-ant/default.nix.
It has a pretty hefty "launcher" script that calls
readlink -f
(anddirname
) without referencing coreutils. Since the nativereadlink
on Mac OS doesn't support-f
, the script fails at startup. If you fix that, you get something like:What confuses me more is that the launcher seems to deliberately go out of its way to find a
jvm
the hard way, without having the expression itself depend on java. I'm not sure why that's a good idea in nix, but given that @edolstra maintains it, I feel like I must be missing something.The text was updated successfully, but these errors were encountered: