From unknown Fri Aug 15 18:49:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20217: Allow users to use the daemon's default settings Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 28 Mar 2015 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20217 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 20217@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14275533986963 (code B ref -1); Sat, 28 Mar 2015 14:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Mar 2015 14:36:38 +0000 Received: from localhost ([127.0.0.1]:38981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ybrqn-0001oF-O6 for submit@debbugs.gnu.org; Sat, 28 Mar 2015 10:36:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51903) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ybrqk-0001o0-Sp for submit@debbugs.gnu.org; Sat, 28 Mar 2015 10:36:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ybrqe-0006rr-Kb for submit@debbugs.gnu.org; Sat, 28 Mar 2015 10:36:29 -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]:41447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybrqe-0006rn-Hb for submit@debbugs.gnu.org; Sat, 28 Mar 2015 10:36:28 -0400 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 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Germinal an 223 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Sat, 28 Mar 2015 15:36:19 +0100 Message-ID: <87619l6vfg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) --=-=-= 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. --=-=-=-- From unknown Fri Aug 15 18:49:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#20217: Allow users to use the daemon's default settings Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Oct 2015 14:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20217 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 20217@debbugs.gnu.org Received: via spool by 20217-submit@debbugs.gnu.org id=B20217.144604300413403 (code B ref 20217); Wed, 28 Oct 2015 14:37:01 +0000 Received: (at 20217) by debbugs.gnu.org; 28 Oct 2015 14:36:44 +0000 Received: from localhost ([127.0.0.1]:42615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrRqF-0003U6-E8 for submit@debbugs.gnu.org; Wed, 28 Oct 2015 10:36:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46001) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrRqE-0003Tw-1r for 20217@debbugs.gnu.org; Wed, 28 Oct 2015 10:36:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrRqA-0003mG-BB for 20217@debbugs.gnu.org; Wed, 28 Oct 2015 10:36:41 -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,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRqA-0003mC-8k for 20217@debbugs.gnu.org; Wed, 28 Oct 2015 10:36:38 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:59806 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZrRq9-0001Yd-Mm for 20217@debbugs.gnu.org; Wed, 28 Oct 2015 10:36:38 -0400 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87619l6vfg.fsf@gnu.org> Date: Wed, 28 Oct 2015 15:36:35 +0100 In-Reply-To: <87619l6vfg.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 28 Mar 2015 15:36:19 +0100") Message-ID: <874mhb9i18.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (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: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > 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. This particular issue of substitute URLs is fixed in fb4bf72. The more general problem remains though: for all the other options, like max-build-jobs, timeout, etc., the client settings take precedence over the daemon settings because the =E2=80=98set-build-options=E2=80=99 RPC doe= sn=E2=80=99t provide a way to say =E2=80=9Cuse default value.=E2=80=9D The fix for that will be either: (1) a =E2=80=98set-build-options2=E2=80=99= RPC that has a way to leave some settings unchanged, or (2) a =E2=80=98get-build-options= =E2=80=99 RPC. Option (1) is simpler and more efficient, but option (2) could be interesting. Ludo=E2=80=99. From unknown Fri Aug 15 18:49:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20217: closed (Re: bug#20217: Allow users to use the daemon's default settings) Message-ID: References: <871sw4jrqu.fsf@gnu.org> <87619l6vfg.fsf@gnu.org> X-Gnu-PR-Message: they-closed 20217 X-Gnu-PR-Package: guix Reply-To: 20217@debbugs.gnu.org Date: Sun, 15 Jan 2017 14:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1484492282-5689-1" This is a multi-part message in MIME format... ------------=_1484492282-5689-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #20217: Allow users to use the daemon's default settings which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 20217@debbugs.gnu.org. --=20 20217: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20217 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1484492282-5689-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 20217-done) by debbugs.gnu.org; 15 Jan 2017 14:57:26 +0000 Received: from localhost ([127.0.0.1]:54961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cSmFK-0001Sw-EH for submit@debbugs.gnu.org; Sun, 15 Jan 2017 09:57:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cSmFI-0001Si-Iy for 20217-done@debbugs.gnu.org; Sun, 15 Jan 2017 09:57:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSmFA-0001cF-6h for 20217-done@debbugs.gnu.org; Sun, 15 Jan 2017 09:57: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=-3.2 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSmFA-0001cB-37 for 20217-done@debbugs.gnu.org; Sun, 15 Jan 2017 09:57:16 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:42404 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cSmF9-0003RA-Fq for 20217-done@debbugs.gnu.org; Sun, 15 Jan 2017 09:57:15 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 20217-done@debbugs.gnu.org Subject: Re: bug#20217: Allow users to use the daemon's default settings References: <87619l6vfg.fsf@gnu.org> <874mhb9i18.fsf@gnu.org> Date: Sun, 15 Jan 2017 15:57:13 +0100 In-Reply-To: <874mhb9i18.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 28 Oct 2015 15:36:35 +0100") Message-ID: <871sw4jrqu.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: -8.2 (--------) X-Debbugs-Envelope-To: 20217-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: -8.2 (--------) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > >> 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. > > This particular issue of substitute URLs is fixed in fb4bf72. > > The more general problem remains though: for all the other options, like > max-build-jobs, timeout, etc., the client settings take precedence over > the daemon settings because the =E2=80=98set-build-options=E2=80=99 RPC d= oesn=E2=80=99t provide > a way to say =E2=80=9Cuse default value.=E2=80=9D Fixed in commit deac976d3d26c7b85b9c90efb424b0aa94f1027c (at last!) by moving max-build-jobs, build-cores, and max-silent-time to the optional key/value option list at the end of =E2=80=98set-build-options=E2=80=99. Ludo=E2=80=99. ------------=_1484492282-5689-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Mar 2015 14:36:38 +0000 Received: from localhost ([127.0.0.1]:38981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ybrqn-0001oF-O6 for submit@debbugs.gnu.org; Sat, 28 Mar 2015 10:36:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51903) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ybrqk-0001o0-Sp for submit@debbugs.gnu.org; Sat, 28 Mar 2015 10:36:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ybrqe-0006rr-Kb for submit@debbugs.gnu.org; Sat, 28 Mar 2015 10:36:29 -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]:41447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybrqe-0006rn-Hb for submit@debbugs.gnu.org; Sat, 28 Mar 2015 10:36:28 -0400 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 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: bug-guix@gnu.org Subject: Allow users to use the daemon's default settings X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Germinal an 223 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Sat, 28 Mar 2015 15:36:19 +0100 Message-ID: <87619l6vfg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -5.0 (-----) --=-=-= 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. --=-=-=-- ------------=_1484492282-5689-1--