all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#37302] [PATCH 0/7] Remove the daemon's libexec helpers
@ 2019-09-04 10:19 Ludovic Courtès
  2019-09-04 10:26 ` [bug#37302] [PATCH 1/7] daemon: Invoke 'guix gc --list-busy' instead of 'list-runtime-roots' Ludovic Courtès
  2019-09-08 10:03 ` bug#37302: [PATCH 0/7] Remove the daemon's libexec helpers Ludovic Courtès
  0 siblings, 2 replies; 9+ messages in thread
From: Ludovic Courtès @ 2019-09-04 10:19 UTC (permalink / raw)
  To: 37302

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-09-08 10:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-04 10:19 [bug#37302] [PATCH 0/7] Remove the daemon's libexec helpers Ludovic Courtès
2019-09-04 10:26 ` [bug#37302] [PATCH 1/7] daemon: Invoke 'guix gc --list-busy' instead of 'list-runtime-roots' Ludovic Courtès
2019-09-04 10:26   ` [bug#37302] [PATCH 2/7] daemon: Run 'guix authenticate' directly Ludovic Courtès
2019-09-04 10:26   ` [bug#37302] [PATCH 3/7] daemon: Run 'guix perform-download' directly Ludovic Courtès
2019-09-04 10:27   ` [bug#37302] [PATCH 4/7] daemon: Run 'guix offload' directly Ludovic Courtès
2019-09-04 10:27   ` [bug#37302] [PATCH 5/7] daemon: Run 'guix substitute' directly and assume a single substituter Ludovic Courtès
2019-09-04 10:27   ` [bug#37302] [PATCH 6/7] daemon: Remove 'NIX_LIBEXEC_DIR' Ludovic Courtès
2019-09-04 10:27   ` [bug#37302] [PATCH 7/7] etc: Remove references to libexec/guix* from SELinux policy Ludovic Courtès
2019-09-08 10:03 ` bug#37302: [PATCH 0/7] Remove the daemon's libexec helpers Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.