From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20217: Allow users to use the daemon's default settings Date: Sat, 28 Mar 2015 15:36:19 +0100 Message-ID: <87619l6vfg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbrrH-0000g6-4G for bug-guix@gnu.org; Sat, 28 Mar 2015 10:37:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbrrC-00074T-Ou for bug-guix@gnu.org; Sat, 28 Mar 2015 10:37:07 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:49205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbrrC-00074N-Li for bug-guix@gnu.org; Sat, 28 Mar 2015 10:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YbrrC-0001ov-AO for bug-guix@gnu.org; Sat, 28 Mar 2015 10:37:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybrqd-0000I8-Af for bug-guix@gnu.org; Sat, 28 Mar 2015 10:36:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbrqZ-0006pQ-92 for bug-guix@gnu.org; Sat, 28 Mar 2015 10:36:27 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41109) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbrqZ-0006pK-4v for bug-guix@gnu.org; Sat, 28 Mar 2015 10:36:23 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:45767 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YbrqY-00063M-Do for bug-guix@gnu.org; Sat, 28 Mar 2015 10:36:22 -0400 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 20217@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The message below from guix-devel says it all. Ludo=E2=80=99. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Return-Path: Received: from solo.fdn.fr ([unix socket]) by solo (Cyrus v2.4.16-Debian-2.4.16-4+deb7u2) with LMTPA; Mon, 23 Mar 2015 22:11:33 +0100 X-Sieve: CMU Sieve 2.4 Received: by solo.fdn.fr (Postfix) id E53D6D079A; Mon, 23 Mar 2015 22:11:32 +0100 (CET) Delivered-To: ludovic.courtes@fdn.fr Received: from fencepost.gnu.org (fencepost.gnu.org [IPv6:2001:4830:134:3::e]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTPS id C1817D077E for ; Mon, 23 Mar 2015 22:11:32 +0100 (CET) Received: from eggs.gnu.org ([2001:4830:134:3::10]:44351) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Ya9dC-0001U4-Ni for ludo@gnu.org; Mon, 23 Mar 2015 17:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya9d8-0007Gc-1I for ludo@gnu.org; Mon, 23 Mar 2015 17:11:30 -0400 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,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya9d7-0007GW-Uc for ludo@gnu.org; Mon, 23 Mar 2015 17:11:25 -0400 Received: from localhost ([::1]:58062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya9d7-0003qL-SQ for ludo@gnu.org; Mon, 23 Mar 2015 17:11:25 -0400 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 Received: from reverse-83.fdn.fr ([80.67.176.83]:44040 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Ya9d1-0001Ra-9I; Mon, 23 Mar 2015 17:11:19 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Using the =?utf-8?Q?daemon=E2=80=99s?= default settings References: <20150322224357.10349.62362@vcs.savannah.gnu.org> <87egofr30v.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 Germinal an 223 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Mon, 23 Mar 2015 22:11:17 +0100 In-Reply-To: <87egofr30v.fsf@netris.org> (Mark H. Weaver's message of "Mon, 23 Mar 2015 14:18:24 -0400") Message-ID: <87pp7zv2q2.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). Cc: guix-devel@gnu.org X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list 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+ludo=gnu.org@gnu.org Sender: guix-devel-bounces+ludo=gnu.org@gnu.org X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. --=-=-=--