From: Mathieu Othacehe <m.othacehe@gmail.com>
To: Vincent Legoll <vincent.legoll@gmail.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Proxy settings wrt guix daemon
Date: Sat, 04 Apr 2020 17:31:00 +0200 [thread overview]
Message-ID: <87r1x3tgi3.fsf@gmail.com> (raw)
In-Reply-To: <CAEwRq=pNqK+cE+Vq6DxPgT9FCg=4kmsno5D8vSfjM7Fsg5FZLA@mail.gmail.com> (Vincent Legoll's message of "Sat, 4 Apr 2020 00:29:10 +0200")
Hello Vicent,
>
> What is the UI to run that guix-daemon --set-proxy ?
> Use herd set-proxy guix-daemon "https://proxy:3128" ?
> (Like what is done for mcron)
>
> I really need a few "make this thing here do that" hints...
>
> And then also a bit of a hint on how I would test the
> modifications without risking my running system.
From what I understand, the guix-daemon process is able to propagate
some of its environments variable to the builder. It seems that
http_proxy variable (and friends), are set as impureEnvVars by Guix. You
can search for '#:leaked-env-vars' over the Guix sources.
So it seems to indicate that if the guix-daemon process has the
http_proxy environment variable set, it will handle it correctly. So the
question is how to be able to set this variable dynamically?
I don't think there's a way to change the environment variables of a
process from the outside. So unless you come up with a new mechanism
inside guix-daemon, able to read proxy parameters from a file or so (not
desirable), the variable needs to be set before guix-daemon is launched.
Implementing what's proposed by Ludo would then make the following
command: 'herd set-proxy guix-daemon "https://proxy:3128"' do the
following things:
--8<---------------cut here---------------start------------->8---
(setenv "HTTP_PROXY" "https://proxy:3128")
(restart guix-daemon) ; not the appropriated syntax
--8<---------------cut here---------------end--------------->8---
I don't know if that's what Ludo has in mind but I can't see any other
ways to do it.
Now Ludo has also proposed another solution here[1]. This solution
would require that (guix script perform-download) and (guix script
substitute) honor what would look like a 'build-option' (see
set-build-options in (guix store)). But this seems harder to implement.
Mathieu
[1]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25569
next prev parent reply other threads:[~2020-04-04 15:31 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-28 10:04 Proxy settings wrt guix daemon Vincent Legoll
2020-03-29 15:00 ` Ludovic Courtès
2020-03-30 12:07 ` Vincent Legoll
2020-03-31 15:26 ` Ludovic Courtès
2020-04-03 22:29 ` Vincent Legoll
2020-04-04 15:31 ` Mathieu Othacehe [this message]
2020-04-06 8:57 ` Ludovic Courtès
2020-04-06 9:13 ` Vincent Legoll
2020-04-07 9:38 ` Ludovic Courtès
2020-04-07 10:07 ` Vincent Legoll
2020-04-07 10:39 ` Ludovic Courtès
2020-04-07 16:47 ` Mathieu Othacehe
2020-04-07 16:54 ` Mathieu Othacehe
2020-04-07 20:12 ` Ludovic Courtès
2020-04-07 20:10 ` Ludovic Courtès
2020-04-07 20:14 ` Ludovic Courtès
2020-04-08 8:27 ` Mathieu Othacehe
2020-04-08 10:44 ` Ludovic Courtès
2020-04-10 13:26 ` Danny Milosavljevic
2020-04-10 14:40 ` Ludovic Courtès
2020-04-10 14:42 ` Vincent Legoll
2020-04-10 18:47 ` Danny Milosavljevic
2020-04-10 22:44 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r1x3tgi3.fsf@gmail.com \
--to=m.othacehe@gmail.com \
--cc=guix-devel@gnu.org \
--cc=vincent.legoll@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).