From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Using the =?utf-8?Q?daemon=E2=80=99s?= default settings Date: Mon, 23 Mar 2015 22:11:17 +0100 Message-ID: <87pp7zv2q2.fsf_-_@gnu.org> References: <20150322224357.10349.62362@vcs.savannah.gnu.org> <87egofr30v.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya9d5-0003qF-07 for guix-devel@gnu.org; Mon, 23 Mar 2015 17:11:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya9d2-0007Fe-9c for guix-devel@gnu.org; Mon, 23 Mar 2015 17:11:22 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya9d2-0007Fa-67 for guix-devel@gnu.org; Mon, 23 Mar 2015 17:11:20 -0400 In-Reply-To: <87egofr30v.fsf@netris.org> (Mark H. Weaver's message of "Mon, 23 Mar 2015 14:18:24 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > Ludovic Court=C3=A8s writes: > >> commit 4d58122071bbd7bb56c9658a9bbe7621bf3e423d >> Author: Ludovic Court=C3=A8s >> Date: Sun Mar 22 23:43:25 2015 +0100 >> >> store: Default to a non-empty list of substituters. >>=20=20=20=20=20 >> Fixes . >> Reported by Mark H Weaver . >>=20=20=20=20=20 >> * guix/store.scm (%default-substitute-urls): New variable. >> (set-build-options): Change default value of #:substitute-urls to >> %DEFAULT-SUBSTITUTE-URLS. [...] > Does this mean that even if I've configured my daemon to use a different > set of substitute-urls, when I run 'guix' as root those settings will be > overridden? Yes. > That seems suboptimal. Right. > We have a similar problem with the values of --cores and --max-jobs > passed to guix-daemon being ignored because they are always overridden > by our client. Indeed. > How can we fix these so that the daemon's settings are used unless the > user specifically asks to override them in the client? If you look at nix-daemon.cc:543, there=E2=80=99s currently no way for a cl= ient to say =E2=80=9Cdefault value.=E2=80=9D The only way for a client to get t= he daemon=E2=80=99s default values is to not call the =E2=80=98set-build-options=E2=80=99 RPC a= t all; it=E2=80=99s all or nothing. I think the way forward would be to add a new RPC, say =E2=80=98set-build-options2=E2=80=99, that would take a list of key/value p= airs, where keys are option names. Options not mentioned in a =E2=80=98set-build-optio= ns2=E2=80=99 call would keep their default value. How does that sound? Thanks, Ludo=E2=80=99.