GNU bug report logs -
#32709
Clojure doesn't provide "clojure" executable
Previous Next
Reported by: Ben Sturmfels <ben <at> stumbles.id.au>
Date: Wed, 12 Sep 2018 02:08:02 UTC
Severity: normal
Tags: easy
Merged with 37929
Done: Ben Sturmfels <ben <at> sturm.com.au>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32709 in the body.
You can then email your comments to 32709 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#32709
; Package
guix
.
(Wed, 12 Sep 2018 02:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ben Sturmfels <ben <at> stumbles.id.au>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 12 Sep 2018 02:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Folks,
When I install the "clojure" package, I can't seem to just run `clojure`
and get an interpreter like I would on Debian.
My Java is a bit rusty, but I found I could get it going by installing the "icedtea" package and running:
java -cp ~/.guix-profile/share/java/clojure-1.9.0.jar clojure.main
or
java -jar ~/.guix-profile/share/java/clojure-1.9.0.jar
which is a bit of a mouthful.
Regards,
Ben
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#32709
; Package
guix
.
(Thu, 13 Sep 2018 20:16:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 32709 <at> debbugs.gnu.org (full text, mbox):
Hi Ben,
> When I install the "clojure" package, I can't seem to just run `clojure`
> and get an interpreter like I would on Debian.
>
> My Java is a bit rusty, but I found I could get it going by installing the "icedtea" package and running:
>
> java -cp ~/.guix-profile/share/java/clojure-1.9.0.jar clojure.main
>
> or
>
> java -jar ~/.guix-profile/share/java/clojure-1.9.0.jar
>
> which is a bit of a mouthful.
It is, but this is what upstream tells us to run after building the
package. Neither pom.xml (for Maven) nor build.xml (for Ant) contain
targets that generate a shell wrapper.
It looks like adding a shell wrapper is a decision that was taken by
Debian and is not what upstream does. So this is not due to a defect in
the ant-build-system.
To address this we may want to add a wrapper in a custom build phase.
--
Ricardo
Added tag(s) easy.
Request was from
ludo <at> gnu.org (Ludovic Courtès)
to
control <at> debbugs.gnu.org
.
(Mon, 17 Sep 2018 20:28:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#32709
; Package
guix
.
(Thu, 13 Dec 2018 03:10:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 32709 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks Ricardo,
On 14/09/18 06:15, Ricardo Wurmus wrote:
>
> Hi Ben,
>
>> When I install the "clojure" package, I can't seem to just run `clojure`
>> and get an interpreter like I would on Debian.
>>
>> My Java is a bit rusty, but I found I could get it going by installing the "icedtea" package and running:
>>
>> java -cp ~/.guix-profile/share/java/clojure-1.9.0.jar clojure.main
>>
>> or
>>
>> java -jar ~/.guix-profile/share/java/clojure-1.9.0.jar
>>
>> which is a bit of a mouthful.
>
> It is, but this is what upstream tells us to run after building the
> package. Neither pom.xml (for Maven) nor build.xml (for Ant) contain
> targets that generate a shell wrapper.
>
> It looks like adding a shell wrapper is a decision that was taken by
> Debian and is not what upstream does. So this is not due to a defect in
> the ant-build-system.
>
> To address this we may want to add a wrapper in a custom build phase.
I see what you mean about Debian's approach with the wrapper.
After some investigating I see that Clojure project's current approach
is different again to Debian. Their releases eg.
https://download.clojure.org/install/clojure-tools-1.9.0.XXX.tar.gz
include scripts `clj` and `clojure` which come from
https://github.com/clojure/brew-install. These scripts use functionality
from https://github.com/clojure/tools.deps.alpha/ to automatically
download any libraries you've declared a dependency on at runtime.
There will surely be a script that does this multi-repository build, but
I haven't found it yet.
Regards,
Ben
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#32709
; Package
guix
.
(Thu, 13 Dec 2018 05:37:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 32709 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 13/12/18 14:08, Ben Sturmfels wrote:
> After some investigating I see that Clojure project's current approach
> is different again to Debian. Their releases eg.
> https://download.clojure.org/install/clojure-tools-1.9.0.XXX.tar.gz
> include scripts `clj` and `clojure` which come from
> https://github.com/clojure/brew-install. These scripts use functionality
> from https://github.com/clojure/tools.deps.alpha/ to automatically
> download any libraries you've declared a dependency on at runtime.
>
> There will surely be a script that does this multi-repository build, but
> I haven't found it yet.
Alex Miller advised that the build is run by the scripts in the
clojure/brew-install repo. It runs "script/package.sh".
Regards,
Ben
[signature.asc (application/pgp-signature, attachment)]
Merged 32709 37929.
Request was from
Tobias Geerinckx-Rice <me <at> tobias.gr>
to
control <at> debbugs.gnu.org
.
(Fri, 25 Oct 2019 21:51:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Ben Sturmfels <ben <at> sturm.com.au>
:
You have taken responsibility.
(Mon, 07 Dec 2020 00:24:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ben Sturmfels <ben <at> stumbles.id.au>
:
bug acknowledged by developer.
(Mon, 07 Dec 2020 00:24:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 32709-done <at> debbugs.gnu.org (full text, mbox):
Jesse Gibbons has recently added the "clojure" executable wrapper. This
makes the Guix `clojure` behave similarly to the Debian `clojure`.
Closing this issue.
(Note that this behaviour is still a little different to the bundle
provided by the upstream Clojure project which include custom `clj` and
`clojure` scripts from https://github.com/clojure/brew-install, which
include auto-downloading of dependencies and such.)
Reply sent
to
Ben Sturmfels <ben <at> sturm.com.au>
:
You have taken responsibility.
(Mon, 07 Dec 2020 00:24:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Bradley Haggerty <bradigger <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 07 Dec 2020 00:24:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 04 Jan 2021 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 113 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.