Commit graph

61751 commits

Author SHA1 Message Date
Jan (janneke) Nieuwenhuizen
68d8c09465
gnu: services: Add %hurd-startup-service.
This decouples startup of the Hurd from the "hurd" package, moving the RC
script into SYSTEM.

* gnu/packages/hurd.scm (hurd)[inputs]: Remove hurd-rc-script.
[arguments]: Do not substitute it.  Update "runsystem.sh" to parse kernel
arguments and exec into --system=SYSTEM/rc.
(hurd-rc-script): Move to...
* gnu/services.scm (%hurd-rc-file): ...this new variable.
(hurd-rc-entry): New procedure.
(%hurd-startup-service): Use it in new variable.
* gnu/system.scm (hurd-default-essential-services): Use it.
2020-06-08 14:26:14 +02:00
Jan (janneke) Nieuwenhuizen
b37c544196
hurd-boot: Further cleanup of "rc".
* gnu/packages/hurd.scm (hurd-rc-script): Move implementation to ...
* gnu/build/hurd-boot.scm (boot-hurd-system): ...here, new file.
* gnu/build/linux-boot.scm (make-hurd-device-nodes): Move there likewise.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
2020-06-08 14:26:14 +02:00
Jan (janneke) Nieuwenhuizen
11e4200fee
system: hurd: Populate services.
* gnu/system/hurd.scm (%base-services/hurd): Add hurd-console-service,
hurd-getty-services, guix-service.  Also add sylog and loopback, needed for
...
* gnu/system.scm (hurd-default-essential-services): ... add
%shepherd-root-service with dependencies: %boot-service, %activation-service,
user-processes, root-file-system-service, file-system-service,
pam-root-service.
2020-06-08 14:26:14 +02:00
Jan (janneke) Nieuwenhuizen
7ccd471c71
services: Add `hurd-getty-service-type'.
* gnu/services/hurd.scm (<hurd-gettty-configuration>): New record.
(hurd-ttys-shepherd-service): New procedure.
(hurd-getty-service-type): New variable.
* doc/guix.texi (Hurd Services): Document it.
2020-06-08 14:26:14 +02:00
Jan (janneke) Nieuwenhuizen
f9c04580bf
services: Add `hurd-console-service-type'.
* gnu/services/hurd.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* doc/guix.texi (Hurd Services): Document it.
2020-06-08 14:26:14 +02:00
Jan (janneke) Nieuwenhuizen
97c94fc2c2
gnu: hurd: Create minimal "runsystem" script to invoke "rc".
This moves towards a regular Guix startup, loading SYSTEM/boot to activate the
system and start the shepherd.

* gnu/packages/hurd.scm (hurd-rc-script): Update to handle "runsystem" tasks.
Load system/boot to activate the system and start the shepherd.  Create /hurd
symlink.
(hurd)[arguments]: Add 'create-runsystem' phase.  Do not substitute now unused
init.c, runsystem.hurd.  Substitute "/hurd/" for the fixed 'out + "/hurd/"' in
boot.c, console-run.c and startup.c.  Also substitute
_HURD_STARTUP ("/hurd/startup") to the fixed 'out + "/hurd/startup"' in
libdiskfs/boot-start.c and libdiskfs/opts-std-startup.c.
2020-06-08 14:26:14 +02:00
Jan (janneke) Nieuwenhuizen
c03e513a41
services: hurd: Populate system profile.
* gnu/system.scm (hurd-default-essential-services): Populate profile with
packages.
2020-06-08 14:26:13 +02:00
Jan (janneke) Nieuwenhuizen
f5ca79d2a2
services: Support etc-service for the Hurd.
* gnu/system.scm (operating-system-etc-service): Cater for missing nsswitch
and missing sudoers-file.  For the Hurd, add "login" and "motd".
(hurd-default-essential-services): Add operating-system-etc-service.
2020-06-08 14:12:29 +02:00
Jan (janneke) Nieuwenhuizen
c3fd2df705
system: Support activation service for the Hurd.
* gnu/build/activation.scm (boot-time-system): Use "command-line" for the
Hurd.
* gnu/system.scm (hurd-default-essential-services): Add %boot-service and
%activation-service.
2020-06-08 14:12:20 +02:00
Jan (janneke) Nieuwenhuizen
59bcffa314
system: examples: Add bare-hurd.tmpl.
* gnu/system/hurd.scm (%hurd-def%hurd-default-operating-system-kernel,
%hurd-default-operating-system): New exported variables.
* gnu/system/examples/bare-hurd.tmpl: New file.
* Makefile.am (EXAMPLES): Add it.
* tests/guix-system.sh: Add --target=i586-pc-gnu when testing it.
2020-06-08 13:51:19 +02:00
Jan (janneke) Nieuwenhuizen
e6cd8581c1
system: Use 'hurd' package in label.
* gnu/system.scm (kernel->boot-label): Add keyword parameter 'hurd'.  If set,
use it for label.
(operating-system-default-label): Call with it with operating-system-hurd.
2020-06-08 13:51:19 +02:00
Jan (janneke) Nieuwenhuizen
1244491a0d
bootloader: grub: Add support for multiboot.
* gnu/bootloader/grub.scm (grub-configuration-file): Add support for
multiboot.
2020-06-08 13:51:18 +02:00
Jan (janneke) Nieuwenhuizen
912b857ede
system: Add 'multiboot-modules' field to <boot-parameters>.
* gnu/system.scm (<boot-parameters>)[multiboot-modules]: New field.
(read-boot-parameters): Initialize it.
(operating-system-multiboot-modules, hurd-multiboot-modules): New procedure.
(operating-system-boot-parameters): Cater for multiboot the Hurd and
initialize it; avoid initrd in that case.
(operating-system-kernel-file): Cater for for Gnumach (the Hurd) besides Linux.
(boot-parameters->menu-entry): Use it to support a multiboot <menu-entry>.
2020-06-08 13:51:18 +02:00
Jan (janneke) Nieuwenhuizen
21acd8d6c1
bootloader: Extend `<menu-entry>' for multiboot.
* gnu/bootloader.scm (<menu-entry>)[multiboot-kernel,multiboot-arguments,
multiboot-modules]: New fields.
[linux,initrd]: Add default value '#f'.
(menu-entry->sexp, sexp->menu-entry): Support multiboot entry.
* doc/guix.texi (Bootloader Configuration): Document them.
2020-06-08 13:51:18 +02:00
Jan (janneke) Nieuwenhuizen
2018fb2afe
system: Add 'hurd' field to <operating-system>.
* gnu/system.scm (<operating-system>)[hurd]: New field.
* doc/guix.texi (operating-system Reference): Document 'hurd'.
2020-06-08 13:51:18 +02:00
Jan (janneke) Nieuwenhuizen
45b2cb439d
system: hurd: Add hurd-default-essential-services.
* gnu/system.scm (hurd-default-essential-services): New procedure.
2020-06-08 13:51:18 +02:00
Mathieu Othacehe
c77b92859f
image: Add Hurd support.
* gnu/system/image.scm (hurd-disk-image): New exported variable,
(root-offset, root-label): new variables,
(esp-partition, root-partition): adapt accordingly,
(find-image): add Hurd support.
2020-06-08 13:51:18 +02:00
Jan (janneke) Nieuwenhuizen
6cea61f2fa
linux-boot: Update 'make-hurd-device-nodes'.
* gnu/build/linux-boot.scm (make-hurd-device-nodes): Avoid de-duplication of
device mount points; also create mount points for /servers/.
2020-06-08 13:51:18 +02:00
Jan (janneke) Nieuwenhuizen
1428926f1f
syscalls: set-thread-name, thread-name: Stub for the Hurd.
Avoid crash

    Backtrace:
    guix/build/syscalls.scm:405:8: In procedure prctl: Function not implemented

because of missing prctl on the Hurd.

* guix/build/syscalls.scm (set-thread-name, thread-name): Rename to ...
(set-thread-name!/linux,thread-name/linux): ...this.
(set-thread-name, thread-name): Swtich between linux implementation and or
stub.
2020-06-08 13:51:17 +02:00
Jan (janneke) Nieuwenhuizen
4c26229ccb
gnu: hurd: Update to upstream Hurd-reserved xattr index.
This enables setting (and reading) passive translators when preparing a Hurd
file system from GNU/Linux.

* gnu/packages/patches/hurd-xattr.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/hurd.scm (hurd): Use it.
2020-06-08 13:51:17 +02:00
Michael Rohleder
bec45e6ddb
gnu: x265: Build with assembly files.
* gnu/packages/video.scm (x265)[native-inputs]: Add nasm.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2020-06-08 13:03:30 +03:00
Mathieu Othacehe
0dddaa7b01
system: bare-bones: Remove dependency to X libraries.
Use "openssh-sans-x" to prevent the inclusion of X libraries to the bare-bones
system closure.

* gnu/system/examples/bare-bones.tmpl (operating-system)[services]: Use
openssh-sans-x instead of openssh.
2020-06-08 11:03:11 +02:00
Mathieu Othacehe
65c8512f9c
gnu: Add openssh-sans-x.
* gnu/packages/ssh.scm (openssh-sans-x): New variable.
2020-06-08 11:02:43 +02:00
Mathieu Othacehe
173d22a1c0
gnu: sudo: Separate Python output.
The Python plugin of "sudo" drags the Python interpreter to the closure of
Guix System. Put it in a separate output.

* gnu/packages/admin.scm (sudo)[arguments]: Add a 'separate-python-output
phase, that's populating ...
[outputs]: ... the new "python" output.
2020-06-08 10:53:11 +02:00
Mathieu Othacehe
ea5d9bf991
system: install: Add default libcs to gc-roots.
During the installation, it may be needed to build locales that are not
covered by glibc-utf8-locales. Make sure that the libraries required to build
locales are available.

This is a follow-up of 0eed771275.

* gnu/system/install.scm (installation-os)[services]: Add
%default-locale-libcs to gc-root-service-type.
2020-06-08 10:52:53 +02:00
Tobias Geerinckx-Rice
d1fe14be6a
gnu: rtl8821ce-linux-module: Use MAKE-FLAGS.
* gnu/packages/linux.scm (rtl8821ce-linux-module)[arguments]: Use
MAKE-FLAGS keyword.  Make CC environment variable a make flag.
2020-06-08 10:36:50 +02:00
Tobias Geerinckx-Rice
de728cb859
gnu: rtl8812au-aircrack-ng-linux-module: Use MAKE-FLAGS.
* gnu/packages/linux.scm (rtl8812au-aircrack-ng-linux-module)
[arguments]: Use MAKE-FLAGS keyword.
2020-06-08 10:36:50 +02:00
Tobias Geerinckx-Rice
44adf883f0
gnu: rtl8812au-aircrack-ng-linux-module: Update to 5.6.4.2-1.df2b8df.
* gnu/packages/linux.scm (rtl8812au-aircrack-ng-linux-module):
Update to 5.6.4.2-1.df2b8df.
2020-06-08 10:36:50 +02:00
Tobias Geerinckx-Rice
b2a9d15253
gnu: mu: Update to 1.4.9.
* gnu/packages/mail.scm (mu): Update to 1.4.9.
2020-06-08 10:36:50 +02:00
Tobias Geerinckx-Rice
ecb6581276
gnu: v4l2loopback-linux-module: Edit synopsis and description.
* gnu/packages/linux.scm (v4l2loopback-linux-module)
[synopsis, description]: Edit.
2020-06-08 10:36:49 +02:00
Tobias Geerinckx-Rice
fdcd193744
gnu: v4l2loopback-linux-module: Disable ‘test’.
It simply built the test programme but nothing more.

* gnu/packages/linux.scm (v4l2loopback-linux-module)[arguments]:
Remove the ‘check’ phase.
2020-06-08 10:36:49 +02:00
Morgan Smith
1acf4c59f8
gnu: Add v4l2loopback-linux-module.
* gnu/packages/linux.scm (v4l2loopback-linux-module): New variable.
2020-06-08 10:12:51 +02:00
Mark H Weaver
fa122ac4ca
gnu: linux-libre: Update to 5.4.45.
* gnu/packages/linux.scm (linux-libre-5.4-version): Update to 5.4.45.
(linux-libre-5.4-pristine-source): Update hash.
2020-06-08 00:35:52 -04:00
Mark H Weaver
ec29dc0713
gnu: linux-libre@5.6: Update to 5.6.17.
* gnu/packages/linux.scm (linux-libre-5.6-version): Update to 5.6.17.
(linux-libre-5.6-pristine-source): Update hash.
2020-06-08 00:35:15 -04:00
Mark H Weaver
cc57925664
gnu: linux-libre@4.19: Update to 4.19.127.
* gnu/packages/linux.scm (linux-libre-4.19-version): Update to 4.19.127.
(linux-libre-4.19-pristine-source): Update hash.
2020-06-08 00:34:20 -04:00
Ludovic Courtès
e782756080
git-authenticate: Prevent removal of '.guix-authorizations'.
* guix/git-authenticate.scm (commit-authorized-keys)
[parents-have-authorizations-file?, assert-parents-lack-authorizations]:
New procedures.
Use the latter before returning DEFAULT-AUTHORIZATIONS.
* guix/git.scm (false-if-git-not-found): Export.
* guix/tests/git.scm (populate-git-repository): Add 'remove' clause.
* tests/git-authenticate.scm ("signed commits, .guix-authorizations removed"):
New test.
2020-06-07 23:10:46 +02:00
Ludovic Courtès
1fd7de45f2
git: 'update-cached-checkout' gracefully handles missing starting commit.
Fixes <https://bugs.gnu.org/41604>
Reported by John Soo <jsoo1@asu.edu> and zimoun <zimon.toutoune@gmail.com>.

* guix/git.scm (false-if-git-not-found): New macro.
(reference-available?): Use it.
(update-cached-checkout): Use it when looking up STARTING-COMMIT.
Set RELATION to 'unrelated when OLD is #false.
2020-06-07 23:10:46 +02:00
Jakub Kądziołka
715f589ea3
gnu: go-github-com-stretchr-testify: Update to 1.5.1.
* gnu/packages/golang.scm (go-github-com-stretchr-testify):
  Update to 1.5.1.
2020-06-07 22:10:32 +02:00
Jakub Kądziołka
388ffbfbfe
gnu: go-github-com-davecgh-go-spew: Update to 1.1.1.
* gnu/packages/golang.scm (go-github-com-davecgh-go-spew):
  Update to 1.1.1.
2020-06-07 22:10:32 +02:00
Jakub Kądziołka
0601fb29fb
gnu: Add go-github-com-stretchr-objx.
* gnu/packages/golang.scm (go-github-com-stretchr-objx): New variable.
2020-06-07 22:10:31 +02:00
Efraim Flashner
fae75ff991
gnu: Add epour.
* gnu/packages/enlightenment.scm (epour): New variable.
2020-06-07 22:27:40 +03:00
Efraim Flashner
9b5e7d01af
gnu: Add vim-dispatch.
* gnu/packages/vim.scm (vim-dispatch): New variable.
2020-06-07 22:27:36 +03:00
Fredrik Salomonsson
a6e2c477c5
gnu: emacs-lua-mode: Update to 20200508-0.35b6e4c.
* gnu/packages/emacs-xyz.scm (emacs-lua-mode): Update to 20200508-0.35b6e4c.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2020-06-07 21:24:47 +02:00
Fredrik Salomonsson
2d0cd1cab1
gnu: Add emacs-flymake-shellcheck.
* gnu/packages/emacs-xyz.scm (emacs-flymake-shellcheck): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2020-06-07 21:15:02 +02:00
Tobias Geerinckx-Rice
c6f557636a
gnu: docker, docker-cli: Update to 19.03.11.
* gnu/packages/docker.scm (%docker-version): Update to 19.03.11.
(docker, docker-cli): Update hashes.
2020-06-07 18:43:38 +02:00
Tobias Geerinckx-Rice
d8a85f8200
gnu: qwt: Update to 6.1.5.
* gnu/packages/qt.scm (qwt): Update to 6.1.5.
2020-06-07 18:43:38 +02:00
Tobias Geerinckx-Rice
1fc6f1def9
gnu: python-mwclient: Update to 0.10.1.
* gnu/packages/python-xyz.scm (python-mwclient): Update to 0.10.1.
2020-06-07 18:43:38 +02:00
Tobias Geerinckx-Rice
7907e7f237
gnu: libgit2: Update to 1.0.1.
* gnu/packages/version-control.scm (libgit2): Update to 1.0.1.
2020-06-07 18:43:38 +02:00
Tobias Geerinckx-Rice
41c68b6a68
gnu: s6-portable-utils: Update to 2.2.2.3.
* gnu/packages/skarnet.scm (s6-portable-utils): Update to 2.2.2.3.
2020-06-07 18:43:38 +02:00
Tobias Geerinckx-Rice
ce4b77cc2d
gnu: wireguard-linux-compat: Update to 1.0.20200520.
* gnu/packages/vpn.scm (wireguard-linux-compat): Update to 1.0.20200520.
2020-06-07 18:43:37 +02:00