Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661442 - dev-lang/clojure- version bump
Summary: dev-lang/clojure- version bump
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Keywords: EBUILD, PullRequest
Depends on:
Reported: 2018-07-17 21:25 UTC by crocket
Modified: 2021-06-21 14:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

clojure- (clojure-,790 bytes, text/plain)
2018-07-18 12:14 UTC, crocket
clojure- (clojure-,791 bytes, text/plain)
2018-07-21 00:35 UTC, crocket

Note You need to log in before you can comment on or make changes to this bug.
Description crocket 2018-07-17 21:25:59 UTC says

curl -O
chmod +x
sudo ./
``` contains instructions on how to install clojure
Comment 1 crocket 2018-07-17 21:27:25 UTC contains information on how to package clojure
Comment 2 crocket 2018-07-18 12:14:39 UTC
Created attachment 539944 [details]

I created this ebuild and tested it on my system. It works.

Please add this ebuild to gentoo overlay.
Comment 3 Jonas Stein gentoo-dev 2018-07-20 18:38:10 UTC
Thank you for your contribution. I had a short look on the ebuild. 
Here a few ideas:

You can use variables here

sed -i -e "s|PREFIX|$CLOJURE_LIB_DIR|g" clojure
needs || die
Comment 4 crocket 2018-07-21 00:35:12 UTC
Created attachment 540300 [details]

Like this?
Comment 5 crocket 2019-01-02 06:09:58 UTC
Take dev-lang/clojure- from crocket-overlay. It works well on my system.
Comment 6 Miroslav Šulc gentoo-dev 2019-01-14 13:33:24 UTC
i just came across this bug because 1.9.0 that is in tree does not compile for me. can somebody please enlighten me where the x.x.x.x versions come from? i can't see anything like this on their download page:

i can bump it to both versions mentioned, i just need clarification for this.
Comment 7 crocket 2019-01-15 05:55:31 UTC
In my crocket-overlay, you can find clojure-

you can find "_toolver=408" which is the last part of my clojure package's version.

You can drop toolver if you like.
Comment 8 Miroslav Šulc gentoo-dev 2019-01-17 16:19:17 UTC
ok, i looked at the ebuilds and there are several issues:
1) this is a binary download, not from source, it should be built from source instead
2) it installs versioned jar file and in unsupported path (should be /usr/share/clojure-${SLOT}/clojure.jar and so the path to the jar in clojure executable must be updated)
3) as ve have clojure slotted, slot number must be prepended to the executables and man pages, and the deps files, if really needed, should be put in /usr/share/clojure-{SLOT}, otherwise it will cause conflicts when more than one version is installed

could you please fix these issues?
Comment 9 crocket 2019-01-18 06:23:25 UTC
1) Jar files are cross-platform assets. They will work on any platform that java supports. Also, it's difficult to replicate the structure of${PN}-tools-${PV}.tar.gz when I build clojure from source. I don't see a good reason to not use clojure-tools-XXX.tar.gz
2 and 3) Maybe. But, I am short of time these days. It will take several months for me to work on it again.
Comment 10 Dennis Schridde 2019-04-19 08:26:46 UTC
As I understand, this builds the Clojure CLI tooling (`clj` binary), while our current ebuild only builds the language JAR (and a thin custom wrapper around `clojure.main`).  Is this correct?
Comment 11 crocket 2019-04-21 09:07:23 UTC
My ebuild doesn't build anything. It just copies the contents of an archive file to appropriate places.
Comment 12 Dennis Schridde 2019-04-21 17:06:35 UTC
(In reply to crocket from comment #11)
> My ebuild doesn't build anything. It just copies the contents of an archive
> file to appropriate places.

In that case the package name should be dev-lang/clojure-bin and not dev-lang/clojure.  From the ebuild it seems that a good name might also be dev-util/clojure-tools-bin, since it seems to contain the "clj" Clojure CLI tool.
Comment 13 Larry the Git Cow gentoo-dev 2021-06-21 14:30:08 UTC
The bug has been closed via the following commit(s):

commit cc57f9f25d40bff2e2b0e3179eac82e467f5952e
Author:     Florian Schmaus <>
AuthorDate: 2021-06-17 15:54:16 +0000
Commit:     Göktürk Yüksek <>
CommitDate: 2021-06-21 14:26:38 +0000

    dev-lang/clojure: add 1.10.3
    This is a "new kind" of clojure ebuilds, which does not longer depend
    on dev-java/spec-alpha and dev-java/core-specs-alpha, but instead is
    able to bootstrap itself. Major thanks to Göktürk Yüksek for coming up
    with a way to bootstrap clojure (see
    Signed-off-by: Florian Schmaus <>
    Signed-off-by: Göktürk Yüksek <>

 dev-lang/clojure/Manifest                          |  9 ++
 dev-lang/clojure/clojure-1.10.3.ebuild             | 97 ++++++++++++++++++++++
 .../files/add-compile-spec-ant-build-target.patch  | 54 ++++++++++++
 3 files changed, 160 insertions(+)