From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Sturmfels Subject: bug#32709: Clojure doesn't provide "clojure" executable Date: Thu, 13 Dec 2018 14:08:47 +1100 Message-ID: References: <874leva358.fsf@sturm.com.au> <878t456tnj.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DOMEmcubrNkkcctgltSbFTMS47zIN2zfe" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXHOD-0000QG-KL for bug-guix@gnu.org; Wed, 12 Dec 2018 22:10:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXHO7-0003ru-Q0 for bug-guix@gnu.org; Wed, 12 Dec 2018 22:10:17 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:41427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXHNz-0003hw-3K for bug-guix@gnu.org; Wed, 12 Dec 2018 22:10:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gXHNy-00060Z-MK for bug-guix@gnu.org; Wed, 12 Dec 2018 22:10:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <878t456tnj.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ricardo Wurmus Cc: 32709@debbugs.gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --DOMEmcubrNkkcctgltSbFTMS47zIN2zfe Content-Type: multipart/mixed; boundary="jm43Vr1uNM7Vj7gAoISpWb0CTZO7P42Go"; protected-headers="v1" From: Ben Sturmfels To: Ricardo Wurmus Cc: 32709@debbugs.gnu.org Message-ID: Subject: Re: bug#32709: Clojure doesn't provide "clojure" executable References: <874leva358.fsf@sturm.com.au> <878t456tnj.fsf@elephly.net> In-Reply-To: <878t456tnj.fsf@elephly.net> --jm43Vr1uNM7Vj7gAoISpWb0CTZO7P42Go Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Thanks Ricardo, On 14/09/18 06:15, Ricardo Wurmus wrote: >=20 > Hi Ben, >=20 >> When I install the "clojure" package, I can't seem to just run `clojur= e` >> 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. >=20 > 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. >=20 > 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 i= n > the ant-build-system. >=20 > 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 --jm43Vr1uNM7Vj7gAoISpWb0CTZO7P42Go-- --DOMEmcubrNkkcctgltSbFTMS47zIN2zfe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJcEc1AAAoJEAI8BeLJwGjw8bkP/juL3rl8/H/ZCWdMYXk+RDkK gLoHozFXgUXBYqO5QALlVE1vUe+D/2z5T86/aKgy5o8qYPuenVtOS5MTwRGQWN0d 9Wc2RF5y4hZ+f107fzuCabjzjGzW5C19RMit1nTK0aBknWARMt1PALrcVw3/UDn/ cs045NU83MLHXANdrSn7ydqGC53pDIzem925UVw64V6AX+pUE4qiXJFdTz6B4yR/ rwVV3qz/qeYAg9WvAMv+Js0qRc/rjwrM89GzyVZcTycUFT8N2KK5klYFsczZH5Ri bIHaIsQpSgqy3vggNEGY85RpEGcCIVqbj3oIZ10pvFSVoJ+xMo/qWI+XX1MWgOCT YDhVOdzZbK7wTAhWKI8Rx2BwWHpVO2sFpr4S3CdPRXqE+2FwjovsEsuCwantxRDZ NDvW5vpSJRN8KoPTFzVUULti8FBnXsNM3lzh4PXutJUDx7WYW4zyX8dxdrhFSaQ3 o0lrw4tvKhOn9+einia/jh67QIfFHJHIuH2WCVUqefitpuJ3bG+lzs+btb3yo7vQ JmVqX/EaeaMm4IqdQfG3iAm34A5+Kx6BIdLouvmLbH2f7Fg1VfnLmDq0UnKdfiIk oYMKJ8uei1AXc+aQDlfDdWwFjiH9ji2jDI2xkfL60Q3HZu58yAnx57JMyXzw/I7H 2mPracAOrTACk8oXzC/l =EJY7 -----END PGP SIGNATURE----- --DOMEmcubrNkkcctgltSbFTMS47zIN2zfe--