Commit graph

37998 commits

Author SHA1 Message Date
Ludovic Courtès 87b711d200
utils: Memoize 'absolute-dirname'.
* guix/utils.scm (absolute-dirname): Wrap in 'mlambda'.
2018-12-19 23:52:25 +01:00
Ludovic Courtès 0b1be8fd57
packages: Turn 'cache!' into a single-value-return cache.
* guix/packages.scm (cache!): Assume THUNK returns a single value.
(cached): Likewise.
2018-12-19 23:52:24 +01:00
Ludovic Courtès b334674fe5
Use 'mapm' instead of 'sequence' + 'map'.
Previously we'd use the (sequence M (map P L)) idiom just because 'mapm'
was slower (not specialized for the given monad).  This is no longer the
case since commit dcb95c1fc9.

* guix/gexp.scm (lower-inputs): Use (mapm M P L) instead of (sequence
M (map P L)).
(lower-references, gexp->sexp, imported-files): Likewise.
* guix/profiles.scm (profile-derivation): Likewise.
* guix/scripts/environment.scm (inputs->requisites): Likewise.
* guix/scripts/system.scm (copy-closure): Likewise.
2018-12-19 23:52:24 +01:00
Ludovic Courtès 73b0ebdd5e
store: Add 'GUIX_PROFILING' support for the object cache.
* guix/store.scm (profiled?): New procedure.
(record-operation): Use it.
(record-cache-lookup!): New procedure.
(lookup-cached-object): Use it.
2018-12-19 23:52:24 +01:00
Nicolas Goaziou 207a79b2fe
gnu: python-duniterpy: Improve description.
* gnu/packages/finance.scm (python-duniterpy)[description]: Expound features
  to match list in homepage.
2018-12-19 23:49:46 +01:00
Nicolas Goaziou 42a57df874
gnu: python-duniterpy: Build documentation.
* gnu/packages/finance.scm (python-duniterpy)[arguments]: Build and install
  documentation.
2018-12-19 23:49:15 +01:00
Nicolas Goaziou 4b3d6b899f
gnu: python-duniterpy: Update to 0.51.0.
* gnu/packages/finance.scm (python-duniterpy): Update to 0.51.0.
2018-12-19 23:48:13 +01:00
Ricardo Wurmus 80eebee9f7
ui: Report profile hooks separately.
* guix/ui.scm (profile-hook-derivation?): New procedure.
(show-what-to-build): Distinguish among BUILD derivations that match
'profile-hook-derivation?'.  Report them separately.
* guix/status.scm (hook-message): New procedure.
(print-build-event): Display profile hooks with readable hook name.
* guix/profiles.scm (info-dir-file, ghc-package-cache-file,
ca-certificate-bundle, glib-schemas, gtk-icon-themes, gtk-im-modules,
xdg-desktop-database, xdg-mime-database, fonts-dir-file, manual-database):
Augment derivation with "type" and "hook" properties.
2018-12-19 23:46:38 +01:00
Oleg Pykhalov 0485717ee9
services: zabbix-front-end: Improve hint and error messages.
* gnu/services/monitoring.scm (zabbix-front-end-config): Improve hint and
error messages.
2018-12-19 21:15:12 +03:00
Hartmut Goebel 9a50cedc6b
gnu: plasma-framework: Fix build.
* gnu/packages/plasma-framework.scm (plasma-framework)[inputs]: Add
  qtquickcontrols2.
2018-12-19 18:54:56 +01:00
Christopher Lemmer Webber af8c90e862
stumpwm: Add comment saying patch can be removed in next release.
* gnu/packages/lisp.scm (stumpwm): Add comment saying patch can be removed in
  next release.
2018-12-19 09:47:52 -05:00
Pierre Langlois dba83d7d14
gnu: stumpwm: Fix gnew command.
The new release of StumpWM broken the interactive 'gnew' command.  It was
fixed upstream [0] and will be part of the next release.

0: https://github.com/stumpwm/stumpwm/pull/538

* gnu/packages/patches/stumpwm-fix-broken-read-one-line.patch: New file.
* gnu/packages/lisp.scm (stumpwm)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Register it.
2018-12-19 09:45:39 -05:00
Alex Vong 38abef124b
gnu: sqlite: Replace with 3.26.0 [security fixes].
Fixes <https://bugs.gnu.org/33751>.
Reported by Marius Bakke <mbakke@fastmail.com>.

* gnu/packages/databases.scm (sqlite-3.26.0): New public variable.
(sqlite)[replacement]: Use it.
(sqlite-with-fts5): Use 'package/inherit'.
(sqlite-with-column-metadata): Likewise.

Modified-by: Mark H Weaver <mhw@netris.org>
2018-12-18 20:20:16 -05:00
Ludovic Courtès a934e9fc1c
vm: Re-enable KVM on i386.
The workaround is apparently no longer needed with Linux-libre 4.19.2
in the host.

* gnu/build/vm.scm (load-in-linux-vm): Remove special case for
"qemu-system-i386", thereby re-enabling KVM.
2018-12-19 00:14:00 +01:00
Ludovic Courtès 439a4c7511
gnu: guix: Update to 5de5f81.
* gnu/packages/package-management.scm (guix): Update to 5de5f81.
2018-12-19 00:14:00 +01:00
Alex Kost bc7743b99e
gnu: emacs-build-farm: Update to 0.2.2.
* gnu/packages/emacs.scm (emacs-build-farm): Update to 0.2.2.
2018-12-19 00:33:05 +03:00
Alex Kost c7d67b894c
gnu: emacs-bui: Update to 1.2.1.
* gnu/packages/emacs.scm (emacs-bui): Update to 1.2.1.
2018-12-19 00:33:05 +03:00
Julien Lepiller 34d5314e9c
gnu: ocaml-lambda-term: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-lambda-term): Use dune-build-system.
2018-12-18 22:17:12 +01:00
Julien Lepiller 426e629e0c
gnu: ocaml-camomile: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-camomile): Use dune-build-system.
2018-12-18 22:16:57 +01:00
Julien Lepiller d6fa189eef
gnu: ocaml-re: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-re): Use dune-build-system.
2018-12-18 22:16:55 +01:00
Julien Lepiller 48b27902de
gnu: ocaml-cppo: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-cppo): Use dune-build-system.
2018-12-18 22:16:52 +01:00
Julien Lepiller 5d0712638f
gnu: ocaml-lwt-log: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-lwt-log): Use dune-build-system.
2018-12-18 22:16:50 +01:00
Julien Lepiller f880b03bca
gnu: ocaml-lwt: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-lwt): Use dune-build-system.
2018-12-18 22:16:48 +01:00
Julien Lepiller f93246a541
gnu: ocaml-bitstring: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-bitstring): Use dune-build-system.
(ocaml4.02-bitstring)[build-system]: Use ocaml-build-system explicitly.
2018-12-18 22:16:45 +01:00
Julien Lepiller 59fa09e1cd
gnu: ocaml-ppx-tools-versioned: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-ppx-tools-versioned): Use
dune-build-system.  Remove duplicate definition.
2018-12-18 22:16:41 +01:00
Julien Lepiller effc8325a5
gnu: ocaml-migrate-parsetree: Use dune-build-system.
* gnu/packages/ocaml.scm (ocaml-migrate-parsetree): Use
dune-build-system.
2018-12-18 22:16:37 +01:00
Julien Lepiller 6e8986c838
build: Add dune-build-system.
* guix/build/dune-build-system.scm,
  guix/build-system/dune.scm: New files.
* Makefile.am (MODULES): Add them.
* doc/guix.texi (Build Systems): Document dune-build-system.
* guix/build-system/ocaml.scm (lower, default-findlib, default-ocaml): Export
them.
(package-with-explicit-ocaml): Also transform packages built with
dune-build-system.
2018-12-18 22:16:23 +01:00
Nam Nguyen d852cf9e33
gnu: Add sct.
* gnu/packages/xdisorg.scm (sct): New variable.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
2018-12-18 17:23:39 +01:00
Ludovic Courtès 5de5f81845
file-systems: Have the emergency REPL output to /dev/console.
This fixes a bug whereby all emergency REPL output would go to /dev/klog
and thus, each line would be prefixed by "[12324.432] shepherd[1]: ".

* gnu/build/file-systems.scm (check-file-system): Wrap 'start-repl' call
in 'with-output-to-file'.
2018-12-18 16:04:26 +01:00
Ludovic Courtès 6ea6e1476f
file-systems: Spawn a REPL only when interaction is possible.
Fixes <https://bugs.gnu.org/23697>.
Reported by Jan Nieuwenhuizen <janneke@gnu.org>.

* gnu/build/file-systems.scm (check-file-system): Call 'start-repl' only
if current-input-port passes 'isatty?'.
* gnu/services/shepherd.scm (shepherd-configuration-file): After
'for-each' expression, call 'redirect-port'.
* gnu/tests/base.scm (run-basic-test)["stdin is /dev/null"]: New test.
2018-12-18 16:04:26 +01:00
Ludovic Courtès 65c8a04370
doc: Remove stale reference to 'hydra.gnu.org'.
Reported by Thomas Schmitt <scdbackup@gmx.net>.

* doc/guix.texi (Binary Installation): Refer to SUBSTITUTE-SERVER, not
to 'hydra.gnu.org'.
2018-12-18 16:04:25 +01:00
swedebugia bd5a81f9b8
guix system: Clarify the three strategies available.
* guix/scripts/system.scm (show-help): Clarify the three choices.
* doc/guix.texi (Invoking guix system): Add 3 @cindex to make on-error=strategy
easier to find.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2018-12-18 16:04:25 +01:00
Ludovic Courtès 4d55431d89
doc: Fix typo in '.guix-channel' example.
* doc/guix.texi (Channels): Remove extra quote in '.guix-channel'
example.
2018-12-18 16:04:25 +01:00
Timothy Sample 6616a35202
ui: Report file names in 'system-error' exceptions from 'execlp'.
Fixes <https://bugs.gnu.org/33755>.

