all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: Re: Problems with downloading from https
Date: Sun, 26 Oct 2014 10:03:10 +0300	[thread overview]
Message-ID: <87y4s348k1.fsf@gmail.com> (raw)
In-Reply-To: <20141025200250.675.55930@vulcan.local.tld> (Ian Denhardt's message of "Sat, 25 Oct 2014 16:02:55 -0400")

Ian Denhardt (2014-10-26 00:02 +0400) wrote:

> Quoting Alex Kost (2014-10-25 13:30:26)
>> Hello, I noticed <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18831>
>> and decided to ask about a similar problem I have.
>>
>> Whenever I try to download anything from https, I get an error, for
>> example:
>>
>> --8<---------------cut here---------------start------------->8---
>> $ guix download https://savannah.gnu.org/projects/guix/
>> starting download of `/tmp/guix-file.Z7tZhy' from `https://savannah.gnu.org/projects/guix/'...
>> ;;; Failed to autoload make-session in (gnutls):
>> ;;; ERROR: missing interface for module (gnutls)
>> ERROR: In procedure module-lookup: Unbound variable: make-session
>> failed to download "/tmp/guix-file.Z7tZhy" from "https://savannah.gnu.org/projects/guix/"
>> guix download: error: https://savannah.gnu.org/projects/guix/: download failed
>> --8<---------------cut here---------------end--------------->8---
>>
>> I have a feeling that I'm missing something obvious but I can't figure
>> it out.  Any help appreciated.
>
> Huh, I assumed this was just me having set up something wrong. Either
> this is an actual bug, or we've hit the same pitfall with configuration.
>
> Do others have this working? What's your setup like? I'm running in a
> git checkout on an up-to-date Archlinux system, set up according to the
> instructions in the README.

The same for me (Arch Linux as well).  Unhappily, as you can see at
<https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/gnutls>
gnutls is built without guile support (./configure … --disable-guile).
Thus gnutls from Arch Linux wouldn't work; so I installed gnutls using
guix and augmented guile paths with:

  /home/<user>/.guix-profile/share/guile/site

With this guile can find (gnutls) module and the error disappears.


Ludovic Courtès (2014-10-26 01:53 +0400) wrote:

> The problem is that the GnuTLS Guile bindings must be installed for
> ‘guix download’ to work with HTTPS (the manual suggests it, but perhaps
> not clearly enough?)

Thanks for the explanation.  The manual is absolutely clear, I just
didn't read it properly :-)

> So just install GnuTLS, make sure ‘guile -c '(use-modules (gnutls))'’
> succeeds, and then it’ll work.

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.

Perhaps “guix package --search-paths” should be adjusted to recommend
the following (?):

export GUILE_LOAD_PATH="<path/to/guix-profile>/share/guile/site/2.0:<path/to/guix-profile>/share/guile/site"
export GUILE_LOAD_COMPILED_PATH="<path/to/guix-profile>/share/guile/site/2.0:<path/to/guix-profile>/share/guile/site"

-- 
Alex

  reply	other threads:[~2014-10-26  7:03 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-25 17:30 Problems with downloading from https Alex Kost
2014-10-25 20:02 ` Ian Denhardt
2014-10-26  7:03   ` Alex Kost [this message]
2014-10-26 13:46     ` Ludovic Courtès
2014-10-26 19:35       ` Alex Kost
2014-10-26 21:01         ` Ludovic Courtès
2014-10-27  9:06           ` Mark H Weaver
2014-10-27 12:24             ` Ludovic Courtès
2014-10-27 12:44               ` Ludovic Courtès
2014-10-27 13:27               ` Alex Kost
2014-10-27 14:43                 ` Mark H Weaver
2014-10-27 16:24                   ` Ludovic Courtès
2014-10-27 16:44                     ` Alex Kost
2014-10-28  8:03                       ` Ludovic Courtès
2014-10-29 22:22                         ` Andreas Enge
2014-10-30  7:27                           ` Alex Kost
2014-10-30  7:49                             ` Andreas Enge
2014-10-30 12:31                               ` Alex Kost
2014-10-30 12:38                                 ` Andreas Enge
2014-10-30 19:30                                   ` Alex Kost
2014-10-30 23:07                                   ` Different versions of a package in the same profile? Ludovic Courtès
2014-11-01 10:46                                     ` Andreas Enge
2014-11-02 17:22                                       ` Ludovic Courtès
2014-11-02 17:39                                         ` Andreas Enge
2014-10-30 13:20                             ` Problems with downloading from https Ludovic Courtès
2014-10-30 17:05                             ` Ian Denhardt
2014-10-30 19:08                               ` Alex Kost
2014-10-31  4:54                                 ` Ian Denhardt
2014-10-30 14:48               ` Ludovic Courtès
2014-10-27 13:01             ` Alex Kost
2014-10-27 14:32               ` Mark H Weaver
2014-10-25 21:53 ` Ludovic Courtès
2014-10-26  5:30   ` [PATCH 0/1] " Ian Denhardt
2014-10-26  5:21     ` [PATCH 1/1] README: add a note about optional GnuTLS dependency Ian Denhardt
2014-10-27 12:54       ` Ludovic Courtès
2014-10-27 10:49     ` [PATCH 0/1] Re: Problems with downloading from https Ian Denhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4s348k1.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.