Commit graph

57519 commits

Author SHA1 Message Date
Ludovic Courtès bec3474107
ui: 'show-what-to-build' returns true when there are grafts to build.
* guix/ui.scm (show-what-to-build): Distinguish between 'build/full' and
'build'.  Return true whe 'build/full' is non-empty, thus taking grafts
into account.
2020-03-22 12:42:52 +01:00
Ludovic Courtès a0f480d623
guix system: Use 'with-build-handler'.
* guix/scripts/system.scm (reinstall-bootloader): Remove call to
'show-what-to-build*'.
(perform-action): Call 'build-derivations' instead of 'maybe-build'.
(process-action): Wrap 'run-with-store' in 'with-build-handler'.
2020-03-22 12:42:51 +01:00
Ludovic Courtès 65ffb9388c
guix package, pull: Use 'with-build-handler'.
* guix/scripts/package.scm (build-and-use-profile): Remove #:dry-run?
and #:use-substitutes?.  Remove call to 'show-what-to-build' and
'dry-run?' special case.
(process-actions): Adjust accordingly.
(guix-package*): Wrap 'parameterize' in 'with-build-handler'.
* guix/scripts/pull.scm (build-and-install): Remove #:use-substitutes?
and #:dry-run? and adjust 'update-profile' call accordingly.  Remove
'dry-run?' conditional.
(guix-pull): Wrap body in 'with-build-handler'.
2020-03-22 12:42:51 +01:00
Ludovic Courtès 5f5e9a5cd6
pack: Use 'with-build-handler'.
* guix/scripts/pack.scm (guix-pack): Wrap 'parameterize' in
'with-build-handler'.  Remove explicit call to 'show-what-to-build'.
Call 'build-derivations' regardless of whether OPTS contains 'dry-run?'.
2020-03-22 12:42:51 +01:00
Ludovic Courtès bdda46a67d
deploy: Use 'with-build-handler'.
Until now, 'guix deploy' would never display what is going to be built.

* guix/scripts/deploy.scm (guix-deploy): Wrap 'for-each' in
'with-build-handler'.
2020-03-22 12:42:51 +01:00
Ludovic Courtès 62195b9a8f
guix build: Use 'with-build-handler'.
Fixes <https://bugs.gnu.org/28310>.
Reported by Andreas Enge <andreas@enge.fr>.

* guix/scripts/build.scm (guix-build): Wrap 'parameterize' in
'with-build-handler'.  Remove explicit call to 'show-what-to-build'.
Call 'build-derivations' regardless of whether OPTS contains 'dry-run?'.
2020-03-22 12:42:51 +01:00
Ludovic Courtès 07ce23e011
ui: Add a notification build handler.
* guix/ui.scm (build-notifier): New variable.
2020-03-22 12:42:51 +01:00
Ludovic Courtès 041b340da4
store: Add 'with-build-handler'.
* guix/store.scm (current-build-prompt): New variable.
(call-with-build-handler, invoke-build-handler): New procedures.
(with-build-handler): New macro.
* tests/store.scm ("with-build-handler"): New test.
2020-03-22 12:42:51 +01:00
Ludovic Courtès 9a067fe7ee
syscalls: 'with-file-lock' re-grabs lock when reentering its dynamic extent.
* guix/build/syscalls.scm (call-with-file-lock)
(call-with-file-lock/no-wait): Initialize PORT in the 'dynamic-wind'
"in" handler.  This allows us to re-enter a captured continuation and
have the lock grabbed anew.
2020-03-22 12:42:51 +01:00
Mathieu Othacehe 1550db6fd4
tests: install: Abort when one installation step fails.
When marionette-eval calls fail in gui-test-program, the installation
continues which results in two scenarios:

- hang forever at the next marionette-eval call,

- keep going and start a broken installation, which is annoying because it
clears the terminal and hides the error.

Make sure that gui-test-program is exited with #f return code when one of the
marionette-eval calls fail.

