Bug 1918425

Summary: clojure package is missing a dependency on javapackages-tools
Product: [Fedora] Fedora Reporter: Benjamin Howell <bmh>
Component: clojureAssignee: Markku Korkeala <markku.korkeala>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 33CC: jochen, mail, markku.korkeala, michel, walters
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-21 07:22:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Benjamin Howell 2021-01-20 17:04:05 UTC
Description of problem:
Missing dependency on javapackages-tools

Version-Release number of selected component (if applicable):
1.10.1-5.fc33

How reproducible:
always

Steps to Reproduce:
1. dnf install clojure
2. run 'clojure'
3. observe errors

Actual results:
$ 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:
$ clojure
Clojure 1.10.1
user=>

Additional info:
$ dnf provides /usr/share/java-utils/java-functions
Last metadata expiration check: 0:25:49 ago on Wed 20 Jan 2021 11:33:28 AM EST.
javapackages-tools-5.3.0-13.fc33.noarch : Macros and scripts for Java packaging support
Repo        : fedora
Matched from:
Filename    : /usr/share/java-utils/java-functions

Comment 1 Markku Korkeala 2021-01-21 07:12:03 UTC
Hi, thanks for the report. There is a fix in updates testing, how to test:
1. dnf install clojure
2. upgrade clojure: sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7b34d3bac0
2. run 'clojure'
6. Should work now

If it works, you can add karma to the update: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7b34d3bac0

Comment 2 Markku Korkeala 2021-01-21 07:15:31 UTC
Or you can test it with toolbox as well:
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

Comment 3 Markku Korkeala 2021-01-21 07:22:55 UTC

*** This bug has been marked as a duplicate of bug 1916547 ***