Created attachment 1747625 [details] /usr/bin/clojure Description of problem: Version-Release number of selected component (if applicable): How reproducible: Happens in Fedora-32 and Fedora-33 toolboxes. Steps to Reproduce: 1. `toolbox create --container clojure` 2. `toolbox enter clojure` 3. `sudo dnf install clojure` 4. `clojure` Actual results: ⬢[eric@toolbox ~]$ clojure /usr/bin/clojure: line 8: /usr/share/java-utils/java-functions: No such file or directory /usr/bin/clojure: line 27: set_jvm: command not found /usr/bin/clojure: line 28: set_classpath: command not found /usr/bin/clojure: line 29: set_flags: command not found /usr/bin/clojure: line 30: set_options: command not found /usr/bin/clojure: line 33: run: command not found Expected results: launch a Clojure REPL Additional info: I've had issues with toolbox not working well with alternative terminal emulators, specifically Tilix, and with alternative shells, specifically fish. But I tried this with gnome-terminal and bash.
As a sanity check I tried running `jshell` in the same toolbox. I got ⬢[eric@toolbox ~]$ jshell bash: jshell: command not found but `java` works. ⬢[eric@toolbox ~]$ java Usage: java [options] <mainclass> [args...] (to execute a class) or java [options] -jar <jarfile> [args...] (to execute a jar file) or java [options] -m <module>[/<mainclass>] [args...] java [options] --module <module>[/<mainclass>] [args...] (to execute the main class in a module) or java [options] <sourcefile> [args] (to execute a single source-file program) Then I tried installing clojure via `sudo rpm-ostree install clojure` and I got the same error (after rebooting). But `jshell` runs fine out of the toolbox.
Thank you for the bug report. I was able reproduce the issue with the steps, the cause of the error is the first error message when running clojure: /usr/bin/clojure: line 8: /usr/share/java-utils/java-functions: No such file or directory The file is in package javapackages-tools and seems not pulled in by installing clojure. Can you try if installing that package fixes the issue? So the steps would be: 1. `toolbox create --container clojure` 2. `toolbox enter clojure` 3. `sudo dnf install clojure javapackages-tools` 4. `clojure` If that fixes it, then I'll fix the clojure package for the dependency.
That worked for me. Thank you very much!
FEDORA-2021-7b34d3bac0 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-7b34d3bac0
FEDORA-2021-7b34d3bac0 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7b34d3bac0` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7b34d3bac0 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
Eric can you test the new update available in F33 updates-testing? Instructions: 1. `toolbox create --container clojure` 2. `toolbox enter clojure` 3. `sudo dnf install clojure` 4. `clojure` , should not work 5. `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7b34d3bac0` 6. `clojure` , should now work You can then add karma to the update: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7b34d3bac0
Cool. Done and done. Works that way too. Got to love toolbox. Upgrading my whole system to a testing repo would have been a big ask. But this couldn't have been easier.
*** Bug 1918425 has been marked as a duplicate of this bug. ***
FEDORA-2021-7b34d3bac0 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.