* gnu/tests/install.scm (gui-test-program): Add a new macro
"marionette-eval*". Throw an exception when one on the marionette-eval calls
fail.
2020-03-22 10:53:55 +01:00
Efraim Flashner e64ea84392
gnu: python-bleach: Update to 3.1.3 (fixes CVE-2020-6816).
* gnu/packages/python-xyz.scm (python-bleach): Update to 3.1.3.
[native-inputs]: Remove python-pytest-runner2. Add python-datrie,
python-genshi, python-lxml.
[home-page]: Update to new home-page.
2020-03-22 10:39:08 +02:00
Efraim Flashner 34bf3ed26b
gnu: Add python-block-tracing.
* gnu/packages/python-xyz.scm (python-block-tracing): New variable.
2020-03-22 09:58:29 +02:00
Efraim Flashner 0a124c4615
gnu: Add python-privy.
* gnu/packages/python-crypto.scm (python-privy): New variable.
2020-03-22 09:58:29 +02:00
Efraim Flashner 0831063778
gnu: Add python-argon2-cffi.
* gnu/packages/python-crypto.scm (python-argon2-cffi): New variable.
2020-03-22 09:58:28 +02:00
Efraim Flashner 24200bdf9d
gnu: Add python-userspacefs.
* gnu/packages/python-xyz.scm (python-userspacefs): New variable.
2020-03-22 09:58:28 +02:00
Efraim Flashner 2eb09a5cfd
gnu: Add python-fusepyng.
* gnu/packages/python-xyz.scm (python-fusepyng): New variable.
2020-03-22 09:58:28 +02:00
Efraim Flashner 9a684b4078
gnu: Add python-keyrings.alt.
* gnu/packages/python-crypto.scm (python-keyring.alt): New variable.
2020-03-22 09:58:28 +02:00
Efraim Flashner 10d3fbf051
gnu: edirect: Install more programs.
* gnu/packages/bioinformatics.scm (edirect)[arguments]: Add
'patch-programs phase to work around not finding binaries in the PATH.
Rewrite 'install phase to install many more scripts. Rewrite
'wrap-program to wrap more scripts with more programs.
[inputs]: Add edirect-go-programs.
[native-search-paths]: New field.
2020-03-22 09:53:57 +02:00
Efraim Flashner 7d13a94215
gnu: Add edirect-go-programs.
* gnu/packages/bioinformatics.scm (edirect-go-programs): New variable.
(edirect)[source]: Adjust snippet to not use non-free software.
2020-03-22 09:53:57 +02:00
Efraim Flashner 073c64dc79
gnu: Add go-github-com-surgebase-porter2.
* gnu/packages/golang.scm (go-github-com-surgebase-porter2): New variable.
2020-03-22 09:53:57 +02:00
Efraim Flashner 62cfb49159
gnu: Add go-github-com-surge-glog.
* gnu/packages/golang.scm (go-github-com-surge-glog): New variable.
2020-03-22 09:53:56 +02:00
Efraim Flashner 03baf02e6f
gnu: Add go-github-com-pbnjay-memory.
* gnu/packages/golang.scm (go-github-com-pbnjay-memory): New variable.
2020-03-22 09:53:56 +02:00
Efraim Flashner cb38099839
gnu: Add go-github-com-klauspost-cpuid.
* gnu/packages/golang.scm (go-github-com-klauspost-cpuid): New variable.
2020-03-22 09:53:56 +02:00
Efraim Flashner 44b9e8fd8f
gnu: Add go-github-com-gedex-inflector.
* gnu/packages/golang.scm (go-github-com-gedex-inflector): New variable.
2020-03-22 09:12:50 +02:00
Efraim Flashner 40c86b39c3
gnu: Add go-github-com-fogleman-gg.
* gnu/packages/golang.scm (go-github-com-fogleman-gg): New variable.
2020-03-22 09:12:49 +02:00
Efraim Flashner ae863ccd63
gnu: Add go-github-com-golang-freetype.
* gnu/packages/golang.scm (go-github-com-golang-freetype): New variable.
2020-03-22 09:12:49 +02:00
Efraim Flashner 3770bd6526
gnu: Add go-golang-org-rainycape-unidecode.
* gnu/packages/golang.scm (go-golang-org-rainycape-unidecode): New variable.
2020-03-22 09:12:49 +02:00
Efraim Flashner 2573709cc9
gnu: Add go-golang-org-x-image.
* gnu/packages/golang.scm (go-golang-org-x-image): New variable.
2020-03-22 09:12:49 +02:00
Efraim Flashner 405c0c947c
services: Add fontconfig-file-system-service.
* gnu/services/desktop.scm (%fontconfig-file-system,
fontconfig-file-system-service): New variables.
(%desktop-services): Add fontconfig-file-system-service.
2020-03-22 09:08:11 +02:00
pinoaffe@airmail.cc 6f3475655a
gnu: cutter: Update to 1.10.1.
* gnu/packages/engineering.scm (cutter): Update to 1.10.1.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-03-22 00:02:24 +01:00
pinoaffe@airmail.cc fcc10cb2cb
gnu: radare2: Update to 4.2.1.
* gnu/packages/engineering.scm (radare2): Update to 4.2.1.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-03-22 00:02:24 +01:00
Damien Cassou f5e0634431
gnu: clipmenu: Improve the package definition
* gnu/packages/xdisorg.scm (clipmenu): Add the package's unit-tests to the
check phase.  Wrap the program so the PATH contains all dependencies. The
previous approach to patch the script was incomplete and more complex.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-03-22 00:02:23 +01:00
Damien Cassou fb2709ef98
gnu: clipnotify: Comment on the lack of a test suite.
* gnu/packages/xdisorg.scm (clipnotify): Add a comment

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-03-22 00:02:23 +01:00
Damien Cassou 08df188ea8
gnu: clipmenu: Re-indent.
* gnu/packages/xdisorg.scm (clipmenu): Re-indent

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-03-22 00:02:23 +01:00
Ludovic Courtès e69b8bbae9
guix-install.sh: /etc/profile.d/guix.sh sources ~/.guix-profile/etc/profile.
* etc/guix-install.sh (sys_create_init_profile): Source
~/.guix-profile/etc/profile instead of running 'guix package
--search-paths=prefix'
2020-03-22 00:02:23 +01:00
Ludovic Courtès 3c69701f97
guix-install.sh: Add a trailing colon to 'INFOPATH'.
Fixes <https://bugs.gnu.org/39984>.
Suggested by Adam Porter <adam@alphapapa.net>.

