jackhill/guix/guix.git
5 years agognu: fredink-data: Add upstream refresh information.
Efraim Flashner [Sun, 20 Jan 2019 18:03:14 +0000 (20:03 +0200)]
gnu: fredink-data: Add upstream refresh information.

* gnu/packages/games.scm (freedink-data)[properties]: New field.

5 years agognu: freedink-engine: Add upstream refresh information.
Efraim Flashner [Sun, 20 Jan 2019 18:02:33 +0000 (20:02 +0200)]
gnu: freedink-engine: Add upstream refresh information.

* gnu/packages/games.scm (freedink-engine)[properties]: New field.

5 years agoimport: github: Check if git URIs are GitHub URIs.
Arun Isaac [Sun, 20 Jan 2019 16:48:32 +0000 (22:18 +0530)]
import: github: Check if git URIs are GitHub URIs.

This fixes a regression introduced in 9a5091d0c181453d0f31ce97f96a4e577a25e796
whereby packages with git origin URIs not hosted on GitHub would be wrongly
detected as being covered under the github updater.
Reported by Efraim Flashner <efraim@flashner.co.il>.

* guix/import/github.scm (updated-github-url): Check if git URIs are GitHub
URIs.

5 years agognu: Add pencil2d.
Pkill -9 [Wed, 16 Jan 2019 15:14:45 +0000 (15:14 +0000)]
gnu: Add pencil2d.

* gnu/packages/animation.scm (pencil2d): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
5 years agognu: qjackctl: Disable xunique.
Pierre Langlois [Fri, 11 Jan 2019 20:55:42 +0000 (20:55 +0000)]
gnu: qjackctl: Disable xunique.

* gnu/packages/audio.scm (qjackctl)[arguments]: Pass "--disable-xunique" to
configure-flags.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
5 years agochannels: Use 'fold2'.
Ludovic Courtès [Sun, 20 Jan 2019 17:45:40 +0000 (18:45 +0100)]
channels: Use 'fold2'.

* guix/channels.scm (latest-channel-instances): Use 'fold2' instead of
'fold'.

5 years agochannels: Gracefully report the lack of a 'guix' channel.
Ludovic Courtès [Sun, 20 Jan 2019 17:11:11 +0000 (18:11 +0100)]
channels: Gracefully report the lack of a 'guix' channel.

* guix/channels.scm (channel-instance-derivations): Raise an '&message'
condition when CORE-INSTANCE is #f.

5 years agochannels: Build channel modules in an inferior.
Ludovic Courtès [Fri, 18 Jan 2019 09:15:35 +0000 (10:15 +0100)]
channels: Build channel modules in an inferior.

This ensures that channel modules are compiled with the right Guile,
that they get to see the right modules, and so on.  IOW, it avoids bugs
such as those addressed by commits
3c0e16391ed9a3e3e4611b940fb393c5f2ecea63 and
cb341c121919877ae6267a6460c0c17536d06eff.

* guix/channels.scm (standard-module-derivation): Add 'core'
parameter.  Rewrite in terms of 'gexp->derivation-in-inferior'.
(build-from-source): Add #:core parameter and pass it to
'standard-module-derivation'.
(build-channel-instance): Add 'core' parameter and pass it on.
(channel-instance-derivations)[dependencies]: Remove.
Adjust 'build-channel-instance' call.

5 years agoinferior: 'gexp->derivation-in-inferior' honors EXP's load path.
Ludovic Courtès [Fri, 18 Jan 2019 09:01:37 +0000 (10:01 +0100)]
inferior: 'gexp->derivation-in-inferior' honors EXP's load path.

Previously the imported modules and extensions of EXP would be missing
from the load path of 'guix repl'.

* guix/inferior.scm (gexp->derivation-in-inferior)[script]: New
variable.
[trampoline]: Write (primitive-load #$script) to PIPE.  Add #$output.
* tests/channels.scm ("channel-instances->manifest")[depends?]: Check
for requisites rather than direct references.
Adjust callers accordingly.

5 years agochannels: Don't pull from the same channel more than once.
Ludovic Courtès [Thu, 17 Jan 2019 15:57:53 +0000 (16:57 +0100)]
channels: Don't pull from the same channel more than once.

Previous 'channel-instance->manifest' would call
'latest-channel-derivation', which could trigger another round of
'latest-repository-commit' for no good reason.

* guix/channels.scm (resolve-dependencies): New procedure.
(channel-instance-derivations)[edges]: New variable.
[instance->derivation]: New procedure.
* tests/channels.scm (make-instance): Use 'checkout->channel-instance'
instead of 'channel-instance'.
("channel-instances->manifest"): New test.

5 years agognu: ocrad: Update to 0.27.
Tobias Geerinckx-Rice [Sun, 20 Jan 2019 15:27:04 +0000 (16:27 +0100)]
gnu: ocrad: Update to 0.27.

* gnu/packages/ocr.scm (ocrad): Update to 0.27.

5 years agognu: links: Update to 2.18.
Tobias Geerinckx-Rice [Sun, 20 Jan 2019 15:32:46 +0000 (16:32 +0100)]
gnu: links: Update to 2.18.

* gnu/packages/web-browsers.scm (links): Update to 2.18.

5 years agognu: csound: Update to 6.12.0.
Tobias Geerinckx-Rice [Sun, 20 Jan 2019 13:02:13 +0000 (14:02 +0100)]
gnu: csound: Update to 6.12.0.

* gnu/packages/audio.scm (csound): Update to 6.12.0.

5 years agognu: %desktop-services: Use polkit-service-type.
Efraim Flashner [Sun, 20 Jan 2019 13:27:52 +0000 (15:27 +0200)]
gnu: %desktop-services: Use polkit-service-type.

* gnu/services/desktop.scm (%desktop-services): Replace polkit-service
with polkit-service-type.

5 years agognu: %base-services: Use *getty-service-type.
Efraim Flashner [Sun, 20 Jan 2019 13:25:45 +0000 (15:25 +0200)]
gnu: %base-services: Use *getty-service-type.

* gnu/services/base.scm (%base-services): Replace agetty-service with
agetty-service-type, mingetty-service with mingetty-service-type.

5 years agognu: %base-services: Use login-service-type.
Efraim Flashner [Sun, 20 Jan 2019 13:24:22 +0000 (15:24 +0200)]
gnu: %base-services: Use login-service-type.

* gnu/services/base.scm (login-service-type)[default-value]: New field.
(%base-services): Replace login-service with login-service-type.

5 years agoservices: %base-services: Use udev-service-type.
Efraim Flashner [Sun, 20 Jan 2019 13:18:36 +0000 (15:18 +0200)]
services: %base-services: Use udev-service-type.

* gnu/services/base.scm (udev-configuration): Fix typo.
(udev-service-type)[default-value]: New field.
(%base-services): Replace udev-service with udev-service-type.

5 years agoservices: %base-services: Use nscd-service-type.
Efraim Flashner [Sun, 20 Jan 2019 13:16:44 +0000 (15:16 +0200)]
services: %base-services: Use nscd-service-type.

* gnu/services/base.scm (nscd-service-type)[default-value]: New field.
(%base-services): Replace nscd-service with nscd-service-type.

5 years agoservices: Use guix-service-type.
Efraim Flashner [Sun, 20 Jan 2019 13:10:58 +0000 (15:10 +0200)]
services: Use guix-service-type.

* gnu/services/base.scm (%base-services): Replace guix-service with
guix-service-type.
* gnu/system/examples/docker-image.tmpl (services): Same.

5 years agotests: More adjustments to python.scm split.
Efraim Flashner [Sun, 20 Jan 2019 09:49:10 +0000 (11:49 +0200)]
tests: More adjustments to python.scm split.

This is a followup to 44d10b1f722856ab8e9b942804aa7ef33e2ef739.

* tests/lint.scm: Update imports.

5 years agolint: check-source-unstable-tarball: Don't assume uri length.
Efraim Flashner [Sun, 20 Jan 2019 09:43:16 +0000 (11:43 +0200)]
lint: check-source-unstable-tarball: Don't assume uri length.

* guix/scripts/lint.scm (check-source-unstable-tarball): Replace third
with code to make sure there are enough elements to check.

5 years agognu: vboot-utils: Install development keys.
Kei Kebreau [Sun, 20 Jan 2019 06:51:39 +0000 (01:51 -0500)]
gnu: vboot-utils: Install development keys.

* gnu/packages/bootloaders.scm (vboot-utils)[arguments]: Add 'install-devkeys'
phase.

5 years agognu: subversion: Mention "svn" in the description.
Ludovic Courtès [Sun, 20 Jan 2019 00:40:18 +0000 (01:40 +0100)]
gnu: subversion: Mention "svn" in the description.

* gnu/packages/version-control.scm (subversion)[description]: Mention
"svn".

5 years agoci: Use a valid 'current-guix'.
Ludovic Courtès [Sat, 19 Jan 2019 23:20:34 +0000 (00:20 +0100)]
ci: Use a valid 'current-guix'.

This fixes a regression introduced in
b5f8c2c88543158e8aca76aa98f9009f6b9e743a whereby 'current-guix' (needed
by some of the system tests) would fail to build.
Reported by Ricardo Wurmus <rekado@elephly.net>.

It also speeds up compilation of 'current-guix' since the channel
instance is already compiled or can be built quickly compared to the
default 'current-guix'.

* gnu/packages/package-management.scm (current-guix-package): New
variable.
(current-guix): Honor it.
* gnu/ci.scm (channel-build-system): New variable.
(channel-instances->derivation): New procedure.
(system-test-jobs): Add #:source and #:commit parameters.
Define 'instance' and parameterize CURRENT-GUIX-PACKAGE.
(hydra-jobs)[checkout, commit, source]: New variables.
Pass #:source and #:commit to 'system-test-jobs'.

5 years agoprofiles: Allow a profile to be added as an entry of another profile.
Ludovic Courtès [Sun, 20 Jan 2019 00:33:25 +0000 (01:33 +0100)]
profiles: Allow a profile to be added as an entry of another profile.

* guix/build/profiles.scm (build-etc/profile): When 'OUTPUT/etc/profile'
already exists, delete it first.
(build-profile): Likewise for 'OUTPUT/manifest'.
* tests/profiles.scm ("profile in profile"): New test.

5 years agotests: Adjust to python.scm split.
Ludovic Courtès [Sun, 20 Jan 2019 00:39:36 +0000 (01:39 +0100)]
tests: Adjust to python.scm split.

This is a followup to 44d10b1f722856ab8e9b942804aa7ef33e2ef739.

* tests/profiles.scm ("package->manifest-entry, search paths"): Adjust
module name for PYTHON2-MATPLOTLIB.

5 years agognu: emacs-matrix-client: Update to a0623667.
Nicolas Goaziou [Sat, 19 Jan 2019 21:32:57 +0000 (22:32 +0100)]
gnu: emacs-matrix-client: Update to a0623667.

* gnu/packages/emacs-xyz.scm (emacs-matrix-client): Update to a0623667.

5 years agognu: texlive-texmf: Fix build.
Ricardo Wurmus [Sat, 19 Jan 2019 18:54:54 +0000 (19:54 +0100)]
gnu: texlive-texmf: Fix build.

This is a follow-up to commit a1b4d62cda12d0d54663700a3f384f8a8ad5b13d.

* gnu/packages/tex.scm (texlive-texmf)[arguments]: Unset texlive-bin search
path.

5 years agognu: Add endless-sky.
Efraim Flashner [Sun, 13 Jan 2019 09:31:57 +0000 (11:31 +0200)]
gnu: Add endless-sky.

* gnu/packages/games.scm (endless-sky): New variable.

5 years agognu: wine-staging: Update to 4.0-rc7.
Rutger Helling [Sat, 19 Jan 2019 10:14:31 +0000 (11:14 +0100)]
gnu: wine-staging: Update to 4.0-rc7.

* gnu/packages/wine.scm (wine-staging-patchset-data): Update to 4.0-rc7.
* gnu/packages/wine.scm (wine-staging): Update to 4.0-rc7.

5 years agoself: Add gnu/tests/* to the installed files.
Ludovic Courtès [Fri, 18 Jan 2019 22:16:19 +0000 (23:16 +0100)]
self: Add gnu/tests/* to the installed files.

* guix/self.scm (compiled-guix)[*system-modules*]: Add gnu/tests/*.

5 years agognu: spacefm: Fix build against glibc 2.28.
Ludovic Courtès [Fri, 18 Jan 2019 21:48:04 +0000 (22:48 +0100)]
gnu: spacefm: Fix build against glibc 2.28.

* gnu/packages/lxde.scm (spacefm)[source](modules, snippet): New fields.

5 years agognu: youtube-dl: Update to 2019.01.17.
Ludovic Courtès [Fri, 18 Jan 2019 21:47:00 +0000 (22:47 +0100)]
gnu: youtube-dl: Update to 2019.01.17.

* gnu/packages/video.scm (youtube-dl): Update to 2019.01.17.

5 years agomaint: Add gnu/ci.scm to the distribution.
Ludovic Courtès [Fri, 18 Jan 2019 21:46:25 +0000 (22:46 +0100)]
maint: Add gnu/ci.scm to the distribution.

* gnu/local.mk (GNU_SYSTEM_MODULES): Add %D%/ci.scm.

5 years agognu: Inkscape: Update to 0.92.4.
Leo Famulari [Fri, 18 Jan 2019 23:44:59 +0000 (18:44 -0500)]
gnu: Inkscape: Update to 0.92.4.

* gnu/packages/inkscape.scm (inkscape): Update to 0.92.4.
[source]: Remove obsolete patches.

5 years agognu: smartmontools: Update to 7.0.
Tobias Geerinckx-Rice [Tue, 8 Jan 2019 03:20:52 +0000 (04:20 +0100)]
gnu: smartmontools: Update to 7.0.

* gnu/packages/admin.scm (smartmontools): Update to 7.0.

5 years agognu: openconnect: Update to 8.02.
Tobias Geerinckx-Rice [Thu, 17 Jan 2019 20:40:25 +0000 (21:40 +0100)]
gnu: openconnect: Update to 8.02.

* gnu/packages/vpn.scm (openconnect): Update to 8.02.

5 years agognu: openconnect: Use HTTPS home page.
Tobias Geerinckx-Rice [Thu, 17 Jan 2019 20:41:19 +0000 (21:41 +0100)]
gnu: openconnect: Use HTTPS home page.

* gnu/packages/vpn.scm (openconnect)[home-page]: Use HTTPS.

5 years agognu: liburcu: Update to 0.10.2.
Tobias Geerinckx-Rice [Thu, 17 Jan 2019 21:03:58 +0000 (22:03 +0100)]
gnu: liburcu: Update to 0.10.2.

* gnu/packages/datastructures.scm (liburcu): Update to 0.10.2.

5 years agognu: liburcu: Use HTTPS home page.
Tobias Geerinckx-Rice [Thu, 17 Jan 2019 21:04:31 +0000 (22:04 +0100)]
gnu: liburcu: Use HTTPS home page.

* gnu/packages/datastructures.scm (liburcu)[home-page]: Use HTTPS.

5 years agognu: emacs-matrix-client: Bump revision.
Nicolas Goaziou [Fri, 18 Jan 2019 21:28:30 +0000 (22:28 +0100)]
gnu: emacs-matrix-client: Bump revision.

* gnu/packages/emacs-xyz.scm (emacs-matrix-client): Bump revision to trigger
  the update, since updating commit is not enough.

5 years agotests: docker: Use "package" instead of "dummy-package".
Danny Milosavljevic [Fri, 18 Jan 2019 17:12:15 +0000 (18:12 +0100)]
tests: docker: Use "package" instead of "dummy-package".

* gnu/tests/docker.scm (build-tarball&run-docker-test): Use "package" instead
of "dummy-package".

5 years agognu: graphene: Remove custom autogen phase.
Ricardo Wurmus [Sun, 5 Aug 2018 11:25:34 +0000 (13:25 +0200)]
gnu: graphene: Remove custom autogen phase.

* gnu/packages/gtk.scm (graphene)[arguments]: Remove 'autogen phase.

5 years agognu: Add libnfs.
Ricardo Wurmus [Thu, 6 Dec 2018 06:23:22 +0000 (07:23 +0100)]
gnu: Add libnfs.

* gnu/packages/file-systems.scm (libnfs): New variable.

5 years agognu: Add mozjs-60.
Ricardo Wurmus [Mon, 3 Dec 2018 15:24:45 +0000 (16:24 +0100)]
gnu: Add mozjs-60.

* gnu/packages/gnuzilla.scm (mozjs-60): New variable.

5 years agognu: mozjs-52: Add configure flag to prevent crash.
Ricardo Wurmus [Tue, 4 Dec 2018 11:41:03 +0000 (12:41 +0100)]
gnu: mozjs-52: Add configure flag to prevent crash.

* gnu/packages/gnuzilla.scm (mozjs-52)[arguments]: Pass "--disable-jemalloc"
to prevent crashes in gnome-shell.

5 years agognu: Add libdazzle.
Ricardo Wurmus [Mon, 6 Aug 2018 14:44:43 +0000 (16:44 +0200)]
gnu: Add libdazzle.

* gnu/packages/gnome.scm (libdazzle): New variable.

5 years agognu: Add libimobiledevice.
Ricardo Wurmus [Sun, 5 Aug 2018 13:51:44 +0000 (15:51 +0200)]
gnu: Add libimobiledevice.

* gnu/packages/libusb.scm (libimobiledevice): New variable.

5 years agognu: Add libusbmuxd.
Ricardo Wurmus [Sun, 5 Aug 2018 13:50:56 +0000 (15:50 +0200)]
gnu: Add libusbmuxd.

* gnu/packages/libusb.scm (libusbmuxd): New variable.

5 years agognu: Add libplist.
Ricardo Wurmus [Sun, 5 Aug 2018 13:50:23 +0000 (15:50 +0200)]
gnu: Add libplist.

* gnu/packages/libusb.scm (libplist): New variable.

5 years agognu: libusb.scm: Use license: prefix.
Ricardo Wurmus [Sun, 5 Aug 2018 13:48:18 +0000 (15:48 +0200)]
gnu: libusb.scm: Use license: prefix.

* gnu/packages/libusb.scm: Use "license:" prefix.

5 years agognu: Add umockdev.
Ricardo Wurmus [Sun, 5 Aug 2018 11:02:39 +0000 (13:02 +0200)]
gnu: Add umockdev.

* gnu/packages/check.scm (umockdev): New variable.

5 years agognu: ibus: Do not hardcode Python version.
Ricardo Wurmus [Fri, 18 Jan 2019 16:58:01 +0000 (17:58 +0100)]
gnu: ibus: Do not hardcode Python version.

* gnu/packages/ibus.scm (ibus)[arguments]: Remove hardcoded Python version.

5 years agopull: Suggest running 'hash guix' if needed.
Ludovic Courtès [Fri, 18 Jan 2019 13:59:59 +0000 (14:59 +0100)]
pull: Suggest running 'hash guix' if needed.

Fixes <https://bugs.gnu.org/33647>.
Suggested by Diego Nicola Barbato <dnbarbato@posteo.de>.

* guix/scripts/pull.scm (build-and-install): Before returning, display a
hint if (which "guix") is not in PROFILE.

5 years agoserialization: 'restore-file' errors out upon non-convertible file names.
Ludovic Courtès [Fri, 18 Jan 2019 13:23:31 +0000 (14:23 +0100)]
serialization: 'restore-file' errors out upon non-convertible file names.

Fixes <https://bugs.gnu.org/33603>.
Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>.

* guix/serialization.scm (port-conversion-strategy): New variable.
(restore-file): Parameterize it.
* tests/nar.scm ("restore-file with non-UTF8 locale"): New test.

5 years agobuild: Add coq.scm to the distribution.
Ludovic Courtès [Thu, 17 Jan 2019 14:07:07 +0000 (15:07 +0100)]
build: Add coq.scm to the distribution.

This is a followup to 33af92dd99c9f2c726c32f81936931c69d719eb9.

* gnu/local.mk (GNU_SYSTEM_MODULES): Add gnu/packages/coq.scm.

5 years agoguix: Add guard to texlive-configuration profile hook.
Christopher Baines [Thu, 17 Jan 2019 21:00:19 +0000 (21:00 +0000)]
guix: Add guard to texlive-configuration profile hook.

It is possible to generate a profile where this hook will crash, as the
texmf.cnf file does not exist to be patched by substitute*. A simple example
is the profile just containing texlive-fonts-txfonts.

* guix/profiles.scm (texlive-configuration): Check that the texmf.cnf file
exists before trying to change it.

5 years agognu: z3: Update to 4.8.4.
Amin Bandali [Fri, 11 Jan 2019 23:13:53 +0000 (18:13 -0500)]
gnu: z3: Update to 4.8.4.

* gnu/packages/maths.scm (z3): Update to 4.8.4.

Signed-off-by: Leo Famulari <leo@famulari.name>
5 years agognu: xpra: Update to 2.4.3.
Rutger Helling [Fri, 18 Jan 2019 14:27:14 +0000 (15:27 +0100)]
gnu: xpra: Update to 2.4.3.

* gnu/packages/xorg.scm (xpra): Update to 2.4.3.

5 years agognu: stress-make: Fix glob configuration.
Eric Bavier [Fri, 18 Jan 2019 06:30:28 +0000 (00:30 -0600)]
gnu: stress-make: Fix glob configuration.

* gnu/packages/debug.scm (stress-make)[arguments]: Adopt configure cache value
"make_cv_sys_gnu_glob=yes" from gnu-make package.

5 years agognu: emacs-matrix-client: Update to 2a95a1f.
Nicolas Goaziou [Thu, 17 Jan 2019 21:49:12 +0000 (22:49 +0100)]
gnu: emacs-matrix-client: Update to 2a95a1f.

* gnu/packages/emacs-xyz.scm (emacs-matrix-client): Update to 2a95a1f.
[propagated-inputs]: Add `emacs-anaphora'.

5 years agognu: Add emacs-anaphora.
Nicolas Goaziou [Thu, 17 Jan 2019 21:48:48 +0000 (22:48 +0100)]
gnu: Add emacs-anaphora.

* gnu/packages/emacs-xyz.scm (emacs-anaphora): New variable.

5 years agognu: electron-cash: Update to 3.3.4.
Vagrant Cascadian [Wed, 16 Jan 2019 23:39:00 +0000 (15:39 -0800)]
gnu: electron-cash: Update to 3.3.4.

* gnu/packages/finance.scm (electron-cash): Update to 3.3.4.

Signed-off-by: Leo Famulari <leo@famulari.name>
5 years agognu: linux-libre: Update to 4.20.3.
Mark H Weaver [Thu, 17 Jan 2019 21:11:35 +0000 (16:11 -0500)]
gnu: linux-libre: Update to 4.20.3.

* gnu/packages/linux.scm (%linux-libre-version): Update to 4.20.3.
(%linux-libre-hash): Update hash.

5 years agognu: linux-libre@4.19: Update to 4.19.16.
Mark H Weaver [Thu, 17 Jan 2019 21:10:49 +0000 (16:10 -0500)]
gnu: linux-libre@4.19: Update to 4.19.16.

* gnu/packages/linux.scm (%linux-libre-4.19-version): Update to 4.19.16.
(%linux-libre-4.19-hash): Update hash.

5 years agognu: linux-libre@4.14: Update to 4.14.94.
Mark H Weaver [Thu, 17 Jan 2019 21:10:07 +0000 (16:10 -0500)]
gnu: linux-libre@4.14: Update to 4.14.94.

* gnu/packages/linux.scm (%linux-libre-4.14-version): Update to 4.14.94.
(%linux-libre-4.14-hash): Update hash.

5 years agognu: linux-libre@4.9: Update to 4.9.151.
Mark H Weaver [Thu, 17 Jan 2019 21:09:31 +0000 (16:09 -0500)]
gnu: linux-libre@4.9: Update to 4.9.151.

* gnu/packages/linux.scm (linux-libre-4.9): Update to 4.9.151.

5 years agognu: linux-libre@4.4: Update to 4.4.171.
Mark H Weaver [Thu, 17 Jan 2019 21:07:44 +0000 (16:07 -0500)]
gnu: linux-libre@4.4: Update to 4.4.171.

* gnu/packages/linux.scm (linux-libre-4.4): Update to 4.4.171.

5 years agognu: OpenSSH: Fix CVE-2018-20685.
Leo Famulari [Tue, 15 Jan 2019 13:52:52 +0000 (08:52 -0500)]
gnu: OpenSSH: Fix CVE-2018-20685.

* gnu/packages/patches/openssh-CVE-2018-20685.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/ssh.scm (openssh)[source]: Use it.

5 years agoservices: openssh: Add escape hatch.
Ricardo Wurmus [Thu, 17 Jan 2019 16:53:57 +0000 (17:53 +0100)]
services: openssh: Add escape hatch.

* gnu/services/ssh.scm (<openssh-configuration>)[extra-content]: New field.
* doc/guix.texi (Networking Services): Document it.

5 years agognu: ghc-cryptonite: Disable tests.
Ricardo Wurmus [Thu, 17 Jan 2019 16:45:51 +0000 (17:45 +0100)]
gnu: ghc-cryptonite: Disable tests.

* gnu/packages/haskell-crypto.scm (ghc-cryptonite)[arguments]: Disable tests.

5 years agoscripts: Fix typo.
Ricardo Wurmus [Thu, 17 Jan 2019 16:37:44 +0000 (17:37 +0100)]
scripts: Fix typo.

* guix/scripts/download.scm (show-help): Fix typo.

5 years agognu: ghc-8: Patch ghc-pkg for reproducibility.
Ricardo Wurmus [Thu, 17 Jan 2019 08:17:41 +0000 (09:17 +0100)]
gnu: ghc-8: Patch ghc-pkg for reproducibility.

Fixes <https://bugs.gnu.org/33922>.

Co-authored-by: Timothy Sample <samplet@ngyro.com>.
* gnu/packages/haskell.scm (ghc-8)[arguments]: Add build phase
"fix-ghc-pkg-nondeterminism".

5 years agoUpdate 'TODO'.
Mathieu Othacehe [Thu, 17 Jan 2019 13:10:23 +0000 (14:10 +0100)]
Update 'TODO'.

* TODO (Installer): New section.

5 years agoinstaller: Fix manual partitioning.
Ludovic Courtès [Wed, 16 Jan 2019 22:08:20 +0000 (23:08 +0100)]
installer: Fix manual partitioning.

* gnu/installer/newt/partition.scm (run-partioning-page): When METHOD is
'manual, use 'filter-map' on DEVICES, not 'map', since 'disk-new' can
return #f.

5 years agoinstaller: "formating" → "formatting".
Ludovic Courtès [Wed, 16 Jan 2019 18:20:26 +0000 (19:20 +0100)]
installer: "formating" → "formatting".

* gnu/installer/newt/partition.scm,
gnu/installer/parted.scm: Replace "formating" with "formatting".

5 years agoinstaller: Adjust messages on the final page.
Ludovic Courtès [Wed, 16 Jan 2019 17:01:38 +0000 (18:01 +0100)]
installer: Adjust messages on the final page.

* gnu/installer/newt/final.scm (run-config-display-page)
(run-install-success-page, run-install-failed-page): Adjust messages.

5 years agosyscalls: 'device-in-use?' returns #f upon EINVAL.
Ludovic Courtès [Wed, 16 Jan 2019 16:43:52 +0000 (17:43 +0100)]
syscalls: 'device-in-use?' returns #f upon EINVAL.

This mirrors the behavior of the 'fdisk_device_is_used' function of
util-linux.

* guix/build/syscalls.scm (device-in-use?): Return #f upon EINVAL.

5 years agosyscalls: 'device-in-use?' does not create a port.
Ludovic Courtès [Wed, 16 Jan 2019 15:16:24 +0000 (16:16 +0100)]
syscalls: 'device-in-use?' does not create a port.

* guix/build/syscalls.scm (device-in-use?): Use 'open-fdes' rather than
'open-file'.

5 years agoinstaller: partition: Add encryption password confirmation.
Mathieu Othacehe [Sat, 12 Jan 2019 17:45:58 +0000 (18:45 +0100)]
installer: partition: Add encryption password confirmation.

* gnu/installer/newt/partition.scm (prompt-luks-passwords): Add password
confirmation page.

5 years agoinstaller: keymap: Put English layout and international variant ahead.
Mathieu Othacehe [Sat, 12 Jan 2019 17:26:11 +0000 (18:26 +0100)]
installer: keymap: Put English layout and international variant ahead.

* gnu/installer/newt/keymap.scm (sort-layouts): New procedure,
(sort-variants): new procedure,
(run-keymap-page): use the two procedures above to sort layouts and variants.

5 years agoinstaller: Remove debug popup.
Mathieu Othacehe [Sun, 6 Jan 2019 10:11:51 +0000 (11:11 +0100)]
installer: Remove debug popup.

* gnu/installer/newt/partition.scm (run-partioning-page): Remove debug
partition popup.

5 years agoinstaller: welcome: Put "Graphical installer" ahead.
Mathieu Othacehe [Sun, 6 Jan 2019 10:06:51 +0000 (11:06 +0100)]
installer: welcome: Put "Graphical installer" ahead.

* gnu/installer/newt/welcome.scm (run-welcome-page): Propose "Graphical
  install" before shell based install.

5 years agoinstaller: Rename "Ok" buttons to "OK".
Mathieu Othacehe [Sun, 6 Jan 2019 10:04:14 +0000 (11:04 +0100)]
installer: Rename "Ok" buttons to "OK".

* gnu/installer/newt/page.scm: s/Ok/OK/.
* gnu/installer/newt/partition.scm: Ditto.
* gnu/installer/newt/user.scm: Ditto.

5 years agoinstaller: parted: Do not call BLKRRPART on loop devices.
Mathieu Othacehe [Tue, 1 Jan 2019 18:23:21 +0000 (19:23 +0100)]
installer: parted: Do not call BLKRRPART on loop devices.

* gnu/installer/parted.scm (with-delay-device-in-use?): Return immediately if
the file-name passed as argument designates a loop device.

5 years agoinstaller: Various renamins follow-up.
Mathieu Othacehe [Sun, 9 Dec 2018 02:09:43 +0000 (11:09 +0900)]
installer: Various renamins follow-up.

s/path/file and s/crypt/encrypt.

* gnu/installer/newt/partition.scm: Apply renamings.
* gnu/installer/parted.scm: Ditto.

5 years agoinstaller: Various renamings.
Mathieu Othacehe [Sat, 8 Dec 2018 14:52:13 +0000 (23:52 +0900)]
installer: Various renamings.

1. s/partitionment/partitioning/
2. s/crypted/encrypted/

* gnu/installer.scm (installer-steps): Apply renamings.
* gnu/installer/newt/partition.scm (run-disk-page): ditto,
* gnu/installer/parted.scm (auto-partition): ditto,
(luks-format-and-open): ditto,
(luks-close): ditto,
(user-partitions->configuration): ditto.

5 years agoinstaller: parted: Use read-luks-partition-uuid instead of
Mathieu Othacehe [Sat, 8 Dec 2018 14:36:07 +0000 (23:36 +0900)]
installer: parted: Use read-luks-partition-uuid instead of
find-partition-by-luks-uuid.

* gnu/installer/parted.scm (user-partition->mapped-device): Replace
read-luks-partition-uuid by find-partition-by-luks-uuid,
(user-partition->file-system): only compute uuid if the partition
is not encrypted.

5 years agofile-systems: Add read-luks-partition-uuid.
Mathieu Othacehe [Sat, 8 Dec 2018 14:32:23 +0000 (23:32 +0900)]
file-systems: Add read-luks-partition-uuid.

Add a specific procedure to read luks partition uuid.

* gnu/build/file-systems.scm (luks-partition-field-reader): New procedure ...
(luks-partition-uuid-predicate): ... used here,
(read-luks-partition-uuid): new exported procedure.

5 years agoinstaller: Clear screen upon exit.
Mathieu Othacehe [Sat, 8 Dec 2018 01:37:56 +0000 (10:37 +0900)]
installer: Clear screen upon exit.

* gnu/installer/newt.scm (exit): Call clear-screen after newt-finish,
(exit-error): ditto.

5 years agoinstaller: partionment: Add encryption support.
Mathieu Othacehe [Fri, 7 Dec 2018 05:04:25 +0000 (14:04 +0900)]
installer: partionment: Add encryption support.

* gnu/installer.scm (set-installer-path): Add cryptsetup.
* gnu/installer/newt/partition.scm (prompt-luks-passwords): New procedure,
(run-partioning-page): Add the possibility to set encryption to "On" on a
partition and choose a label, add a new partition scheme: "Guided - using the
entire disk with encryption", prompt for encryption passwords before
proceeding to formating.
* gnu/installer/parted.scm (<user-partition>)[crypt-label],
[crypt-password]: New fields,
(partition-description): add the encryption label,
(user-partition-description): add an encryption field,
(auto-partition): add two partitioning schemes: entire-crypted-root and
entire-crypted-root-home,
(call-with-luks-key-file): new procedure,
(user-partition-upper-path): new procedure,
(luks-format-and-open): new procedure,
(luks-close): new procedure,
(format-user-partitions): format and open luks partitions before creating
file-system.
(mount-user-partitions): use the path returned by user-partition-upper-path,
(umount-user-partitions): close the luks partitions,
(user-partition->file-system): set device field to label for luks partitions
and to uuid for the rest,
(user-partition->mapped-device): new procedure,
(user-partitions->configuration): add mapped-devices field.

5 years agoinstaller: partition: Fix typo.
Mathieu Othacehe [Thu, 6 Dec 2018 03:08:23 +0000 (12:08 +0900)]
installer: partition: Fix typo.

* gnu/installer/newt/partition.scm (run-disk-page): Fix typo.

5 years agoinstaller: partition: Fix swaping and use syscalls.
Mathieu Othacehe [Thu, 6 Dec 2018 03:05:42 +0000 (12:05 +0900)]
installer: partition: Fix swaping and use syscalls.

* gnu/installer/parted.scm (start-swaping): Remove it,
(stop-swaping): Remove it,
(start-swapping): New procedure using swapon syscall,
(stop-swapping): New procedure using swapoff syscall,
(with-mounted-partitions): Use previous start-swapping and stop-swapping
procedures.

5 years agoinstaller: menu: Fix typo.
Mathieu Othacehe [Thu, 6 Dec 2018 02:47:52 +0000 (11:47 +0900)]
installer: menu: Fix typo.

* gnu/installer/newt/menu.scm (run-menu-page): Fix typo.

5 years agoinstaller: partition: Precise when using Manual/Guided partionment.
Mathieu Othacehe [Thu, 6 Dec 2018 02:42:45 +0000 (11:42 +0900)]
installer: partition: Precise when using Manual/Guided partionment.

* gnu/installer/newt/partition.scm (run-disk-page)[guided?]: New argument.
Use guided? to determine if we are proceeding to a guided or a manuel
partitioning and precise it the title and info-text.

5 years agoinstaller: Display an eventual backtrace in a page.
Mathieu Othacehe [Thu, 6 Dec 2018 02:11:04 +0000 (11:11 +0900)]
installer: Display an eventual backtrace in a page.

* gnu/installer.scm (installer-program): Write the backtrace in
"/tmp/last-installer-error" and pass the filename to installer-exit-error.
* gnu/installer/newt.scm (exit-error): Display the file passed above in a textbox.

5 years agoinstaller: Make exit button optional for run-file-textbox-page.
Mathieu Othacehe [Thu, 6 Dec 2018 02:00:43 +0000 (11:00 +0900)]
installer: Make exit button optional for run-file-textbox-page.

* gnu/installer/newt/page.scm (run-file-textbox-page)[exit-button?]: New argument.

5 years agoinstaller: Make sure every sentence is dot terminated.
Mathieu Othacehe [Wed, 5 Dec 2018 13:08:33 +0000 (22:08 +0900)]
installer: Make sure every sentence is dot terminated.

gnu/installer/newt/hostname.scm: Finish sentences by a dot.
gnu/installer/newt/network.scm: Ditto.
gnu/installer/newt/page.scm: Ditto.
gnu/installer/newt/partition.scm: Ditto.
gnu/installer/newt/user.scm: Ditto.
gnu/installer/newt/wifi.scm: Ditto.

5 years agoinstaller: partition: Differenciate Back button from Exit button.
Mathieu Othacehe [Wed, 5 Dec 2018 13:00:15 +0000 (22:00 +0900)]
installer: partition: Differenciate Back button from Exit button.

* gnu/installer/newt/partition.scm (run-label-page): Pass the button text as
an argument,
(run-disk-page): Call run-label-page with the appropriate button text.

5 years agoinstaller: network: Do not show an empty technology list.
Mathieu Othacehe [Wed, 5 Dec 2018 12:58:26 +0000 (21:58 +0900)]
installer: network: Do not show an empty technology list.

If no technology is detected, ask the user if he prefers to continue or to
exit the installer.

* gnu/installer/newt/network.scm (run-technology-page): Run a choice-window if
technology-items procedure returns an empty list.