Bug 1168918 - leiningen package broken: ClassNotFoundException
leiningen package broken: ClassNotFoundException
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development
Current
x86-64 openSUSE Factory
: P5 - None : Normal (vote)
: ---
Assigned To: Kristoffer Gronlund
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-04-07 23:55 UTC by Jeff Stern
Modified: 2020-04-15 02:59 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Stern 2020-04-07 23:55:27 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
Build Identifier: 

All invocations of 'lein' from leiningen package result in this error:

Error: Could not find or load main class clojure.main
Caused by: java.lang.ClassNotFoundException: clojure.main

Reproducible: Always

Steps to Reproduce:
Install clojure:
$ sudo zypper install clojure
Install leiningen:
$ sudo zypper install leiningen
Try running any leiningen commend:
$ lein help faq
Error: Could not find or load main class clojure.main
Caused by: java.lang.ClassNotFoundException: clojure.main
$ lein repl
Error: Could not find or load main class clojure.main
Caused by: java.lang.ClassNotFoundException: clojure.main
$ lein new app clojure-noob
Error: Could not find or load main class clojure.main
Caused by: java.lang.ClassNotFoundException: clojure.main
$ _

etc etc


Expected Results:  
lein command should work and not produce an error

I have tried this on 2 different openSUSE/Tumbleweed systems, a laptop and a desktop, both with latest Tumbleweed. Same results

Please let me know if you need any more details, etc.

$ rpm -qi leiningen
Name        : leiningen
Version     : 2.9.3
Release     : 1.1
Architecture: noarch
Install Date: Tue 07 Apr 2020 04:49:33 PM PDT
Group       : Development/Tools/Building
Size        : 14681081
License     : EPL-1.0
Signature   : RSA/SHA256, Tue 17 Mar 2020 05:16:38 AM PDT, Key ID b88b2fd43dbdc284
Source RPM  : leiningen-2.9.3-1.1.src.rpm
Build Date  : Tue 17 Mar 2020 05:16:14 AM PDT
Build Host  : lamb52
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
URL         : https://leiningen.org/
Summary     : Automation for Clojure projects
Comment 1 Jeff Stern 2020-04-07 23:58:52 UTC
yet Clojure itself appears to be fine:

$ clojure
Clojure 1.10.1
user=> (+ 2 3)
5
user=> ^C
$ rpm -qi clojure
Name        : clojure
Version     : 1.10.1
Release     : 2.1
Architecture: noarch
Install Date: Tue 07 Apr 2020 03:45:03 PM PDT
Group       : Development/Languages/Other
Size        : 22146604
License     : EPL-1.0
Signature   : RSA/SHA256, Fri 13 Sep 2019 06:11:00 AM PDT, Key ID b88b2fd43dbdc284
Source RPM  : clojure-1.10.1-2.1.src.rpm
Build Date  : Fri 13 Sep 2019 06:10:37 AM PDT
Build Host  : sheep84
Packager    : https://bugs.opensuse.org
Vendor      : openSUSE
URL         : http://clojure.org/
Summary     : A dynamic programming language that targets the JVM
Comment 2 Paul Bransford 2020-04-15 02:42:45 UTC
I can replicate this here (on tumbleweed 20200409)

Installing lein locally using https://github.com/technomancy/leiningen/blob/d4aec407c677/bin/lein (2.9.3 release) works flawlessly.
Comment 3 Paul Bransford 2020-04-15 02:44:17 UTC
Minor note: using lein from github, it pulls down and uses clojure 1.10.0, NOT 1.10.1 as the opensuse package dependencies demand. Oddly, a commit changing the default in lein 2.9.2 should have set lein to 1.10.1, but this appears to not be the case (or was reverted in a - by appearances - unrelated commit)
Comment 4 Paul Bransford 2020-04-15 02:59:07 UTC
See https://github.com/technomancy/leiningen/issues/2675 regarding that last comment.

Could be the default profile wants 1.10.0 but as that is missing (since zypper is installing 1.10.1) this would explain why lein can't find clojure.main, as the 1.10.0 jarfile is "missing."