From unknown Thu Jun 19 14:04:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25831 <25831@debbugs.gnu.org> To: bug#25831 <25831@debbugs.gnu.org> Subject: Status: Expose http_proxy setting on GuixSD Reply-To: bug#25831 <25831@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:04:42 +0000 retitle 25831 Expose http_proxy setting on GuixSD reassign 25831 guix submitter 25831 Leo Famulari severity 25831 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 21 12:19:27 2017 Received: (at submit) by debbugs.gnu.org; 21 Feb 2017 17:19:27 +0000 Received: from localhost ([127.0.0.1]:49134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgE62-0006Dr-Qj for submit@debbugs.gnu.org; Tue, 21 Feb 2017 12:19:27 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgE60-0006DX-L5 for submit@debbugs.gnu.org; Tue, 21 Feb 2017 12:19:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgE5u-0003SU-Hq for submit@debbugs.gnu.org; Tue, 21 Feb 2017 12:19:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53701) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgE5u-0003SQ-Eg for submit@debbugs.gnu.org; Tue, 21 Feb 2017 12:19:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgE5t-0007kJ-9Y for bug-guix@gnu.org; Tue, 21 Feb 2017 12:19:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgE5q-0003Qu-5P for bug-guix@gnu.org; Tue, 21 Feb 2017 12:19:17 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40519) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cgE5q-0003Qp-1a for bug-guix@gnu.org; Tue, 21 Feb 2017 12:19:14 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BDEB520C89; Tue, 21 Feb 2017 12:19:13 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Tue, 21 Feb 2017 12:19:13 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= cc:content-type:date:from:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=OP7 1eHQsznl/P1S17uhEWzr+1rg=; b=pYnD81ypYSXBv8PqDhquZDtju2xaJOktgoY QJo6mdr+yETtci2y1cqmnvR9CmuebbB1InPoKKdntC1PwNrm9kYUC2n/jBVub5Xn 50Cy0rZ41l6kXi6jKDdeVnEOED1jZPw1QkF1mPR60j7JlBnBuXqWsedU3OQAcgwU g2yJ7tfU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=smtpout; bh=OP71eHQsznl/P1S17uhEWzr+1rg=; b=WsgB2 WPheieFIDluruaj6JRM3f5Pi83l9ayReiHuWzjEft33R/oxZAUlrIIYhEOr2puA2 2NUj0Ku0cn6KDiHoWT2RqDbHb9YU1KZmxBhKcwa/SI9bc+QTv1XxE3bJ1D2n0A+R IF4+U5Y7XAZRavYaRVP+4kcpx920Nze3JWZTLY= X-ME-Sender: X-Sasl-enc: rm36LY9DwhVw4e31pNth2mgtH1IeOtRU1Yk9HpLohmUK 1487697553 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 8346F24216; Tue, 21 Feb 2017 12:19:13 -0500 (EST) Date: Tue, 21 Feb 2017 12:19:12 -0500 From: Leo Famulari To: bug-guix@gnu.org Subject: Expose http_proxy setting on GuixSD Message-ID: <20170221171912.GB1656@jasmine> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit Cc: ng0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -4.1 (----) ----- Forwarded message from ng0 ----- Date: Tue, 21 Feb 2017 09:43:35 +0000 From: ng0 To: Leo Famulari Cc: help-guix@gnu.org Subject: Re: Proxy documentation is not clear On 17-02-20 22:32:40, Leo Famulari wrote: > On Sun, Feb 19, 2017 at 05:06:23PM +0000, ng0 wrote: > > Substitutes are downloaded over HTTP or HTTPS. The http_proxy > > environment variable can be set in the environment of guix-daemon and > > is honored for downloads of substitutes. Note that the value of > > http_proxy in the environment where guix build, guix package, and > > other client commands are run has absolutely no effect. > > > > None of these pages provides any example or further explanation on how > > this could be achieved, for example to make Guix use a socks5 proxy > > systemwide. I know how this can be achieved with iptables etc, but it > > would be better if the documentation is fixed. I have no idea how in > > this case as the documentation is not clear. > > It depends on how you start the daemon. For systemd, you can set the > environment variable from the service file. I'm not sure how to pass > this variable to the daemon on GuixSD. Exactly, for systemd I would have been able to find it out, but I wonder how to achieve this in GuixSD. ----- End forwarded message ----- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 21 13:17:13 2017 Received: (at 25831) by debbugs.gnu.org; 21 Feb 2017 18:17:13 +0000 Received: from localhost ([127.0.0.1]:49198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgEzx-0007cU-9K for submit@debbugs.gnu.org; Tue, 21 Feb 2017 13:17:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgEzw-0007cJ-F4 for 25831@debbugs.gnu.org; Tue, 21 Feb 2017 13:17:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgEzq-0003t6-4K for 25831@debbugs.gnu.org; Tue, 21 Feb 2017 13:17:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgEzq-0003sx-1b; Tue, 21 Feb 2017 13:17:06 -0500 Received: from [2a01:e35:2ec2:e580:4a5d:60ff:fe57:52cd] (port=59204 helo=godel) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cgEzp-0005yJ-IJ; Tue, 21 Feb 2017 13:17:05 -0500 From: Mathieu Lirzin To: Leo Famulari Subject: Re: bug#25831: Expose http_proxy setting on GuixSD References: <20170221171912.GB1656@jasmine> Date: Tue, 21 Feb 2017 19:17:03 +0100 In-Reply-To: <20170221171912.GB1656@jasmine> (Leo Famulari's message of "Tue, 21 Feb 2017 12:19:12 -0500") Message-ID: <87efyrwgrk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25831 Cc: 25831@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -5.0 (-----) Hello, Leo Famulari writes: > From: ng0 > Subject: Re: Proxy documentation is not clear > To: Leo Famulari > Cc: help-guix@gnu.org > Date: Tue, 21 Feb 2017 09:43:35 +0000 (8 hours, 8 minutes, 14 seconds ago) > > On 17-02-20 22:32:40, Leo Famulari wrote: >> On Sun, Feb 19, 2017 at 05:06:23PM +0000, ng0 wrote: >> > Substitutes are downloaded over HTTP or HTTPS. The http_proxy >> > environment variable can be set in the environment of guix-daemon and >> > is honored for downloads of substitutes. Note that the value of >> > http_proxy in the environment where guix build, guix package, and >> > other client commands are run has absolutely no effect. >> > >> > None of these pages provides any example or further explanation on how >> > this could be achieved, for example to make Guix use a socks5 proxy >> > systemwide. I know how this can be achieved with iptables etc, but it >> > would be better if the documentation is fixed. I have no idea how in >> > this case as the documentation is not clear. >> >> It depends on how you start the daemon. For systemd, you can set the >> environment variable from the service file. I'm not sure how to pass >> this variable to the daemon on GuixSD. > > Exactly, for systemd I would have been able to find it out, but I wonder > how to achieve this in GuixSD. > > ---------- > Not sure if this is an appropriate answer, but to customize the guix daemon service field like described in the example here: https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#System-Services you would have to patch "gnu/services/base.scm" by adding a field to the 'guix-configuration' that would be then be passed to the '#:environment-variables' option of 'make-forkexec-constructor' in 'guix-shepherd-service'. HTH. -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 21 15:27:03 2017 Received: (at 25831) by debbugs.gnu.org; 21 Feb 2017 20:27:03 +0000 Received: from localhost ([127.0.0.1]:49267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgH1Y-0003wJ-8Q for submit@debbugs.gnu.org; Tue, 21 Feb 2017 15:27:03 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgH1U-0003w8-3C for 25831@debbugs.gnu.org; Tue, 21 Feb 2017 15:26:59 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BBE8F208ED; Tue, 21 Feb 2017 15:26:55 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 21 Feb 2017 15:26:55 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=1ZiGFnEfF8jjtT/ EuxR8srIFMxg=; b=da7FtJgjmamk0gfW4hoPeQSDZuhSmzanE8dCuFqXzo5qQaQ CsK13+3E8yOJqmweuKkDb6U4BztS9LsSusziOGl5z+YqsRuObs797YdiMVUOEIJ3 D1Kw/oWxCSBOsEU736no+W2oHOQaqCivzPshZpv+ZsINaDZ0aVPpC+e0lJxg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=1ZiGFnEfF8jjtT/EuxR8srIFMxg=; b=dp5P4mWfYZXbooMM/779 Q/bgI2ix+mp01MzveMs6u1ilDdp6ADcxaHWj7aFAF1veECd1+uJrZSZVGqyaek10 0rlZQroQ9NbjkKK7jB4yTMzXGEYCFQKpxO5SW522bvyad2qbLUbvoQY/ZP1GLdUB s+4BVMwhwyXkTstTnF0zLa4= X-ME-Sender: X-Sasl-enc: rkyQ99rj57Cdw3727GYsBsl5woV1gP6OMldX4cwSMmo5 1487708815 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 760B07E033; Tue, 21 Feb 2017 15:26:55 -0500 (EST) Date: Tue, 21 Feb 2017 15:26:54 -0500 From: Leo Famulari To: Mathieu Lirzin Subject: Re: bug#25831: Expose http_proxy setting on GuixSD Message-ID: <20170221202654.GA16281@jasmine> References: <20170221171912.GB1656@jasmine> <87efyrwgrk.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="DocE+STaALJfprDB" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87efyrwgrk.fsf@gnu.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25831 Cc: 25831@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 21, 2017 at 07:17:03PM +0100, Mathieu Lirzin wrote: > Not sure if this is an appropriate answer, but to customize the guix daemon > service field like described in the example here: > > https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#System-Services > > you would have to patch "gnu/services/base.scm" by adding a field to the > 'guix-configuration' that would be then be passed to the > '#:environment-variables' option of 'make-forkexec-constructor' in > 'guix-shepherd-service'. Thank you, that helped a lot! What do the two of you think of the attached patch? Using the attached OS declaration, I verified that the http_proxy environment variable is set in the guix-daemon's environment, but I don't have a proxy to test with. --DocE+STaALJfprDB Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-services-guix-Support-using-an-HTTP-proxy.patch" Content-Transfer-Encoding: 8bit >From 1e6e95ea5b43231d09279b9e54f5c581462486f6 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 21 Feb 2017 14:57:02 -0500 Subject: [PATCH] services: guix: Support using an HTTP proxy. * gnu/services/base.scm ()[http-proxy]: New field. (guix-shepherd-service): Use 'http-proxy' in #:environment-variables. * doc/guix.texi ... --- doc/guix.texi | 4 ++++ gnu/services/base.scm | 13 +++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 6cdb5e592..19a31c659 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -8611,6 +8611,10 @@ are written. @item @code{lsof} (default: @var{lsof}) The lsof package to use. +@item @code{http-proxy} (default: @code{#f}) +The HTTP proxy used for downloading fixed-output derivations and +substitutes. + @end table @end deftp diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 57601eab8..352a90be7 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2015, 2016 Alex Kost ;;; Copyright © 2015, 2016 Mark H Weaver ;;; Copyright © 2015 Sou Bunnbu -;;; Copyright © 2016 Leo Famulari +;;; Copyright © 2016, 2017 Leo Famulari ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Ricardo Wurmus ;;; @@ -1114,7 +1114,9 @@ failed to register hydra.gnu.org public key: ~a~%" status)))))))) (log-file guix-configuration-log-file ;string (default "/var/log/guix-daemon.log")) (lsof guix-configuration-lsof ; - (default lsof))) + (default lsof)) + (http-proxy guix-http-proxy ;string + (default #f))) (define %default-guix-configuration (guix-configuration)) @@ -1125,7 +1127,7 @@ failed to register hydra.gnu.org public key: ~a~%" status)))))))) (($ guix build-group build-accounts authorize-key? keys use-substitutes? substitute-urls extra-options - log-file lsof) + log-file lsof http-proxy) (list (shepherd-service (documentation "Run the Guix daemon.") (provision '(guix-daemon)) @@ -1142,7 +1144,10 @@ failed to register hydra.gnu.org public key: ~a~%" status)))))))) ;; Add 'lsof' (for the GC) to the daemon's $PATH. #:environment-variables - (list (string-append "PATH=" #$lsof "/bin")) + (list (string-append "PATH=" #$lsof "/bin") + #$@(if http-proxy + #~((string-append"http_proxy=" #$http-proxy)) + #~())) #:log-file #$log-file)) (stop #~(make-kill-destructor))))))) -- 2.11.1 --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="os-config-bare-bones.scm" ;; This is an operating system configuration template ;; for a "bare bones" setup, with no X11 display server. (use-modules (gnu)) (use-service-modules networking ssh) (use-package-modules admin) (operating-system (host-name "komputilo") (timezone "Europe/Berlin") (locale "en_US.utf8") ;; Assuming /dev/sdX is the target hard disk, and "my-root" is ;; the label of the target root file system. (bootloader (grub-configuration (device "/dev/sdX"))) (file-systems (cons (file-system (device "my-root") (title 'label) (mount-point "/") (type "ext4")) %base-file-systems)) ;; This is where user accounts are specified. The "root" ;; account is implicit, and is initially created with the ;; empty password. (users (cons (user-account (name "alice") (comment "Bob's sister") (group "users") ;; Adding the account to the "wheel" group ;; makes it a sudoer. Adding it to "audio" ;; and "video" allows the user to play sound ;; and access the webcam. (supplementary-groups '("wheel" "audio" "video")) (home-directory "/home/alice")) %base-user-accounts)) ;; Globally-installed packages. (packages (cons* tcpdump htop %base-packages)) ;; Add services to the baseline: a DHCP client and ;; an SSH server. (services (cons* (dhcp-client-service) (modify-services %base-services (guix-service-type config => (guix-configuration (inherit config) (http-proxy "http://example.com"))))))) --DocE+STaALJfprDB-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 22 04:52:02 2017 Received: (at 25831) by debbugs.gnu.org; 22 Feb 2017 09:52:02 +0000 Received: from localhost ([127.0.0.1]:49631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgTaY-0008Qz-LO for submit@debbugs.gnu.org; Wed, 22 Feb 2017 04:52:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgTaX-0008Qm-1Y for 25831@debbugs.gnu.org; Wed, 22 Feb 2017 04:51:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgTaQ-0004Z7-6t for 25831@debbugs.gnu.org; Wed, 22 Feb 2017 04:51:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgTaQ-0004Yx-4F; Wed, 22 Feb 2017 04:51:50 -0500 Received: from [2a01:e35:2ec2:e580:4a5d:60ff:fe57:52cd] (port=47684 helo=godel) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cgTaP-0003zL-J8; Wed, 22 Feb 2017 04:51:49 -0500 From: Mathieu Lirzin To: Leo Famulari Subject: Re: bug#25831: Expose http_proxy setting on GuixSD References: <20170221171912.GB1656@jasmine> <87efyrwgrk.fsf@gnu.org> <20170221202654.GA16281@jasmine> Date: Wed, 22 Feb 2017 10:51:47 +0100 In-Reply-To: <20170221202654.GA16281@jasmine> (Leo Famulari's message of "Tue, 21 Feb 2017 15:26:54 -0500") Message-ID: <87r32qv9ho.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25831 Cc: 25831@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -5.0 (-----) Hi, Leo Famulari writes: > On Tue, Feb 21, 2017 at 07:17:03PM +0100, Mathieu Lirzin wrote: >> Not sure if this is an appropriate answer, but to customize the guix dae= mon >> service field like described in the example here: >>=20 >> https://www.gnu.org/software/guix/manual/html_node/Using-the-Configura= tion-System.html#System-Services >>=20 >> you would have to patch "gnu/services/base.scm" by adding a field to the >> 'guix-configuration' that would be then be passed to the >> '#:environment-variables' option of 'make-forkexec-constructor' in >> 'guix-shepherd-service'. > > Thank you, that helped a lot! > > What do the two of you think of the attached patch? > > Using the attached OS declaration, I verified that the http_proxy > environment variable is set in the guix-daemon's environment, but I > don't have a proxy to test with. > > From 1e6e95ea5b43231d09279b9e54f5c581462486f6 Mon Sep 17 00:00:00 2001 > From: Leo Famulari > Date: Tue, 21 Feb 2017 14:57:02 -0500 > Subject: [PATCH] services: guix: Support using an HTTP proxy. > > * gnu/services/base.scm ()[http-proxy]: New field. > (guix-shepherd-service): Use 'http-proxy' in #:environment-variables. > * doc/guix.texi ... > --- > doc/guix.texi | 4 ++++ > gnu/services/base.scm | 13 +++++++++---- > 2 files changed, 13 insertions(+), 4 deletions(-) > > diff --git a/doc/guix.texi b/doc/guix.texi > index 6cdb5e592..19a31c659 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -8611,6 +8611,10 @@ are written. > @item @code{lsof} (default: @var{lsof}) > The lsof package to use. >=20=20 > +@item @code{http-proxy} (default: @code{#f}) > +The HTTP proxy used for downloading fixed-output derivations and > +substitutes. > + I don't know much about HTTP proxying but when reading 'in-band-download' in "guix/download.scm" I see a line like this: #:leaked-env-vars '("http_proxy" "https_proxy") which makes me think that maybe we should add an https_proxy toggle in 'guix-configuration' too? However I see that 'open-connection-for-uri' in "guix/download.scm" ignores "https_proxy" with a comment from 2015: ;; For HTTPS URIs, honor 'https_proxy', not 'http_proxy'. ;; FIXME: Proxying is not supported for https. Do you have any idea if this could be easily fixed? > @end table > @end deftp >=20=20 > diff --git a/gnu/services/base.scm b/gnu/services/base.scm > index 57601eab8..352a90be7 100644 > --- a/gnu/services/base.scm > +++ b/gnu/services/base.scm > @@ -3,7 +3,7 @@ > ;;; Copyright =C2=A9 2015, 2016 Alex Kost > ;;; Copyright =C2=A9 2015, 2016 Mark H Weaver > ;;; Copyright =C2=A9 2015 Sou Bunnbu > -;;; Copyright =C2=A9 2016 Leo Famulari > +;;; Copyright =C2=A9 2016, 2017 Leo Famulari > ;;; Copyright =C2=A9 2016 David Craven > ;;; Copyright =C2=A9 2016 Ricardo Wurmus > ;;; > @@ -1114,7 +1114,9 @@ failed to register hydra.gnu.org public key: ~a~%" = status)))))))) > (log-file guix-configuration-log-file ;string > (default "/var/log/guix-daemon.log")) > (lsof guix-configuration-lsof ; > - (default lsof))) > + (default lsof)) > + (http-proxy guix-http-proxy ;string > + (default #f))) '#f' is not a string. So either specify ';string | #f' or make the default value '""'. >=20=20 > (define %default-guix-configuration > (guix-configuration)) > @@ -1125,7 +1127,7 @@ failed to register hydra.gnu.org public key: ~a~%" = status)))))))) > (($ guix build-group build-accounts > authorize-key? keys > use-substitutes? substitute-urls extra-opti= ons > - log-file lsof) > + log-file lsof http-proxy) > (list (shepherd-service > (documentation "Run the Guix daemon.") > (provision '(guix-daemon)) > @@ -1142,7 +1144,10 @@ failed to register hydra.gnu.org public key: ~a~%"= status)))))))) >=20=20 > ;; Add 'lsof' (for the GC) to the daemon's $PATH. > #:environment-variables > - (list (string-append "PATH=3D" #$lsof "/bin")) > + (list (string-append "PATH=3D" #$lsof "/bin") > + #$@(if http-proxy > + #~((string-append"http_proxy=3D" #$http-proxy= )) > + #~())) I think it would be more readable like this: #$@(if http-proxy (list (string-append "http_proxy=3D" http-proxy)) '()) or if '""' is the default value: #$@(if (string-null? http-proxy) '() (list (string-append "http_proxy=3D" http-proxy))) Thanks. --=20 Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 22 14:22:32 2017 Received: (at 25831) by debbugs.gnu.org; 22 Feb 2017 19:22:32 +0000 Received: from localhost ([127.0.0.1]:51544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgcUe-0000ob-O8 for submit@debbugs.gnu.org; Wed, 22 Feb 2017 14:22:32 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgcUc-0000oT-QA for 25831@debbugs.gnu.org; Wed, 22 Feb 2017 14:22:28 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5EF7B225A4; Wed, 22 Feb 2017 14:22:26 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Wed, 22 Feb 2017 14:22:26 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=OG/mZpy8nFK8D/j kxGnAwj+GFbo=; b=W2b6HBzGmdUpsq9ela0bzMU0sOpj/oJjFBqJI3HgJfLUXly Lnx8OyEIba4OL8VHWKAj/7QcI1HG8JiKqCfiI5S94GVFr+RHpQ3LUC+cX6LcVHGq sIhON/0uQC88fbedvjuW8dwDwndDYfYwIhL6dUuLvg2ORxd4WHJxjSLkETY4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=OG/mZpy8nFK8D/jkxGnAwj+GFbo=; b=C3f/KxgwJOFhd+Kl9/zl iPblewmiE/yZNcYefwJVslDJR8uXhl3sjYQxumSPh/JlpIM+xBoIyE+ENOQg7sdE ZZ9LVVCB7D5tyKCJXSbt//T8AKGMnhV//hMxNXsrQzJx3xt4MuBGoE0ZKKudylIC ExsX21QIK4s24Qu6XMebdfU= X-ME-Sender: X-Sasl-enc: WB0/iaNQzjV2oJ9Jgaw0roGK5uBB5zHn7wKGFhh/Z5PL 1487791346 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 1E8157E2B2; Wed, 22 Feb 2017 14:22:26 -0500 (EST) Date: Wed, 22 Feb 2017 14:22:23 -0500 From: Leo Famulari To: Mathieu Lirzin Subject: Re: bug#25831: Expose http_proxy setting on GuixSD Message-ID: <20170222192223.GA26356@jasmine> References: <20170221171912.GB1656@jasmine> <87efyrwgrk.fsf@gnu.org> <20170221202654.GA16281@jasmine> <87r32qv9ho.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87r32qv9ho.fsf@gnu.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25831 Cc: 25831@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 22, 2017 at 10:51:47AM +0100, Mathieu Lirzin wrote: > I don't know much about HTTP proxying but when reading > 'in-band-download' in "guix/download.scm" I see a line like this: > > #:leaked-env-vars '("http_proxy" "https_proxy") > > which makes me think that maybe we should add an https_proxy toggle in > 'guix-configuration' too? > > However I see that 'open-connection-for-uri' in "guix/download.scm" > ignores "https_proxy" with a comment from 2015: > > ;; For HTTPS URIs, honor 'https_proxy', not 'http_proxy'. > ;; FIXME: Proxying is not supported for https. That's from 'guix/build/download.scm'. > Do you have any idea if this could be easily fixed? I don't know. I guess that it would be required to have a TLS client (gnutls-guile) and a certificate store available, but I'm not sure how to implement it, or what exactly is missing. > I think it would be more readable like this: > > #$@(if http-proxy > (list (string-append "http_proxy=" http-proxy)) > '()) I think this form of the conditional is a little easier to read than the other one, so I've used it in my updated patch, which is attached. --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="0001-services-guix-Support-using-an-HTTP-proxy.patch" Content-Transfer-Encoding: 8bit >From ae8fd98c4a8f985ba835bfeab7f008c594508b2d Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 21 Feb 2017 14:57:02 -0500 Subject: [PATCH] services: guix: Support using an HTTP proxy. * gnu/services/base.scm ()[http-proxy]: New field. (guix-shepherd-service): Use 'http-proxy' in #:environment-variables. * doc/guix.texi (Base Services)[guix-configuration]: Document it. --- doc/guix.texi | 4 ++++ gnu/services/base.scm | 13 +++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 6cdb5e592..19a31c659 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -8611,6 +8611,10 @@ are written. @item @code{lsof} (default: @var{lsof}) The lsof package to use. +@item @code{http-proxy} (default: @code{#f}) +The HTTP proxy used for downloading fixed-output derivations and +substitutes. + @end table @end deftp diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 57601eab8..20eb19930 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2015, 2016 Alex Kost ;;; Copyright © 2015, 2016 Mark H Weaver ;;; Copyright © 2015 Sou Bunnbu -;;; Copyright © 2016 Leo Famulari +;;; Copyright © 2016, 2017 Leo Famulari ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Ricardo Wurmus ;;; @@ -1114,7 +1114,9 @@ failed to register hydra.gnu.org public key: ~a~%" status)))))))) (log-file guix-configuration-log-file ;string (default "/var/log/guix-daemon.log")) (lsof guix-configuration-lsof ; - (default lsof))) + (default lsof)) + (http-proxy guix-http-proxy ;string | #f + (default #f))) (define %default-guix-configuration (guix-configuration)) @@ -1125,7 +1127,7 @@ failed to register hydra.gnu.org public key: ~a~%" status)))))))) (($ guix build-group build-accounts authorize-key? keys use-substitutes? substitute-urls extra-options - log-file lsof) + log-file lsof http-proxy) (list (shepherd-service (documentation "Run the Guix daemon.") (provision '(guix-daemon)) @@ -1142,7 +1144,10 @@ failed to register hydra.gnu.org public key: ~a~%" status)))))))) ;; Add 'lsof' (for the GC) to the daemon's $PATH. #:environment-variables - (list (string-append "PATH=" #$lsof "/bin")) + (list (string-append "PATH=" #$lsof "/bin") + #$@(if http-proxy + (list (string-append "http_proxy=" http-proxy)) + '())) #:log-file #$log-file)) (stop #~(make-kill-destructor))))))) -- 2.11.1 --cNdxnHkX5QqsyA0e-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 22 15:15:29 2017 Received: (at 25831) by debbugs.gnu.org; 22 Feb 2017 20:15:29 +0000 Received: from localhost ([127.0.0.1]:51608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgdJt-00023a-59 for submit@debbugs.gnu.org; Wed, 22 Feb 2017 15:15:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgdJq-00023K-KX for 25831@debbugs.gnu.org; Wed, 22 Feb 2017 15:15:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgdJj-0007yW-Pz for 25831@debbugs.gnu.org; Wed, 22 Feb 2017 15:15:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgdJj-0007yS-MM; Wed, 22 Feb 2017 15:15:15 -0500 Received: from [2a01:e35:2ec2:e580:4a5d:60ff:fe57:52cd] (port=60514 helo=godel) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cgdJi-0002Ma-VE; Wed, 22 Feb 2017 15:15:15 -0500 From: Mathieu Lirzin To: Leo Famulari Subject: Re: bug#25831: Expose http_proxy setting on GuixSD References: <20170221171912.GB1656@jasmine> <87efyrwgrk.fsf@gnu.org> <20170221202654.GA16281@jasmine> <87r32qv9ho.fsf@gnu.org> <20170222192223.GA26356@jasmine> Date: Wed, 22 Feb 2017 21:15:12 +0100 In-Reply-To: <20170222192223.GA26356@jasmine> (Leo Famulari's message of "Wed, 22 Feb 2017 14:22:23 -0500") Message-ID: <8737f60ypb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25831 Cc: 25831@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -5.0 (-----) Leo Famulari writes: > On Wed, Feb 22, 2017 at 10:51:47AM +0100, Mathieu Lirzin wrote: >> I don't know much about HTTP proxying but when reading >> 'in-band-download' in "guix/download.scm" I see a line like this: >>=20 >> #:leaked-env-vars '("http_proxy" "https_proxy") >>=20 >> which makes me think that maybe we should add an https_proxy toggle in >> 'guix-configuration' too? >>=20 >> However I see that 'open-connection-for-uri' in "guix/download.scm" >> ignores "https_proxy" with a comment from 2015: >>=20 >> ;; For HTTPS URIs, honor 'https_proxy', not 'http_proxy'. >> ;; FIXME: Proxying is not supported for https. > > That's from 'guix/build/download.scm'. Oops sorry about that. >> Do you have any idea if this could be easily fixed? > > I don't know. I guess that it would be required to have a TLS client > (gnutls-guile) and a certificate store available, but I'm not sure how > to implement it, or what exactly is missing. OK, hopefully Ludo will be able to bring more context about the code he wrote. >> I think it would be more readable like this: >>=20 >> #$@(if http-proxy >> (list (string-append "http_proxy=3D" http-proxy)) >> '()) > > I think this form of the conditional is a little easier to read than the > other one, so I've used it in my updated patch, which is attached. > > From ae8fd98c4a8f985ba835bfeab7f008c594508b2d Mon Sep 17 00:00:00 2001 > From: Leo Famulari > Date: Tue, 21 Feb 2017 14:57:02 -0500 > Subject: [PATCH] services: guix: Support using an HTTP proxy. > > * gnu/services/base.scm ()[http-proxy]: New field. > (guix-shepherd-service): Use 'http-proxy' in #:environment-variables. > * doc/guix.texi (Base Services)[guix-configuration]: Document it. > --- > doc/guix.texi | 4 ++++ > gnu/services/base.scm | 13 +++++++++---- > 2 files changed, 13 insertions(+), 4 deletions(-) > > diff --git a/doc/guix.texi b/doc/guix.texi > index 6cdb5e592..19a31c659 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -8611,6 +8611,10 @@ are written. > @item @code{lsof} (default: @var{lsof}) > The lsof package to use. >=20=20 > +@item @code{http-proxy} (default: @code{#f}) > +The HTTP proxy used for downloading fixed-output derivations and > +substitutes. > + > @end table > @end deftp >=20=20 > diff --git a/gnu/services/base.scm b/gnu/services/base.scm > index 57601eab8..20eb19930 100644 > --- a/gnu/services/base.scm > +++ b/gnu/services/base.scm > @@ -3,7 +3,7 @@ > ;;; Copyright =C2=A9 2015, 2016 Alex Kost > ;;; Copyright =C2=A9 2015, 2016 Mark H Weaver > ;;; Copyright =C2=A9 2015 Sou Bunnbu > -;;; Copyright =C2=A9 2016 Leo Famulari > +;;; Copyright =C2=A9 2016, 2017 Leo Famulari > ;;; Copyright =C2=A9 2016 David Craven > ;;; Copyright =C2=A9 2016 Ricardo Wurmus > ;;; > @@ -1114,7 +1114,9 @@ failed to register hydra.gnu.org public key: ~a~%" = status)))))))) > (log-file guix-configuration-log-file ;string > (default "/var/log/guix-daemon.log")) > (lsof guix-configuration-lsof ; > - (default lsof))) > + (default lsof)) > + (http-proxy guix-http-proxy ;string | #f > + (default #f))) >=20=20 > (define %default-guix-configuration > (guix-configuration)) > @@ -1125,7 +1127,7 @@ failed to register hydra.gnu.org public key: ~a~%" = status)))))))) > (($ guix build-group build-accounts > authorize-key? keys > use-substitutes? substitute-urls extra-opti= ons > - log-file lsof) > + log-file lsof http-proxy) > (list (shepherd-service > (documentation "Run the Guix daemon.") > (provision '(guix-daemon)) > @@ -1142,7 +1144,10 @@ failed to register hydra.gnu.org public key: ~a~%"= status)))))))) >=20=20 > ;; Add 'lsof' (for the GC) to the daemon's $PATH. > #:environment-variables > - (list (string-append "PATH=3D" #$lsof "/bin")) > + (list (string-append "PATH=3D" #$lsof "/bin") > + #$@(if http-proxy > + (list (string-append "http_proxy=3D" http-pro= xy)) > + '())) ^^ missin two spaces in THEN and ELSE part ;) > #:log-file #$log-file)) > (stop #~(make-kill-destructor))))))) Otherwise, LGTM. Thanks. --=20 Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 22 15:26:34 2017 Received: (at 25831-done) by debbugs.gnu.org; 22 Feb 2017 20:26:34 +0000 Received: from localhost ([127.0.0.1]:51613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgdUg-0002KA-99 for submit@debbugs.gnu.org; Wed, 22 Feb 2017 15:26:34 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:42453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgdUf-0002K3-DQ for 25831-done@debbugs.gnu.org; Wed, 22 Feb 2017 15:26:33 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D47C520AD5; Wed, 22 Feb 2017 15:26:32 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Wed, 22 Feb 2017 15:26:32 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=Sl82PSsn0zEC0UekZwnPQsRWIkg=; b=U97bVr LwoJrka2FrZ0QtO4boLKJ9q8urt8DOFxLWb3h6qKwUdW4XhgoANw6LoYzHDnurlM 0VbxhZ+BZqeU8Q0jWqAuXcUpjQ7ydF3tHIULVIRXjJQAJvcRKLYKf7e8oarfB0fa m36ZJ1RIB+Hlf1qSrywzftwHr6VZ1Niac+gbk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Sl82PSsn0zEC0U ekZwnPQsRWIkg=; b=eMldZPsQZMMRmbvNeG+6hsoDg3WFvUa1pw+LCJpBfQ7oXb bDXPh1jQ+oJ1VrnrEVi2KhvPDazBnf5sR0voobxxD8H+q12heVDylbTUbyg/B9t8 NgeYlSAHtyvaGCVJDIGpwqA8Azve80f4lFcwUv7cuj+bzFilrqwa5QCribNmY= X-ME-Sender: X-Sasl-enc: 9OrxclUou25Vz8z12py08c66M5v7kFdigxRlinllgNqF 1487795192 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 95E837E4F0; Wed, 22 Feb 2017 15:26:32 -0500 (EST) Date: Wed, 22 Feb 2017 15:26:31 -0500 From: Leo Famulari To: Mathieu Lirzin Subject: Re: bug#25831: Expose http_proxy setting on GuixSD Message-ID: <20170222202631.GB28813@jasmine> References: <20170221171912.GB1656@jasmine> <87efyrwgrk.fsf@gnu.org> <20170221202654.GA16281@jasmine> <87r32qv9ho.fsf@gnu.org> <20170222192223.GA26356@jasmine> <8737f60ypb.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8737f60ypb.fsf@gnu.org> User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25831-done Cc: ng0 , 25831-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) On Wed, Feb 22, 2017 at 09:15:12PM +0100, Mathieu Lirzin wrote: > Leo Famulari writes: > > + (list (string-append "PATH=" #$lsof "/bin") > > + #$@(if http-proxy > > + (list (string-append "http_proxy=" http-proxy)) > > + '())) > ^^ > missin two spaces in THEN and ELSE part ;) I'm still learning what looks right :) > Otherwise, LGTM. Thanks for your advice and review! I pushed the change as 93d32da9f8bba815b1effe6358904b5e1f9c73ff. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 23 11:18:35 2017 Received: (at 25831-done) by debbugs.gnu.org; 23 Feb 2017 16:18:35 +0000 Received: from localhost ([127.0.0.1]:53183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgw6F-0003T4-8J for submit@debbugs.gnu.org; Thu, 23 Feb 2017 11:18:35 -0500 Received: from perdizione.investici.org ([94.23.50.208]:57507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgw6D-0003Sv-0z for 25831-done@debbugs.gnu.org; Thu, 23 Feb 2017 11:18:34 -0500 Received: from [94.23.50.208] (perdizione [94.23.50.208]) (Authenticated sender: niasterisk@grrlz.net) by localhost (Postfix) with ESMTPSA id 46002120AA7; Thu, 23 Feb 2017 16:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cryptolab.net; s=stigmate; t=1487866711; bh=LSIp+XyDYGVOCeebwDSXNkbxMhvP2yX+FPSaILW8OCA=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=px/JPNK2CojESa0Ms8vB2HGLZkFo72OBysnfpz8bMq20J0sxKgGk2bT7z3sgHknSx WFfEu0n5ptPhcqA5+unGxU4K+8JVABzCxzfkU04aYxl4a+8AhI52RtnplKfh0NBm7s /0A+93bK3Okjnm3g47BoFIp5alWvO+jCoUWCSdhM= Date: Thu, 23 Feb 2017 16:20:38 +0000 From: ng0 To: Leo Famulari Subject: Re: bug#25831: Expose http_proxy setting on GuixSD Message-ID: <20170223162038.lkwbyp2f3l7g7q4k@wasp> Mail-Followup-To: Leo Famulari , Mathieu Lirzin , 25831-done@debbugs.gnu.org References: <20170221171912.GB1656@jasmine> <87efyrwgrk.fsf@gnu.org> <20170221202654.GA16281@jasmine> <87r32qv9ho.fsf@gnu.org> <20170222192223.GA26356@jasmine> <8737f60ypb.fsf@gnu.org> <20170222202631.GB28813@jasmine> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170222202631.GB28813@jasmine> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25831-done Cc: Mathieu Lirzin , 25831-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 0.0 (/) On 17-02-22 15:26:31, Leo Famulari wrote: > On Wed, Feb 22, 2017 at 09:15:12PM +0100, Mathieu Lirzin wrote: > > Leo Famulari writes: > > > + (list (string-append "PATH=" #$lsof "/bin") > > > + #$@(if http-proxy > > > + (list (string-append "http_proxy=" http-proxy)) > > > + '())) > > ^^ > > missin two spaces in THEN and ELSE part ;) > > I'm still learning what looks right :) > > > Otherwise, LGTM. > > Thanks for your advice and review! > > I pushed the change as 93d32da9f8bba815b1effe6358904b5e1f9c73ff. Thanks! I was hoping this change (added 127.0.0.1:9050) in a test config would pick up the .onion of bayfront I have in there, but it didn't happen. In the comments you mentioned https_proxy is at some point favored over http_proxy, so currently my only option is firewall rules then (which I will need anyway). From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 23 12:05:48 2017 Received: (at 25831-done) by debbugs.gnu.org; 23 Feb 2017 17:05:48 +0000 Received: from localhost ([127.0.0.1]:53223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgwpw-0004Yr-ME for submit@debbugs.gnu.org; Thu, 23 Feb 2017 12:05:48 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgwpu-0004Yj-NA for 25831-done@debbugs.gnu.org; Thu, 23 Feb 2017 12:05:47 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3EE8020AF4; Thu, 23 Feb 2017 12:05:46 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Thu, 23 Feb 2017 12:05:46 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=p5RiHi+0yt9BuCvpyej7dokHDAs=; b=iEtajR WR9/hSu4vh+m2rk+1LyrYYYrvQ+hExFCeJn1/9rSOnDhxeQx093qBsZq3i/GV5Zi 86o3gGNgmQPIJd9cW4GckLEYNerdGzhMdSUPtYS/FBvvo1MuWFcmnXzY/Sk/7ZMY Mtsnynmhhae7nsoXgONT4qEjwVRVLPraBTf1g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=p5RiHi+0yt9BuC vpyej7dokHDAs=; b=cvJPwFSom/uzl81mFrq1Toh5RwNko15EQE1vJhdD5oEMBJ R4Ih1SV55J+rGBPqq80sLRBGRi6rQbbRC0ofmKb6lH4/f+mU74La/ZPIi1UwaWdf EoQjP8fwC3XzOgFojVrBhG4eghzgR48Or5qkAzP2DgoBQXdagGivy9aAqfgtU= X-ME-Sender: X-Sasl-enc: FCoJRBn23V7JqwhL36cv0Z/sx6IhQ5/NvPh2RHvSQ4lm 1487869545 Received: from localhost (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id E727E24573; Thu, 23 Feb 2017 12:05:45 -0500 (EST) Date: Thu, 23 Feb 2017 12:05:45 -0500 From: Leo Famulari To: Mathieu Lirzin , 25831-done@debbugs.gnu.org Subject: Re: bug#25831: Expose http_proxy setting on GuixSD Message-ID: <20170223170545.GA12804@jasmine> References: <20170221171912.GB1656@jasmine> <87efyrwgrk.fsf@gnu.org> <20170221202654.GA16281@jasmine> <87r32qv9ho.fsf@gnu.org> <20170222192223.GA26356@jasmine> <8737f60ypb.fsf@gnu.org> <20170222202631.GB28813@jasmine> <20170223162038.lkwbyp2f3l7g7q4k@wasp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170223162038.lkwbyp2f3l7g7q4k@wasp> User-Agent: Mutt/1.7.2 (2016-11-26) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25831-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -0.7 (/) On Thu, Feb 23, 2017 at 04:20:38PM +0000, ng0 wrote: > Thanks! > I was hoping this change (added 127.0.0.1:9050) in a test config would > pick up the .onion of bayfront I have in there, but it didn't happen. Does it work on a system besides GuixSD? > In the comments you mentioned https_proxy is at some point favored > over http_proxy, so currently my only option is firewall rules then > (which I will need anyway). I'm not sure which comment you are referring to. For now, https_proxy is not supported, but I would like it to be implemented as soon as possible. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 23 12:48:20 2017 Received: (at 25831-done) by debbugs.gnu.org; 23 Feb 2017 17:48:20 +0000 Received: from localhost ([127.0.0.1]:53244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgxV5-0007Ex-QV for submit@debbugs.gnu.org; Thu, 23 Feb 2017 12:48:19 -0500 Received: from fragranza.investici.org ([178.175.144.26]:59732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgxV3-0007Eo-CT for 25831-done@debbugs.gnu.org; Thu, 23 Feb 2017 12:48:18 -0500 Received: from [178.175.144.26] (fragranza [178.175.144.26]) (Authenticated sender: niasterisk@grrlz.net) by localhost (Postfix) with ESMTPSA id 5B9312C01DE; Thu, 23 Feb 2017 17:48:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cryptolab.net; s=stigmate; t=1487872095; bh=TiZ+cYiaeJvxZB8pDweRVwl7ZLrwoSgzuhjHMIYRgrQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=S477WVF9bi3Te1zF0qEAKIpntAHOdvEya39J/Cm0/y06HngJ8PrsRf6kxkBR5Xaw5 kRvZSUpWETeKe09vmBBfsbDltZNW21ugTyZJKjVqR1sWWJe+u60XZAPwkVRLBRbJCE Qvx19eAh683sNQuqMxC0vIVzwYzqd2ygAX33X5cQ= Date: Thu, 23 Feb 2017 17:50:21 +0000 From: ng0 To: Leo Famulari Subject: Re: bug#25831: Expose http_proxy setting on GuixSD Message-ID: <20170223175021.lj4molz5gyfyw264@wasp> Mail-Followup-To: Leo Famulari , Mathieu Lirzin , 25831-done@debbugs.gnu.org References: <20170221171912.GB1656@jasmine> <87efyrwgrk.fsf@gnu.org> <20170221202654.GA16281@jasmine> <87r32qv9ho.fsf@gnu.org> <20170222192223.GA26356@jasmine> <8737f60ypb.fsf@gnu.org> <20170222202631.GB28813@jasmine> <20170223162038.lkwbyp2f3l7g7q4k@wasp> <20170223170545.GA12804@jasmine> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170223170545.GA12804@jasmine> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25831-done Cc: Mathieu Lirzin , 25831-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 0.0 (/) On 17-02-23 12:05:45, Leo Famulari wrote: > On Thu, Feb 23, 2017 at 04:20:38PM +0000, ng0 wrote: > > Thanks! > > I was hoping this change (added 127.0.0.1:9050) in a test config would > > pick up the .onion of bayfront I have in there, but it didn't happen. > > Does it work on a system besides GuixSD? I will report once I have the option to test it. This can take some time. > > In the comments you mentioned https_proxy is at some point favored > > over http_proxy, so currently my only option is firewall rules then > > (which I will need anyway). > > I'm not sure which comment you are referring to. For now, https_proxy is > not supported, but I would like it to be implemented as soon as > possible. > > Sorry, not you but the COMMENT / FIXME / XXX in guix-download. From unknown Thu Jun 19 14:04:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Mar 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator