~ruther/guix-local

888d5268 — Andre A. Gomes 1 year, 10 months ago
gnu: cl-misc-extensions: Update to 4.0.3.

* gnu/packages/lisp-xyz.scm (sbcl-misc-extensions): Update to 4.0.3.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
Change-Id: I7eb1da2bb4d1491551d0e4e60e76b6ceceee07c7
51966d1b — Guillaume Le Vaillant 1 year, 10 months ago
gnu: lisp-xyz : Sort packages.

The sbcl-* packages are sorted in alphabetical order, but the cl-* and ecl-*
variants are kept just below the main sbcl package.

* gnu/packages/lisp-xyz.scm: Sort packages.

Change-Id: I95d7151923284bd3d8da57af8ad3a160370941f0
gnu: lvm2: Remove systemd rule.

* gnu/packages/patches/lvm2-no-systemd.patch: New file.
* gnu/packages/linux.scm (lvm2)[source]: Apply patch.
* gnu/local.mk: Register new patch.

Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
Change-Id: Ib4342e0ce3cc5778857ccecd557f3d397aa870d9
cca25a67 — Ludovic Courtès 1 year, 10 months ago
services: shepherd: Failure to load a service does not prevent booting.

Fixes <https://issues.guix.gnu.org/71144>.

Fixes a bug whereby, when loading a service file would fail, for
instance due to an unbound variable, a REPL would be opened on the
console, preventing the system from booting.

This fixes that by isolating service load errors and making them
non-fatal.

* gnu/services/shepherd.scm (shepherd-configuration-file)[config]:
Remove call to ‘call-with-error-handling’.  Use ‘filter-map’ instead of
‘map’ to iterate over service files, and catch exceptions raised by
‘load-compiled’.

Change-Id: Ie6e76ea514837f85386232f797bc77b2882b5c22
5a7cb596 — Ludovic Courtès 1 year, 11 months ago
deduplication: Detect holes and create sparse files.

This reduces disk usage of sparse files that are substituted such as
Guile object files (ELF files).  As of Guile 3.0.9, .go files are sparse
due to ELF sections being aligned on 64 KiB boundaries.

This reduces disk usage reported by “du -sh” by 9% for the ‘guix’
package, by 23% for ‘guile’, and by 35% for ‘guile-git’.

* guix/store/deduplication.scm (hole-size, find-holes): New procedures.
(tee)[seekable?]: New variable.
[read!]: Add case when SEEKABLE? is true.
* tests/store-deduplication.scm (cartesian-product): New procedure.
("copy-file/deduplicate, sparse files (holes: ~a/~a/~a)"): New test set.

Change-Id: Iad2ab7830dcb1220e2026f4a127a6c718afa8964
73b3f941 — Ludovic Courtès 1 year, 10 months ago
maint: Suggest ‘guix git authenticate’ for initial authentication.

The previous recommendation, running ‘make authenticate’, was insecure
because it led users to run code from the very repository they want to
authenticate:

  https://lists.gnu.org/archive/html/guix-devel/2024-04/msg00252.html

* Makefile.am (commit_v1_0_0, channel_intro_commit)
(channel_intro_signer, GUIX_GIT_KEYRING, authenticate): Remove.
* Makefile.am (.git/hooks/%): New target, generalization of previous
‘.git/hooks/pre-push’ target.
(nodist_noinst_DATA): Add ‘.git/hooks/post-merge’.
* doc/contributing.texi (Building from Git): Suggest ‘guix git
authenticate’ instead of ‘make authenticate’.
* etc/git/post-merge: New file.
* etc/git/pre-push: Run ‘guix git authenticate’ instead of ‘make
authenticate’.

Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Reported-by: Skyler Ferris <skyvine@protonmail.com>
Change-Id: Ia415aa8375013d0dd095e891116f6ce841d93efd
0efa1daa — Richard Sent 1 year, 10 months ago
doc: Document ‘assume-valid-file-name’ in ‘local-file’.

* doc/guix.texi (G-Expressions): Document the use of assume-valid-file-name with
local-file.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Change-Id: I132f78e198cbf3ba2e5a677d671563d753de534c
be868f69 — Giacomo Leidi 1 year, 11 months ago
gnu: Add tests for oci-container-service-type.

* gnu/tests/docker.scm (run-oci-container-test): New variable;
(%test-oci-container): new variable.

Change-Id: Idefc3840bdc6e0ed4264e8f27373cd9a670f87a0
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
c07731a7 — Giacomo Leidi 1 year, 11 months ago
gnu: docker: Allow passing tarballs for images in oci-container-configuration.

This commit allows for loading an OCI image tarball before running an
OCI backed Shepherd service. It does so by adding a one shot Shepherd
service to the dependencies of the OCI backed service that at boot runs
docker load on the tarball.

* gnu/services/docker.scm (oci-image): New record;
(lower-oci-image): new variable, lower it;
(string-or-oci-image?): sanitize it;
(oci-container-configuration)[image]: allow also for oci-image records;
(oci-container-shepherd-service): use it;
(%oci-image-loader): new variable.

Change-Id: Ie504f479ea0d47f74b0ec5df9085673ffd3f639d
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
68adfaea — Giacomo Leidi 1 year, 11 months ago
gnu: docker: Allow setting Shepherd dependencies in oci-container-configuration.

* gnu/services/docker.scm (oci-container-configuration)
[requirement]: New field;
(list-of-symbols): sanitize it;
(oci-container-shepherd-service): use it.
* doc/guix.texi: Document it.

Change-Id: Ic0ba336a2257d6ef7c658cfc6cd630116661f581
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
e68c1af4 — Giacomo Leidi 1 year, 11 months ago
gnu: docker: Allow setting host environment variables in oci-container-configuration.

* gnu/services/docker.scm (oci-container-configuration)
[host-environment]: New field;
(oci-sanitize-host-environment): sanitize it;
(oci-container-shepherd-service): use it.
* doc/guix.texi: Document it.

Change-Id: I4d54d37736cf09f042a71cb0b6e673abc0948d9c
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
003c89a8 — Giacomo Leidi 1 year, 11 months ago
gnu: docker: Provide escape hatch in oci-container-configuration.

* gnu/services/docker.scm (exports): Add missing procedures;
(oci-container-service-type)[description]: Docker and OCI images should
mean the same thing;
(oci-container-configuration): clarify field types;
[extra-arguments]: new field;
(oci-sanitize-extra-arguments): sanitize it;
(oci-container-shepherd-service): use it.
* doc/guix.texi: Document it.

Change-Id: I64e9d82c8ae538d59d1c482f23070a880156ddf7
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
a237f0d4 — Giacomo Leidi 1 year, 11 months ago
services: Add restic-backup service.

* gnu/services/backup.scm: New file.
* gnu/local.mk: Add this.
* doc/guix.texi: Document this.

Change-Id: I9efd5559bb445b484107a7c27c2d0a65ccad1e66
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
cbac0b1d — Ludovic Courtès 1 year, 10 months ago
environment: Fix type error with ‘-C’ when ‘getpwuid’ fails.

Fixes a bug with ‘guix shell -C …’ in cases where ‘getpwuid’
returns #f (for example because nscd isn’t running) and
‘user’ is #f.

* guix/scripts/environment.scm (launch-environment/container): Use
‘name’ when building the ‘directory’ value, not ‘user’ since it can be #f.

Change-Id: I5da807d982a1edbb4122ac29b5a1e5fc4b0ce1b7
9756d9d6 — Guillaume Le Vaillant 1 year, 10 months ago
gnu: cl-nodgui: Update to 0.6.2.0-1.9d0c973.

* gnu/packages/lisp-xyz.scm (sbcl-nodgui): Update to 0.6.2.0-1.9d0c973.
  [inputs]: Add sbcl-flexi-streams, sbcl-static-vectors,
  sbcl-trivial-garbage. Move sbcl-clunit2 to...
  [native-inputs]: ... here.

Change-Id: I2299175a06786ce93fde34aa54005c00b40edd71
8ca6e63b — Guillaume Le Vaillant 1 year, 10 months ago
gnu: cl-access: Update to 1.6.0-1.a4f87fc.

* gnu/packages/lisp-xyz.scm (sbcl-access): Update to 1.6.0-1.a4f87fc.
  [source, home-page]: Switch to maintained repository.
  [inputs]: Remove sbcl-anaphora and sbcl-cl-interpol. Add sbcl-cl-ppcre.

Change-Id: Idbc140b1264156e975b69ab65423765d5f5a77d1
1fa8997f — Guillaume Le Vaillant 1 year, 10 months ago
gnu: cl-stmx: Update to 2.0.5-3.95f7dea.

* gnu/packages/lisp-xyz.scm (sbcl-stmx): Update to 2.0.5-3.95f7dea.
  [arguments]: Remove 'fix-build' phase.

Change-Id: I72e3f323f38ced32ea03ab2661d5802e93e13572
199e8f95 — Guillaume Le Vaillant 1 year, 10 months ago
gnu: cl-collectors: Update to 1.0-2.4c5e70c.

* gnu/packages/lisp-xyz.scm (sbcl-collectors): Update to 1.0-2.4c5e70c.

Change-Id: I95c9beb1aa5e59b658ee091ab14d803e6eded3fe
2ac3d61c — Guillaume Le Vaillant 1 year, 10 months ago
gnu: cl-cf: Update to 1.0-2.fbc025b.

* gnu/packages/lisp-xyz.scm (sbcl-cf): Update to 1.0-2.fbc025b.

Change-Id: Ide38475fb171f71c5dc35bb12d66a81b0f08cf64
c5e63e19 — Efraim Flashner 1 year, 10 months ago
gnu: gssdp-1.4: Fix building.

This is a follow-up to 9901416233867233192b63fde7f616751127b189.

* gnu/packages/gnome.scm (gssdp-1.4)[arguments]: Override inherited
arguments to set the configure-flags specifically.

Change-Id: Ifbdaf278a402a26b344b6dcd7a5e3d4e22148561
Next