From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 17 12:49:37 2015 Received: (at 20402) by debbugs.gnu.org; 17 Jun 2015 16:49:37 +0000 Received: from localhost ([127.0.0.1]:49773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5GWu-0001TV-DK for submit@debbugs.gnu.org; Wed, 17 Jun 2015 12:49:37 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:46053) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5GTp-0001Og-Nx for 20402@debbugs.gnu.org; Wed, 17 Jun 2015 12:46:27 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 8D56B40093 for <20402@debbugs.gnu.org>; Wed, 17 Jun 2015 18:46:23 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 74EB840040; Wed, 17 Jun 2015 18:46:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,WEIRD_QUOTING autolearn=disabled version=3.3.2 X-Spam-Score: -1.0 Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 6712B40040 for <20402@debbugs.gnu.org>; Wed, 17 Jun 2015 18:46:19 +0200 (CEST) Received: by oial131 with SMTP id l131so38508051oia.3 for <20402@debbugs.gnu.org>; Wed, 17 Jun 2015 09:46:17 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.34.74 with SMTP id x10mr5362432oei.4.1434559577113; Wed, 17 Jun 2015 09:46:17 -0700 (PDT) Received: by 10.202.175.135 with HTTP; Wed, 17 Jun 2015 09:46:17 -0700 (PDT) In-Reply-To: <87d20zbj03.fsf@gnu.org> References: <87381zicgg.fsf@gnu.org> <87616uzfd8.fsf@gnu.org> <87d20zbj03.fsf@gnu.org> Date: Wed, 17 Jun 2015 18:46:17 +0200 Message-ID: Subject: Re: HTTP and FTP proxies for guix package / guix-daemon From: =?UTF-8?B?Q2xhZXMgV2FsbGluICjpn4vlmInoqqAp?= To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 20402 Cc: 20402@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) Finally got around to this. On Sat, Jun 13, 2015 at 7:44 PM, Ludovic Court=C3=A8s wrote: > "Claes Wallin (=E9=9F=8B=E5=98=89=E8=AA=A0)" skribis: > >> I suppose if I have a freshly built guix with "guix package -i guix" >> or "guix package -u guix" it should be using guile 2.0.11 then? >> Actually looking at the head of .../bin/guix it's referring to a >> guile-2.0.11. > > Yes, so that should be OK. And it=E2=80=99s Guix > 0.8.2, right? # /root/.guix-profile/bin/guix --version guix (GNU Guix) 0.8.3 # ls -l /root/.guix-profile/bin/guix lrwxrwxrwx 3 root 999 71 Jan 1 1970 /root/.guix-profile/bin/guix -> /gnu/store/bja9w08pay8rqfs83f3rzlms9q63kymw-guix-0.8.2.a43b55f/bin/guix >> But guix-daemon still doesn't seem to be honoring http_proxy. > > As a first test, could you check whether =E2=80=98guix download=E2=80=99 = honors it? It does. > A second test would be: > > 1. Define =E2=80=98http_proxy=E2=80=99 in your user shell. > 2. From the same shell, run =E2=80=98guix build -S gcc --no-substitutes= =E2=80=99, say. > > Does that honor =E2=80=98http_proxy=E2=80=99? http_proxy is set (and exported) in user shell and in the daemon process. No. > And a third test is for substitutes: Are they also downloaded via the > proxy? Here you need to: > > 1. Define =E2=80=98http_proxy=E2=80=99 in a root shell. > 2. Run =E2=80=98guix-daemon=E2=80=99 from this shell. > 3. From a user shell, run =E2=80=98guix build gcc=E2=80=99, say, which = should normally > download a substitute from hydra.gnu.org rather than trying to build > things. > > Does the substitute download honor =E2=80=98http_proxy=E2=80=99? No. Whenever the daemon is doing the downloading, http_proxy is ignored and I get "Temporary failure in name resolution" because the VM doesn't have an internet DNS. As I said earlier, guix has guile-2.0.11 in the hashbang. But guix-daemon seems to be making use of guile-bootstrap. If I provoke it a bit I get this: # find /gnu/store/cyppdaliwllm1mzgka3cxwxnddk7j2cl-guile-bootstrap-2.0/ -name '*.scm' -exec touch {} + # guix package -i texinfo . . . ;;; note: source file /gnu/store/cyppdaliwllm1mzgka3cxwxnddk7j2cl-guile-bootstrap-2.0/share/guile= /2.0/ice-9/eval.scm ;;; newer than compiled /gnu/store/cyppdaliwllm1mzgka3cxwxnddk7j2cl-guile-bootstrap-2.0/lib/guile/2= .0/ccache/ice-9/eval.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. . . . ;;; it seems /gnu/store/cyppdaliwllm1mzgka3cxwxnddk7j2cl-guile-bootstrap-2.= 0/share/guile/2.0/ice-9/receive.scm ;;; is part of the compiler; skipping auto-compilation ;;; WARNING: compilation of /gnu/store/cyppdaliwllm1mzgka3cxwxnddk7j2cl-guile-bootstrap-2.0/share/guile= /2.0/ice-9/command-line.scm failed: ;;; ERROR: failed to create path for auto-compiled file "/gnu/store/cyppdaliwllm1mzgka3cxwxnddk7j2cl-guile-bootstrap-2.0/share/guil= e/2.0/ice-9/command-line.scm" starting download of `/gnu/store/2zkyyw4bq0wzsxdysncrf9lmwl44w5wh-binutils-2.25.tar.bz2' from `http://ftpmirror.gnu.org/binutils/binutils-2.25.tar.bz2'... ERROR: In procedure getaddrinfo: Temporary failure in name resolution ... so it's pretty clear that *something* in there is still referencing the bootstrap guile. But maybe that's expected? Are the guile packages built using only the bootstrap and not themselves? /gnu/store/0aq1kq37b6kr562330xz61rg08l6y5yg-guix-0.8.2.a43b55f.drv has: Derive([("out","/gnu/store/bja9w08pay8rqfs83f3rzlms9q63kymw-guix-0.8.2.a43b= 55f","","")] . . . ("/gnu/store/4lkrvcnh2y923la3ivsbyv2m2nv3xpjy-guile-2.0.9.tar.xz.drv"= ,["out"]) . . . ("/gnu/store/d3x2skfxhvqj21w39f6bckmxni1q3bbp-guile-2.0.11.tar.xz.drv= ",["out"]) . . . ("/gnu/store/hvl3gwa57p7k1qnliyy6ymbmz2509azh-guile-2.0.11.drv",["out= "]) . . . ("/gnu/store/p4i1inysxx5ra0hvhcrd9liw3a5skcbx-guile-2.0.9.tar.xz.drv"= ,["out"]) . . . ("/gnu/store/wlivhx78f1a05dx0blqy209cb1nqwgf5-guile-2.0.9.tar.xz.drv"= ,["out"]) . . . ["/gnu/store/iylwyjzxcy3hkz1wlgpyk4zmhci97rgk-guix-0.8.2.a43b55f-guil= e-builder"],"x86_64-linux","/gnu/store/cnqmkmj40jmssnx6fkf9n0n3bqj5x426-gui= le-2.0.11/bin/guile",["--no-auto-compile","-L","/gnu/store/x2nfxrqhdsvir8l6= 5x19bhnrwd4h41rs-module-import","/gnu/store/iylwyjzxcy3hkz1wlgpyk4zmhci97rg= k-guix-0.8.2.a43b55f-guile-builder"],[("GUILE_LOAD_COMPILED_PATH","/gnu/sto= re/07n184fk33b7gqkyrbn6b2ckdfisp09i-module-import-compiled"),("out","/gnu/s= tore/bja9w08pay8rqfs83f3rzlms9q63kymw-guix-0.8.2.a43b55f")]) Why so many different guile drivers? Is that expected? > Thanks in advance! No problem!