GNU bug report logs - #20402
guix cannot download via an http proxy

Previous Next

Package: guix;

Reported by: Joshua Randall <jcrandall <at> alum.mit.edu>

Date: Tue, 21 Apr 2015 23:01:01 UTC

Severity: normal

Found in version 0.8.1

Full log


Message #8 received at 20402 <at> debbugs.gnu.org (full text, mbox):

From: Joshua Randall <jcrandall <at> alum.mit.edu>
To: 20402 <at> debbugs.gnu.org
Subject: Re: guix cannot download via an http proxy
Date: Wed, 22 Apr 2015 02:15:58 +0100
[Message part 1 (text/plain, inline)]
Tags: patch

Please find a proposed patch that should fix this issue. I haven't written
scheme in many years, so please excuse me if I have failed to follow
convention in any way - I won't be offended at all if you want to refactor
it. This patch should apply cleanly on the current git master branch and
also on the v0.8.1 release.

This patch modifies http-fetch (in build/download.scm) such that it calls
Guile's open-socket-for-uri after fixing up the uri so that it always has a
port specified. I'm not sure how to test the bootstrapping NSS issue that
required open-connection-for-uri, but my expectation based on reading the
source is that this alternative should work for Guile > 2.0.7, and I've
left the original open-connection-for-uri in there for backwards
compatibility with Guile < 2.0.7. If someone can test this against a
situation known to have needed the NSS workaround, that would be great.

I've also changed the only other call to open-connection-for-uri, which is
in the probe-uri function in scripts/lint.scm - my suspicion is that won't
be an issue because I'm guessing the lint scripts are not used while
bootstrapping, so the open-socket-for-uri function will probably be fine
for the purpose of probing whether a URL is valid.

After applying this patch, guix should use the http proxy support built in
to Guile >= 2.0.10. This appears to be working for me - I've just started a
bootstrap and it has now started to successfully download packages - so
far, so good.

Please let me know if there is anything else I can do to assist with
getting this issue fixed.

Cheers,

Josh.
[Message part 2 (text/html, inline)]
[guix-git-dd3a42e6-http-proxy-fix.patch (application/octet-stream, attachment)]

This bug report was last modified 9 years and 348 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.