unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37200] [PATCH] gnu: Add roswell.
@ 2019-08-27 15:33 Pierre Neidhardt
       [not found] ` <handler.37200.B.156692001515701.ack@debbugs.gnu.org>
  2019-09-16  8:40 ` [bug#37200] [PATCH] gnu: Add roswell Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Pierre Neidhardt @ 2019-08-27 15:33 UTC (permalink / raw)
  To: 37200

* gnu/packages/lisp.scm (roswell): New variable.
---
 gnu/packages/lisp.scm | 50 ++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 49 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index d32f4b19bd..696bb393bc 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -10,7 +10,7 @@
 ;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
-;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
+;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
 ;;; Copyright © 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
 ;;; Copyright © 2019 Katherine Cox-Buday <cox.katherine.e@gmail.com>
 ;;; Copyright © 2019 Jesse Gildersleve <jessejohngildersleve@protonmail.com>
@@ -44,11 +44,13 @@
   #:use-module (guix build-system asdf)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages admin)
+  #:use-module (gnu packages autotools)
   #:use-module (gnu packages base)
   #:use-module (gnu packages bdw-gc)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages c)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages curl)
   #:use-module (gnu packages ed)
   #:use-module (gnu packages flex)
   #:use-module (gnu packages fontutils)
@@ -679,6 +681,52 @@ libraries for Machine Learning, Neural Nets and statistical estimation.")
     (home-page "http://lush.sourceforge.net/")
     (license license:lgpl2.1+)))
 
