From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:54847) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5SQN-0003Na-Jk for guix-patches@gnu.org; Wed, 04 Sep 2019 06:22:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5SQM-00089U-Fe for guix-patches@gnu.org; Wed, 04 Sep 2019 06:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5SQM-00089K-CG for guix-patches@gnu.org; Wed, 04 Sep 2019 06:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i5SQM-0007q4-7o for guix-patches@gnu.org; Wed, 04 Sep 2019 06:22:02 -0400 Subject: [bug#37302] [PATCH 0/7] Remove the daemon's libexec helpers Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:54727) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5SPy-0003NI-Bu for guix-patches@gnu.org; Wed, 04 Sep 2019 06:21:39 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 4 Sep 2019 12:19:35 +0200 Message-Id: <20190904101935.16003-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37302@debbugs.gnu.org Hello Guix! These patches change the daemon so that it invokes ‘guix substitute’, ‘guix authenticate’, etc. directly, instead of invoking the shell trampolines under libexec/. This simplifies things a bit, gets rid of the extra Bash invocation, which in turn makes sure that we don’t get locale warnings from Bash, should that happen. :-) Initially the libexec trampolines were created primarily so that the C++ code would remain as close as possible to upstream Nix. The cost of this strategy have come to outweigh the benefits, so here we go! The next step will be to adjust the ‘guix’ and ‘guix-daemon’ packages accordingly. Feedback welcome! Ludo’. Ludovic Courtès (7): daemon: Invoke 'guix gc --list-busy' instead of 'list-runtime-roots'. daemon: Run 'guix authenticate' directly. daemon: Run 'guix perform-download' directly. daemon: Run 'guix offload' directly. daemon: Run 'guix substitute' directly and assume a single substituter. daemon: Remove 'NIX_LIBEXEC_DIR'. etc: Remove references to libexec/guix* from SELinux policy. build-aux/pre-inst-env.in | 14 +-- config-daemon.ac | 11 --- doc/guix.texi | 4 + etc/guix-daemon.cil.in | 4 - guix/scripts/gc.scm | 15 +++ guix/store/roots.scm | 129 +++++++++++++++++++++++++- nix/libstore/build.cc | 63 +++++-------- nix/libstore/builtins.cc | 4 +- nix/libstore/gc.cc | 11 +-- nix/libstore/globals.cc | 2 +- nix/libstore/globals.hh | 11 +-- nix/libstore/local-store.cc | 102 ++++++++++++--------- nix/libstore/local-store.hh | 12 +-- nix/local.mk | 16 ---- nix/nix-daemon/guix-daemon.cc | 20 +--- nix/nix-daemon/nix-daemon.cc | 16 +++- nix/scripts/authenticate.in | 11 --- nix/scripts/download.in | 11 --- nix/scripts/list-runtime-roots.in | 147 ------------------------------ nix/scripts/offload.in | 11 --- nix/scripts/substitute.in | 11 --- 21 files changed, 260 insertions(+), 365 deletions(-) delete mode 100644 nix/scripts/authenticate.in delete mode 100644 nix/scripts/download.in delete mode 100644 nix/scripts/list-runtime-roots.in delete mode 100644 nix/scripts/offload.in delete mode 100644 nix/scripts/substitute.in -- 2.23.0