diff options
author | Marius Bakke <marius@gnu.org> | 2020-05-26 22:34:46 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2020-05-26 22:34:46 +0200 |
commit | aa13c5657d4f8b5dd52beda88a9a8ccc59ebca86 (patch) | |
tree | 856094a6541a72b70d471ed5265d6e940cb11e55 /etc | |
parent | 8ab211dbdb7df000a64aceadfe7b53488819d245 (diff) | |
parent | b4f04e0efff1fb6112b84dc6d36ea46215c336b2 (diff) | |
download | guix-aa13c5657d4f8b5dd52beda88a9a8ccc59ebca86.tar guix-aa13c5657d4f8b5dd52beda88a9a8ccc59ebca86.tar.gz |
Merge branch 'master' into staging
Diffstat (limited to 'etc')
-rw-r--r-- | etc/gnu-store.mount.in | 14 | ||||
-rwxr-xr-x | etc/guix-install.sh | 17 | ||||
-rwxr-xr-x | etc/indent-code.el (renamed from etc/indent-code.el.in) | 52 | ||||
-rw-r--r-- | etc/news.scm | 57 |
4 files changed, 109 insertions, 31 deletions
diff --git a/etc/gnu-store.mount.in b/etc/gnu-store.mount.in new file mode 100644 index 0000000000..c94f2db72b --- /dev/null +++ b/etc/gnu-store.mount.in @@ -0,0 +1,14 @@ +[Unit] +Description=Read-only @storedir@ for GNU Guix +DefaultDependencies=no +ConditionPathExists=@storedir@ +Before=guix-daemon.service + +[Install] +WantedBy=guix-daemon.service + +[Mount] +What=@storedir@ +Where=@storedir@ +Type=none +Options=bind,ro diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 4909d3f162..bcce1d8869 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -3,7 +3,7 @@ # Copyright © 2017 sharlatan <sharlatanus@gmail.com> # Copyright © 2018 Ricardo Wurmus <rekado@elephly.net> # Copyright © 2018 Efraim Flashner <efraim@flashner.co.il> -# Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr> +# Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> # # This file is part of GNU Guix. # @@ -342,7 +342,16 @@ sys_enable_guix_daemon() _msg "${PAS}enabled Guix daemon via upstart" ;; systemd) - { cp "${ROOT_HOME}/.config/guix/current/lib/systemd/system/guix-daemon.service" \ + { # systemd .mount units must be named after the target directory. + # Here we assume a hard-coded name of /gnu/store. + # XXX Work around <https://issues.guix.gnu.org/41356> until next release. + if [ -f "${ROOT_HOME}/.config/guix/current/lib/systemd/system/gnu-store.mount" ]; then + cp "${ROOT_HOME}/.config/guix/current/lib/systemd/system/gnu-store.mount" \ + /etc/systemd/system/; + chmod 664 /etc/systemd/system/gnu-store.mount; + fi + + cp "${ROOT_HOME}/.config/guix/current/lib/systemd/system/guix-daemon.service" \ /etc/systemd/system/; chmod 664 /etc/systemd/system/guix-daemon.service; @@ -357,8 +366,8 @@ sys_enable_guix_daemon() fi; systemctl daemon-reload && - systemctl start guix-daemon && - systemctl enable guix-daemon; } && + systemctl start gnu-store.mount guix-daemon && + systemctl enable gnu-store.mount guix-daemon; } && _msg "${PAS}enabled Guix daemon via systemd" ;; sysv-init) diff --git a/etc/indent-code.el.in b/etc/indent-code.el index 6102b5d1ab..255ffb126b 100755 --- a/etc/indent-code.el.in +++ b/etc/indent-code.el @@ -1,8 +1,9 @@ -#!@EMACS@ --script +:;exec emacs --batch --quick --load="$0" --funcall=main "$@" ;;; indent-code.el --- Run Emacs to indent a package definition. ;; Copyright © 2017 Alex Kost <alezost@gmail.com> ;; Copyright © 2017 Ludovic Courtès <ludo@gnu.org> +;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;; This file is part of GNU Guix. @@ -86,29 +87,30 @@ (with-syntax 1)) -(pcase command-line-args-left - (`(,file-name ,package-name) - ;; Indent the definition of PACKAGE-NAME in FILE-NAME. - (find-file file-name) - (goto-char (point-min)) - (if (re-search-forward (concat "^(define\\(-public\\) +" - package-name) - nil t) - (let ((indent-tabs-mode nil)) - (beginning-of-defun) - (indent-sexp) - (save-buffer) - (message "Done!")) - (error "Package '%s' not found in '%s'" - package-name file-name))) - (`(,file-name) - ;; Indent all of FILE-NAME. - (find-file file-name) - (let ((indent-tabs-mode nil)) - (indent-region (point-min) (point-max)) - (save-buffer) - (message "Done!"))) - (x - (error "Usage: indent-code.el FILE [PACKAGE]"))) +(defun main () + (pcase command-line-args-left + (`(,file-name ,package-name) + ;; Indent the definition of PACKAGE-NAME in FILE-NAME. + (find-file file-name) + (goto-char (point-min)) + (if (re-search-forward (concat "^(define\\(-public\\) +" + package-name) + nil t) + (let ((indent-tabs-mode nil)) + (beginning-of-defun) + (indent-sexp) + (save-buffer) + (message "Done!")) + (error "Package '%s' not found in '%s'" + package-name file-name))) + (`(,file-name) + ;; Indent all of FILE-NAME. + (find-file file-name) + (let ((indent-tabs-mode nil)) + (indent-region (point-min) (point-max)) + (save-buffer) + (message "Done!"))) + (x + (error "Usage: indent-code.el FILE [PACKAGE]")))) ;;; indent-code.el ends here diff --git a/etc/news.scm b/etc/news.scm index c6e4e7d089..6bf88ccb44 100644 --- a/etc/news.scm +++ b/etc/news.scm @@ -1,8 +1,10 @@ ;; GNU Guix news, for use by 'guix pull'. ;; ;; Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org> +;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> ;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com> ;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> +;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;; ;; Copying and distribution of this file, with or without modification, are ;; permitted in any medium without royalty provided the copyright notice and @@ -11,9 +13,39 @@ (channel-news (version 0) + (entry (commit "b460ba7992a0b4af2ddb5927dcf062784539ef7b") + (title (en "Add support to boot from a Btrfs subvolume") + (de "Unterstützung für Systemstart von einem +Btrfs-Unterlaufwerk hinzugefügt") + (fr "Ajout du support pour démarrer depuis un sous-volume Btrfs") + (nl "Nieuwe ondersteuning voor het opstarten vanaf een Btrfs-subvolume")) + (body + (en "The generation of the GRUB configuration file produced from an +operating system declaration now takes into account the use of a Btrfs +subvolume for the partition holding @file{/gnu/store}. Run the command +@command{info \"(guix) Btrfs file system\"} for more information and +examples.") + (de "Für die Erzeugung einer GRUB-Konfigurationsdatei aus einer +Betriebssystemdeklaration kann jetzt ein Btrfs-Unterlaufwerk („Subvolume“) für +die Partition mit @file{/gnu/store} angegeben werden. Führen Sie +@command{info \"(guix) Btrfs file system\"} aus, wenn Sie mehr Informationen +und Beispiele sehen möchten.") + (fr "La génération du fichier de configuration de GRUB produite à +partir de la déclaration d'un @code{operating-system} tient maintenant compte +de l'utilisation d'un sous-volume Btrfs pour la partition contenant +@file{/gnu/store}. Exécutez la commande @command{info\"(guix) Btrfs file +system\"} pour des exemples et plus d'information.") + (nl "Het opmaken van het GRUB-configuratiebestand op basis van +een @code{operating-system}-declaratie houdt nu rekening met het gebruik van +een Btrfs-subvolume voor de partitie die @file{/gnu/store} bevat. Voer +@command{info \"(guix) Btrfs file system\"} uit voor meer informatie en +voorbeelden."))) + (entry (commit "6456232164890dbf5aa20394ee24637feb4b7b9e") (title (en "@command{guix pack -RR} introduces a new execution -engine")) +engine") + (de "@command{guix pack -RR} führt neuen Ausführungstreiber +ein")) (body (en "The @command{guix pack -RR} command allows you to create a tarball containing @dfn{relocatable binaries}. Until now, those would rely @@ -31,7 +63,28 @@ GUIX_EXECUTION_ENGINE=performance export GUIX_EXECUTION_ENGINE @end example -Run @command{info \"(guix) Invoking guix pack\"} for more information."))) +Run @command{info \"(guix) Invoking guix pack\"} for more information.") + (de "Mit dem Befehl @command{guix pack -RR} können Sie einen Tarball +mit @dfn{verschieblichen Binärdateien} erzeugen (englisch „Relocatable +Binaries“). Bisher wurden diese entweder in „unprivilegierten +Benutzernamensräumen“ ohne Berechtigungen ausgeführt, oder in PRoot, wenn +keine unprivilegierten Benutzernamensräume unterstützt wurden. Allerdings +fällt bei der Ausführung mit PRoot bei manchen Anwendungen deutlich mehr +Rechenaufwand an. + +Um dem entgegenzuwirken, stellt @command{guix pack -RR} nun eine dritte Option +zur Verfügung, die sich eine Erweiterung des GNU-Laufzeit-Binders („Run-Time +Linker“, ld.so) und Fakechroot zu Nutze macht. Dadurch entsteht fast kein +Mehraufwand. Sie können sich die schnellste Option aussuchen, wenn Sie eine +verschiebliche Binärdatei ausführen, zum Beispiel so: + +@example +GUIX_EXECUTION_ENGINE=performance +export GUIX_EXECUTION_ENGINE +@end example + +Führen Sie @command{info \"(guix.de) Aufruf von guix pack\"} aus, wenn Sie +mehr wissen wollen."))) (entry (commit "88a96c568c47c97d05d883ada5afbc4e1200b10f") (title (en "New @option{--path} option for @command{guix graph}") |