* etc/guix-install.sh (sys_create_init_profile): Add a trailing colon to
'INFOPATH'.
2020-03-22 00:02:23 +01:00
Ludovic Courtès 4a6ec23a97
download: Delete the output file upon failure.
This allows ENOSPC conditions to be properly reported as such rather
than as a hash mismatch due to the availability of a truncated file.

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

* guix/build/download.scm (url-fetch): In the failure case, delete FILE.
2020-03-22 00:02:23 +01:00
Alexandros Theodotou 70236bae9e
gnu: Add dragonfly-reverb
* gnu/packages/music.scm (dragonfly-reverb): New variable.
2020-03-21 21:52:53 +01:00
Mark H Weaver ee4c927f33
gnu: linux-libre: Update to 5.4.27.
* gnu/packages/linux.scm (linux-libre-5.4-version): Update to 5.4.27.
(linux-libre-5.4-pristine-source): Update hash.
2020-03-21 16:38:06 -04:00
Mark H Weaver 0d624f1fd8
gnu: linux-libre@4.19: Update to 4.19.112.
* gnu/packages/linux.scm (linux-libre-4.19-version): Update to 4.19.112.
(linux-libre-4.19-pristine-source): Update hash.
2020-03-21 16:38:04 -04:00
Mark H Weaver f120eab056
gnu: linux-libre@4.14: Update to 4.14.174.
* gnu/packages/linux.scm (linux-libre-4.14-version): Update to 4.14.174.
(linux-libre-4.14-pristine-source): Update hash.
2020-03-21 16:38:02 -04:00
Mark H Weaver 3e13d780b8
gnu: linux-libre@4.9: Update to 4.9.217.
* gnu/packages/linux.scm (linux-libre-4.9-version): Update to 4.9.217.
(linux-libre-4.9-pristine-source): Update hash.
2020-03-21 16:37:59 -04:00
Mark H Weaver d1b3c6c746
gnu: linux-libre@4.4: Update to 4.4.217.
* gnu/packages/linux.scm (linux-libre-4.4-version): Update to 4.4.217.
(linux-libre-4.4-pristine-source): Update hash.
2020-03-21 16:37:57 -04:00
John Soo 08c62ac7bd
gnu: ghc-stylish-haskell: Deprecate older duplicate package.
* gnu/packages/haskell-xyz.scm (ghc-stylish-haskell): Deprecate it.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2020-03-21 21:38:08 +01:00
John Soo 156b08bd2f
gnu: stylish-haskell: Update description.
* gnu/packages/haskell-apps.scm (stylish-haskell): Update description.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2020-03-21 21:38:08 +01:00
Wiktor Żelazny 3ac12ca61b
gnu: Add r-oai.
* gnu/packages/cran.scm (r-oai): new variable.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2020-03-21 21:38:08 +01:00
Wiktor Żelazny 069554dc24
gnu: Add r-latex2exp.
* gnu/packages/cran.scm (r-latex2exp): new variable.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2020-03-21 21:38:08 +01:00
Wiktor Żelazny ae10511981
gnu: Add r-httpcode.
* gnu/packages/cran.scm (r-httpcode): New variable.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2020-03-21 21:38:08 +01:00
wednesday 2e59a63b41
gnu: global: Add 'python-wrapper' as input.
* gnu/packages/code.scm (global)[inputs]: Add 'python-wrapper' to fix
tagging python code.
2020-03-21 21:38:08 +01:00
Marius Bakke 18401bdf69
Revert "gnu: Remove qemu-minimal@2.10."
This package was still in use by american-fuzzy-lop.

This reverts commit 559f373288.
2020-03-21 21:38:08 +01:00