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
bb execution fails on Gentoo #1669
Comments
You can work around this for now by setting the |
I guess the symlink is resolved here https://github.com/borkdude/deps.clj/blob/3e5dcdfe7b32e0d358a6f48cd46120596e83f02f/src/borkdude/deps.clj#L281 |
I guess many other Clojure tools would fail on this, e.g. tools.build would: |
Here is a counter-repro produced by @ingydotnet
Is it possible to produce a similar repro for your above problem? |
Thanks for the swift reply! Setting Setting
|
Closing this since I'm not sure what is a fitting solution here and there is a workaround |
version
1.3.188
platform
Gentoo Linux - amd64
problem
Gentoo supports multiple Java installations, both system-wide and for users. A simple Bash script serves as a wrapper for Java that resolves the path/config of the currently selected Java VM before executing the actual java binary.
The
run-java-tool.bash
script has an internal safe guard for being called directly, it should always be invoked via a symlink.It looks like Babashka tries to execute Java but resolves the symlink of the java binary before doing so, resulting in the stack trace below.
To confirm this I added some debug output to
run-java-tool.bash
that outputs the name the wrapper script was invoked as (${0##*/}
):Not resolving the Java binary symlink should fix the issue.
repro
Any execution of the bb command on a Gentoo install:
The text was updated successfully, but these errors were encountered: