GNU bug report logs

#20402 guix cannot download via an http proxy

version graph
PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

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

Received: (at 20402) by debbugs.gnu.org; 22 Apr 2015 01:16:08 +0000
From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 21 21:16:08 2015
Received: from localhost ([127.0.0.1]:35655 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1YkjGp-0000xj-Rt
	for submit@debbugs.gnu.org; Tue, 21 Apr 2015 21:16:08 -0400
Received: from mail-la0-f45.google.com ([209.85.215.45]:36521)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jrandall@gmail.com>) id 1YkjGm-0000x2-Sp
 for 20402@debbugs.gnu.org; Tue, 21 Apr 2015 21:16:05 -0400
Received: by lagv1 with SMTP id v1so163789599lag.3
 for <20402@debbugs.gnu.org>; Tue, 21 Apr 2015 18:15:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:sender:in-reply-to:references:date:message-id:subject
 :from:to:content-type;
 bh=DxP+qYvszLTScFedBqmSdKrK8ajCT/a0TKDzwx5sw+Y=;
 b=ed9WOuH6pFKLFHABiA0YeHeioOc24JiBH2IJySbwqEzbZ9vdqdgnj3dcAPybf7bbtJ
 A7WOhWn+NHOesGrI+uNODIRRvNvxNjtlEWM74DlrnUhGIzBk4qzpXE+J25YMS65JuDEO
 iTuPIDcJD75hdsEgHkv5AbN9zi/CZjH9Hk6GBJLc/oGc2XIrPxr5mPy32KVGBRbajCwZ
 OQAr7GMRaWjjEzg++N/sQg7W7P2YygCbThM9lWsjneqgrPNftIzOxelqujuEGkQ5leqT
 NCrysLymZbv7pUirBYwBru5iIkooPV4MR0ibBKeuD4ROu4XneX9Uf5Fv+2CJygZBuHqE
 pDBQ==
MIME-Version: 1.0
X-Received: by 10.112.181.68 with SMTP id du4mr21764078lbc.11.1429665358963;
 Tue, 21 Apr 2015 18:15:58 -0700 (PDT)
Received: by 10.25.80.9 with HTTP; Tue, 21 Apr 2015 18:15:58 -0700 (PDT)
In-Reply-To: <CAFBLGSNKzhWGjCiheo8W5sc=tzmcjw6PkczxsDizVw-nKwnSzQ@mail.gmail.com>
References: <CAFBLGSNKzhWGjCiheo8W5sc=tzmcjw6PkczxsDizVw-nKwnSzQ@mail.gmail.com>
Date: Wed, 22 Apr 2015 02:15:58 +0100
X-Google-Sender-Auth: IKRuDDUB-2VsFc_e4EWmJIvkchA
Message-ID: <CAFBLGSN8Gu5-=NsFuHumomtG80jNO94Sjc9AsuSZvkT9R46eEg@mail.gmail.com>
Subject: Re: guix cannot download via an http proxy
From: Joshua Randall <jcrandall@alum.mit.edu>
To: 20402@debbugs.gnu.org
Content-Type: multipart/mixed; boundary=001a11c36882ded708051445e7cc
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 20402
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.7 (/)
[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)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 10:50:35 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.