* guix/ui.scm (apply-formals): New macro.
(execlp): New error-reporting wrapper.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2018-12-18 16:04:25 +01:00
Rutger Helling 83d4da1211
gnu: libostree: Update to 2018.9.1.
* gnu/packages/package-management.scm (libostree): Update to 2018.9.1.
2018-12-18 14:53:43 +01:00
Jelle Licht b8d5fbd86f
doc: Replace 'https-port' with 'listen' in nginx php example.
* doc/guix.texi (Web Services): Update accordingly.
2018-12-18 14:50:47 +01:00
Jelle Licht 232cc1001d
gnu: emacs-daemons: Update to 2.0.0.
* gnu/packages/emacs.scm (emacs-daemons): Update to 2.0.0.
2018-12-18 11:34:41 +01:00
Pierre Neidhardt ad01ab1610
gnu: emacs-helpful: Update to 0.15.
* gnu/packages/emacs.scm (emacs-helpful): Update to 0.15.
2018-12-18 10:40:54 +01:00
Pierre Neidhardt 809b959680
gnu: emacs-evil-collection: Update to 20181218.
* gnu/packages/emacs.scm (emacs-evil-collection): Update to 20181218.
2018-12-18 09:33:05 +01:00
Rutger Helling c340d8dc74
gnu: git: Update to 2.20.1.
* gnu/packages/version-control.scm (git): Update to 2.20.1.
2018-12-18 09:26:17 +01:00
Arun Isaac 01cb4d4757
gnu: ansible: Work around issues with Guix wrapper scripts.
* gnu/packages/admin.scm (ansible)[source]: Remove
ansible-wrap-program-hack.patch from patches.
[arguments]: Add hide-wrapping and fix-symlinks phases.
* gnu/packages/patches/ansible-wrap-program-hack.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Unregister it.
2018-12-18 11:20:56 +05:30
Mark H Weaver 6a9659f5d8
gnu: linux-libre: Update to 4.19.10.
* gnu/packages/linux.scm (%linux-libre-version): Update to 4.19.10.
(%linux-libre-hash): Update hash.
2018-12-17 23:36:03 -05:00
Mark H Weaver ce146a872c
gnu: linux-libre@4.14: Update to 4.14.89.
* gnu/packages/linux.scm (%linux-libre-4.14-version): Update to 4.14.89.
(%linux-libre-4.14-hash): Update hash.
2018-12-17 23:35:13 -05:00
Mark H Weaver 42159e76e2
gnu: linux-libre@4.9: Update to 4.9.146.
* gnu/packages/linux.scm (linux-libre-4.9): Update to 4.9.146.
2018-12-17 23:34:34 -05:00
Mark H Weaver c15ba0dbf1
gnu: linux-libre@4.4: Update to 4.4.168.
* gnu/packages/linux.scm (linux-libre-4.4): Update to 4.4.168.
2018-12-17 23:33:55 -05:00
Leo Famulari ed411eb2b8
gnu: RawTherapee: Update to 5.5.
* gnu/packages/photo.scm (rawtherapee): Update to 5.5.
2018-12-17 19:58:44 -05:00
Leo Famulari 997aa1af99
gnu: WebKitGTK+ 2.22: Update to 2.22.5 [fixes CVE-2018-4437].
* gnu/packages/webkit.scm (webkitgtk-2.22): Update to 2.22.5.
2018-12-17 18:21:43 -05:00
Ludovic Courtès 9b9de08477
publish: Add a 'Cache-Control' header on /nar responses.
Fixes <https://bugs.gnu.org/33721>.
Reported by Chris Marusich <cmmarusich@gmail.com>.

* guix/scripts/publish.scm (render-nar/cached): Add #:ttl and honor it.
(make-request-handler): Pass #:ttl to 'render-nar/cached'.
* tests/publish.scm ("with cache, uncompressed"): Pass "--ttl=42h" to
'guix publish'.  Check 'Cache-Control' on narinfo response and on nar
response.
2018-12-17 23:33:42 +01:00
Ludovic Courtès a93c160631
environment: Support package transformation options.
Fixes <https://bugs.gnu.org/33776>.
Reported by Adrien Guilbaud <adrien.guilbaud@inria.fr>.

* guix/scripts/environment.scm (show-help): Add call to
'show-transformation-options-help'.
(%options): Add %TRANSFORMATION-OPTIONS.
(options/resolve-packages): Add 'store' parameter.
[transform, package->manifest-entry*]: New procedures.
Use 'package->manifest-entry*' instead of 'package->manifest-entry'.
(guix-environment): Move definition of 'manifest' within 'with-store'.
* tests/guix-environment.sh: Add test.
2018-12-17 23:33:42 +01:00
Ludovic Courtès bafcf1f32f
services: udev: Add 'rules' action.
* gnu/services/base.scm (udev-shepherd-service): Add 'actions' field.
* doc/guix.texi (Base Services): Move "@end deffn" after 'udev-service'
definition.  Mention 'herd rules udev'.
2018-12-17 23:33:42 +01:00