unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32709: Clojure doesn't provide "clojure" executable
@ 2018-09-12  1:57 Ben Sturmfels
  2018-09-13 20:15 ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Sturmfels @ 2018-09-12  1:57 UTC (permalink / raw)
  To: 32709

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32709: Clojure doesn't provide "clojure" executable
  2018-09-12  1:57 bug#32709: Clojure doesn't provide "clojure" executable Ben Sturmfels
@ 2018-09-13 20:15 ` Ricardo Wurmus
  2018-12-13  3:08   ` Ben Sturmfels
  0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2018-09-13 20:15 UTC (permalink / raw)
  To: Ben Sturmfels; +Cc: 32709


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32709: Clojure doesn't provide "clojure" executable
  2018-09-13 20:15 ` Ricardo Wurmus
@ 2018-12-13  3:08   ` Ben Sturmfels
  2018-12-13  5:36     ` Ben Sturmfels
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Sturmfels @ 2018-12-13  3:08 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 32709


[-- Attachment #1.1: Type: text/plain, Size: 1598 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32709: Clojure doesn't provide "clojure" executable
  2018-12-13  3:08   ` Ben Sturmfels
@ 2018-12-13  5:36     ` Ben Sturmfels
  2020-12-07  0:22       ` Ben Sturmfels
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Sturmfels @ 2018-12-13  5:36 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 32709


[-- Attachment #1.1: Type: text/plain, Size: 761 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#32709: Clojure doesn't provide "clojure" executable
  2018-12-13  5:36     ` Ben Sturmfels
@ 2020-12-07  0:22       ` Ben Sturmfels
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Sturmfels @ 2020-12-07  0:22 UTC (permalink / raw)
  To: Ben Sturmfels; +Cc: 32709-done

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.)




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-07 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-12  1:57 bug#32709: Clojure doesn't provide "clojure" executable Ben Sturmfels
2018-09-13 20:15 ` Ricardo Wurmus
2018-12-13  3:08   ` Ben Sturmfels
2018-12-13  5:36     ` Ben Sturmfels
2020-12-07  0:22       ` Ben Sturmfels

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).