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.
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.
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.
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>
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>
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'.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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".
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'.
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.
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.
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.
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.
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.
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.
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/*.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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".
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.
Ricardo Wurmus [Thu, 6 Dec 2018 06:23:22 +0000 (07:23 +0100)]
gnu: Add libnfs.
* gnu/packages/file-systems.scm (libnfs): New variable.
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.
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.
Ricardo Wurmus [Mon, 6 Aug 2018 14:44:43 +0000 (16:44 +0200)]
gnu: Add libdazzle.
* gnu/packages/gnome.scm (libdazzle): New variable.
Ricardo Wurmus [Sun, 5 Aug 2018 13:51:44 +0000 (15:51 +0200)]
gnu: Add libimobiledevice.
* gnu/packages/libusb.scm (libimobiledevice): New variable.
Ricardo Wurmus [Sun, 5 Aug 2018 13:50:56 +0000 (15:50 +0200)]
gnu: Add libusbmuxd.
* gnu/packages/libusb.scm (libusbmuxd): New variable.
Ricardo Wurmus [Sun, 5 Aug 2018 13:50:23 +0000 (15:50 +0200)]
gnu: Add libplist.
* gnu/packages/libusb.scm (libplist): New variable.
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.
Ricardo Wurmus [Sun, 5 Aug 2018 11:02:39 +0000 (13:02 +0200)]
gnu: Add umockdev.
* gnu/packages/check.scm (umockdev): New variable.
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.
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.
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.
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.
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.
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>
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.
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.
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'.
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.
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>
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.
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.
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.
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.
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.
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.
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.
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.
Ricardo Wurmus [Thu, 17 Jan 2019 16:37:44 +0000 (17:37 +0100)]
scripts: Fix typo.
* guix/scripts/download.scm (show-help): Fix typo.
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".
Mathieu Othacehe [Thu, 17 Jan 2019 13:10:23 +0000 (14:10 +0100)]
Update 'TODO'.
* TODO (Installer): New section.
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.
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".
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.
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.
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'.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.