Ludovic Courtès (2014-10-26 16:46 +0300) wrote: > Alex Kost <alez...@gmail.com> skribis: > >> Yes, I installed gnutls, but it didn't work because I didn't set the >> right guile paths: “guix package --search-paths” recommends >> "/usr/local/var/guix/profiles/per-user/<user>/guix-profile/share/guile/site/2.0" >> but "gnutls.scm" is actually placed in >> "/usr/local/var/guix/profiles/per-user/<user>/guix-profile/share/guile/site" >> so ‘(use-modules (gnutls))’ failed for me. > > Oh, that’s a bug of the GnuTLS package: we should pass the right > configure flag so that modules go to site/2.0. Could you do that?
Yes, but I'm a little concerned. Should it really be so? What about guile-1.8; isn't it supposed to use gnutls module as well? > This should probably go to core-updates, since it’s going to be merged > soon anyway. As far as I can see there is no core-updates branch currently: <http://git.savannah.gnu.org/cgit/guix.git/refs/>. The patch is attached, so (if it looks good to you) should I push it to master or create "core-updates" branch?
>From 8fd2d01a276f3dc7922577d1bd153677dcea4a39 Mon Sep 17 00:00:00 2001 From: Alex Kost <alez...@gmail.com> Date: Sun, 26 Oct 2014 22:11:24 +0300 Subject: [PATCH] gnu: gnutls: Fix path to a guile site directory. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested by Ludovic Courtès. * gnu/packages/gnutls.scm (gnutls): Add '--with-guile-site-dir' configure flag. --- gnu/packages/gnutls.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/gnutls.scm b/gnu/packages/gnutls.scm index 1660588..7e9b85e 100644 --- a/gnu/packages/gnutls.scm +++ b/gnu/packages/gnutls.scm @@ -77,6 +77,11 @@ specifications.") "1krx33ab2ijwfz71f1ba8labxfsic7jhlhv6rvjsyw566jj9a3d2")) (patches (list (search-patch "gnutls-server-name-fix.patch"))))) (build-system gnu-build-system) + (arguments + '(#:configure-flags + (list (string-append "--with-guile-site-dir=" + (assoc-ref %outputs "out") + "/share/guile/site/2.0")))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs -- 2.1.2