+(define-public roswell
+  (package
+    (name "roswell")
+    (version "19.08.10.101")
+    (home-page "https://github.com/roswell/roswell/")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (sha256
+        (base32
+         "0i72vzzzjwi9lnzzl8y10pp3kq298vhzz3spvsmi8n1yalqwslbf"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("intltool" ,intltool)))
+    (inputs
+     `(("curl" ,curl)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'patch-ssl-certs
+           (lambda _
+             ;; TODO: libcurl does not honor SSL_CERT_DIR et al.
+             ;; See https://issues.guix.gnu.org/issue/25240.
+             ;; Is the following workaround right?
+             (substitute* "src/download.c"
+               (("curl_easy_setopt\\(curl, CURLOPT_URL, uri\\);")
+                "curl_easy_setopt(curl, CURLOPT_URL, uri);
+curl_easy_setopt(curl, CURLOPT_CAINFO, \"/etc/ssl/certs/ca-certificates.crt\");"))
+             #t)))))
+    (synopsis "Common Lisp implementation manager, launcher, and more")
+    (description
+     "Roswell started out as a command-line tool with the aim to make
+installing and managing Common Lisp implementations really simple and easy.
+Roswell has now evolved into a full-stack environment for Common Lisp
+development, and has many features that makes it easy to test, share, and
+distribute your Lisp applications.
+
+Roswell is still in beta. Despite this, the basic interfaces are stable and
+not likely to change.")
+    (license license:expat)))
+
 (define-public sbcl-alexandria
   (let ((revision "1")
         (commit "926a066611b7b11cb71e26c827a271e500888c30"))
-- 
2.21.0

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

* [bug#37200] Acknowledgement ([PATCH] gnu: Add roswell.)
       [not found] ` <handler.37200.B.156692001515701.ack@debbugs.gnu.org>
@ 2019-08-27 15:35   ` Pierre Neidhardt
  0 siblings, 0 replies; 7+ messages in thread
From: Pierre Neidhardt @ 2019-08-27 15:35 UTC (permalink / raw)
  To: 37200

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

This is a work in progress.
In particular, I know of the libcurl issue with SSL_CERT_DIR.
Is the proposed workaround appropriate?

There are still a couple more issues that need fixing.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* [bug#37200] [PATCH] gnu: Add roswell.
  2019-08-27 15:33 [bug#37200] [PATCH] gnu: Add roswell Pierre Neidhardt
       [not found] ` <handler.37200.B.156692001515701.ack@debbugs.gnu.org>
@ 2019-09-16  8:40 ` Ludovic Courtès
  2019-09-17 13:05   ` Pierre Neidhardt
  1 sibling, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2019-09-16  8:40 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 37200

Hello Pierre,

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> * gnu/packages/lisp.scm (roswell): New variable.

Looks like this patch feel through the cracks…

> +           (lambda _
> +             ;; TODO: libcurl does not honor SSL_CERT_DIR et al.
> +             ;; See https://issues.guix.gnu.org/issue/25240.
> +             ;; Is the following workaround right?
> +             (substitute* "src/download.c"
> +               (("curl_easy_setopt\\(curl, CURLOPT_URL, uri\\);")
> +                "curl_easy_setopt(curl, CURLOPT_URL, uri);
> +curl_easy_setopt(curl, CURLOPT_CAINFO, \"/etc/ssl/certs/ca-certificates.crt\");"))
> +             #t)))))

Normally, it’s up to applications using libcurl to do the right thing,
which is (1) to check standard certificate locations like you did above,
and ideally (2) to check some environment variables.

Unfortunately some applications don’t do this (see for instance commit
489d16577e4a6ccc30f3719d9263900089edd842.)  In those cases, we usually
do what you did above.

In short, I think it’s a fine workaround.

> +    (description
> +     "Roswell started out as a command-line tool with the aim to make
> +installing and managing Common Lisp implementations really simple and easy.
> +Roswell has now evolved into a full-stack environment for Common Lisp
> +development, and has many features that makes it easy to test, share, and
> +distribute your Lisp applications.
> +
> +Roswell is still in beta. Despite this, the basic interfaces are stable and
> +not likely to change.")

Maybe you can drop the second paragraph since it’ll hopefully become
stale.  :-)

Thanks!

Ludo’.

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

* [bug#37200] [PATCH] gnu: Add roswell.
  2019-09-16  8:40 ` [bug#37200] [PATCH] gnu: Add roswell Ludovic Courtès
@ 2019-09-17 13:05   ` Pierre Neidhardt
  2019-09-18 12:05     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Pierre Neidhardt @ 2019-09-17 13:05 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37200

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

Thanks for the review!

After some discussion with upstream, it does not seem that Roswell can
be used without using a binary blob of SBCL:

https://github.com/roswell/roswell/issues/387

So I don't think that makes it a good fit for a Guix package.

A few options:

- Patch Roswell so that it takes Guix' SBCL instead of its own (could be
a lot of work).

- Patchelf the binary blob.

Thoughts?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* [bug#37200] [PATCH] gnu: Add roswell.
  2019-09-17 13:05   ` Pierre Neidhardt
@ 2019-09-18 12:05     ` Ludovic Courtès
  2019-09-19  6:51       ` Pierre Neidhardt
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2019-09-18 12:05 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 37200

Hi Pierre,

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> Thanks for the review!
>
> After some discussion with upstream, it does not seem that Roswell can
> be used without using a binary blob of SBCL:
>
> https://github.com/roswell/roswell/issues/387
>
> So I don't think that makes it a good fit for a Guix package.
>
> A few options:
>
> - Patch Roswell so that it takes Guix' SBCL instead of its own (could be
> a lot of work).
>
> - Patchelf the binary blob.

It’s clear that “patchelf the binary blob” is not an option in Guix.

The description for Roswell says it’s a tool for “installing and
managing Common Lisp implementations”.  If its job is precisely to
download and run pre-built binaries, then perhaps that would require
significant changes in Roswell itself so that it patches the binaries it
downloads?

But then again, if Roswell is about downloading pre-built binaries, we
should be careful about what’s going on.  After all, that might be
partly redundant with what Guix does, except that those binaries it
downloads may be non-reproducible or may even lack and build recipe
altogether.

So… the story about these pre-built binaries raises a red flag for me,
and I’m not sure what can be done here.

Thoughts?

Ludo’.

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

* [bug#37200] [PATCH] gnu: Add roswell.
  2019-09-18 12:05     ` Ludovic Courtès
@ 2019-09-19  6:51       ` Pierre Neidhardt
  2019-09-19  8:22         ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Pierre Neidhardt @ 2019-09-19  6:51 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37200

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

I initially wanted to package Roswell so that we can start packaging Lem
(https://github.com/cxxxr/lem) but Lem it turns out the Lem does not
need it anymore.

I guess "Roswell on Guix" can be dropped then.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* [bug#37200] [PATCH] gnu: Add roswell.
  2019-09-19  6:51       ` Pierre Neidhardt
@ 2019-09-19  8:22         ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2019-09-19  8:22 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 37200

Hi Pierre,

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> I initially wanted to package Roswell so that we can start packaging Lem
> (https://github.com/cxxxr/lem) but Lem it turns out the Lem does not
> need it anymore.

OK.

> I guess "Roswell on Guix" can be dropped then.

Your call.  If you feel this way, feel free to close this bug.

We can always revisit the issue later if needed.

Thank you,
Ludo’.

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

end of thread, other threads:[~2019-09-19  8:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 15:33 [bug#37200] [PATCH] gnu: Add roswell Pierre Neidhardt
     [not found] ` <handler.37200.B.156692001515701.ack@debbugs.gnu.org>
2019-08-27 15:35   ` [bug#37200] Acknowledgement ([PATCH] gnu: Add roswell.) Pierre Neidhardt
2019-09-16  8:40 ` [bug#37200] [PATCH] gnu: Add roswell Ludovic Courtès
2019-09-17 13:05   ` Pierre Neidhardt
2019-09-18 12:05     ` Ludovic Courtès
2019-09-19  6:51       ` Pierre Neidhardt
2019-09-19  8:22         ` Ludovic Courtès

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