Commit Graph

35277 Commits

Author SHA1 Message Date
Ludovic Courtès 7fed9353ec
tests: Adjust services tests to new 'shepherd-service-upgrade'.
This is a followup to 4245ddcbc9.

* tests/services.scm ("shepherd-service-upgrade: one unchanged, one upgraded, one new")
("shepherd-service-upgrade: service depended on is not unloaded")
("shepherd-service-upgrade: obsolete services that depend on each
other"): Adjust to changes in 'shepherd-service-upgrade'.
2018-09-27 23:58:05 +02:00
Ludovic Courtès d4e9317b9d
tests: Update (guix build store-copy) tests.
This is a followup to a387b0bebb.

* tests/gexp.scm ("gexp->derivation, store copy")
("gexp->derivation #:references-graphs"): Add (guix progress) and (guix
records) to the imported modules.
2018-09-27 23:46:44 +02:00
Ludovic Courtès 240a9c69a6
perform-download: Optionally report a "download-progress" trace.
* guix/scripts/perform-download.scm (perform-download): Add
 #:print-build-trace? and pass it to 'url-fetch'.
(guix-perform-download): Define 'print-build-trace?' and pass it to
'perform-download'.
* guix/build/download.scm (ftp-fetch): Add #:print-build-trace? and
honor it.
(url-fetch): Likewise.
* nix/libstore/builtins.cc (builtinDownload): Set _NIX_OPTIONS
environment variable.
2018-09-27 23:21:53 +02:00
Ludovic Courtès dc0f74e5fc
Add (guix status) and use it for pretty colored output.
* guix/progress.scm (progress-reporter/trace): New procedure.
(%progress-interval): New variable.
(progress-reporter/file): Use it.
* guix/scripts/build.scm (set-build-options-from-command-line): Pass
 #:print-extended-build-trace?.
(%default-options): Add 'print-extended-build-trace?'.
(guix-build): Parameterize CURRENT-TERMINAL-COLUMNS.  Use
'build-status-updater'.
* guix/scripts/environment.scm (%default-options): Add
'print-extended-build-trace?'.
(guix-environment): Wrap body in 'with-status-report'.
* guix/scripts/pack.scm (%default-options): Add 'print-build-trace?' and
'print-extended-build-trace?'.
(guix-pack): Wrap body in 'with-status-report'.
* guix/scripts/package.scm (%default-options, guix-package): Likewise.
* guix/scripts/system.scm (%default-options, guix-system): Likewise.
* guix/scripts/pull.scm (%default-options, guix-pull): Likewise.
* guix/scripts/substitute.scm (progress-report-port): Don't call STOP
when TOTAL is zero.
(process-substitution): Add #:print-build-trace? and honor it.
(guix-substitute)[print-build-trace?]: New variable.
Pass #:print-build-trace? to 'process-substitution'.
* guix/status.scm: New file.
* guix/store.scm (set-build-options): Add #:print-extended-build-trace?;
pass it into PAIRS.
(%protocol-version): Bump.
(protocol-version, nix-server-version): New procedures.
(current-store-protocol-version): New variable.
(with-store, build-things): Parameterize it.
* guix/ui.scm (build-output-port): Remove.
(colorize-string): Export.
* po/guix/POTFILES.in: Add guix/status.scm.
* tests/status.scm: New file.
* Makefile.am (SCM_TESTS): Add it.
* nix/libstore/worker-protocol.hh (PROTOCOL_VERSION): Bump to 0x162.
* nix/libstore/build.cc (DerivationGoal::registerOutputs)
(SubstitutionGoal::finished): Print a "@ hash-mismatch" trace before
throwing.
2018-09-27 23:21:53 +02:00
Ludovic Courtès fe65b559a6
progress: Add 'display-download-progress'.
* guix/progress.scm (display-download-progress): New procedure.
(progress-reporter/file)[render]: Rewrite in terms of
'display-download-progress'.
2018-09-27 23:21:53 +02:00
Ricardo Wurmus 363d7d6608
gnu: yoshimi: Update to 1.5.9.
* gnu/packages/music.scm (yoshimi): Update to 1.5.9.
2018-09-27 21:52:07 +02:00
Ricardo Wurmus ea1a360199
gnu: emacs-ert-runner: Do not use package name in directory.
* gnu/packages/emacs.scm (emacs-ert-runner)[arguments]: Use the upstream name
instead of the Guix package name in the "install-executable" phase.

This is a follow-up to commit 5c8031ff73.
2018-09-27 20:02:55 +02:00
Ricardo Wurmus de1158d53f
gnu: eolie: Update to 0.9.38.
* gnu/packages/gnome.scm (eolie): Update to 0.9.38.
2018-09-27 19:56:31 +02:00
Mark H Weaver 1d1e4f8f9c
gnu: linux-libre: Update to 4.18.10.
* gnu/packages/linux.scm (%linux-libre-version): Update to 4.18.10.
(%linux-libre-hash): Update hash.
2018-09-27 05:53:46 -04:00
Mark H Weaver e0b6085a7f
gnu: linux-libre@4.14: Update to 4.14.72.
* gnu/packages/linux.scm (%linux-libre-4.14-version): Update to 4.14.72.
(%linux-libre-4.14-hash): Update hash.
2018-09-27 05:52:52 -04:00
Mark H Weaver 202190ec39
gnu: linux-libre@4.9: Update to 4.9.129.
* gnu/packages/linux.scm (linux-libre-4.9): Update to 4.9.129.
2018-09-27 05:52:00 -04:00
Mark H Weaver e07cb04d40
gnu: linux-libre@4.4: Update to 4.4.158.
* gnu/packages/linux.scm (linux-libre-4.4): Update to 4.4.158.
2018-09-27 05:51:20 -04:00
Rutger Helling c4a3ea3885
gnu: mame: Update to 0.202.
* gnu/packages/emulators.scm (mame): Update to 0.202.
2018-09-27 09:51:00 +02:00
Tobias Geerinckx-Rice 428d2ca2ec
gnu: youtube-dl: Update to 2018.09.18.
* gnu/packages/video.scm (youtube-dl): Update to 2018.09.18.
2018-09-27 03:51:07 +02:00
Tobias Geerinckx-Rice b733dbc0fb
gnu: python-setproctitle: Use INVOKE.
* gnu/packages/python.scm (python-setproctitle)[arguments]: Substitute
INVOKE for SYSTEM*.
2018-09-27 03:51:07 +02:00
Tobias Geerinckx-Rice 3d190d6a21
gnu: dico: Update to 2.7.
* gnu/packages/dico.scm (dico): Update to 2.7.
[arguments]: Work around dodgy test in 'check' phase.
2018-09-27 03:51:06 +02:00
Tobias Geerinckx-Rice af44f05af7
gnu: perl-net-dns: Update to 1.18.
* gnu/packages/networking.scm (perl-net-dns): Update to 1.18.
2018-09-27 03:51:06 +02:00
Tobias Geerinckx-Rice 6f52db2455
gnu: perl-catalyst-runtime: Update to 5.90119.
* gnu/packages/web.scm (perl-catalyst-runtime): Update to 5.90119.
2018-09-27 03:51:06 +02:00
Tobias Geerinckx-Rice a9994b2735
gnu: perl-crypt-openssl-rsa: Update to 0.31.
* gnu/packages/tls.scm (perl-crypt-openssl-rsa): Update to 0.31.
2018-09-27 03:51:06 +02:00
Timo Eisenmann e15ede6e28
gnu: enlightenment: Fix initial locale and keyboard selection.
* gnu/packages/enlightenment.scm (enlightenment)[arguments]: In
'set-system-actions', set absolute file name to 'locale' and 'xorg.lst'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2018-09-26 23:40:37 +02:00
Ludovic Courtès 09b7300c01
services: virtual-terminal: Write to "default_utf8" only if necessary.
Fixes a bug in containers whereby 'virtual-terminal' would always fail
to start because writing to /sys/…/default_utf8 would fail with EROFS.

* gnu/services/base.scm (virtual-terminal-service-type): Read from
"default_utf8" before attempting to write to it.
2018-09-26 23:40:37 +02:00
Ludovic Courtès 23784f0c33
services: udev: Don't attempt to read "modules.devname" from a container.
Fixes <https://bugs.gnu.org/32814>.
Reported by Julien Lepiller <julien@lepiller.eu>.

* gnu/services/base.scm (udev-shepherd-service)[start]: Check whether
DIRECTORY exists and skip 'make-static-device-nodes' call if it doesn't.
2018-09-26 23:40:37 +02:00
Ludovic Courtès a56c4eb8f4
services: shepherd: Add workaround for 0.5.0 in containers.
* gnu/services/shepherd.scm (%containerized-shepherd-service): New service.
* gnu/system.scm (essential-services): Use it when CONTAINER? is true.
2018-09-26 23:40:36 +02:00
Ludovic Courtès 6f03b08089
services: dhcp-client: Use 'read-pid-file'.
* gnu/services/networking.scm (dhcp-client-service-type)[start]: Use
'read-pid-file' instead of the custom and possibly infinite loop.
2018-09-26 23:40:36 +02:00
Ludovic Courtès 2a5f2b1f75
gnu: Remove incorrect Emacs package deprecations.
This is a followup to 5c8031ff73.  An
upgrade would wrongfully report things like:

  guix package: package 'emacs-typo' has been superseded by 'emacs-typo'
  guix package: package 'emacs-org-tree-slide' has been superseded by 'emacs-org-tree-slide'
  guix package: package 'emacs-emms' has been superseded by 'emacs-emms'

* gnu/packages/emacs.scm (flycheck, emms, typo, org-tree-slide)
(butler): Remove.
(emacs-emms-mode-line-cycle)[propagated-inputs]: Use EMACS-EMMS instead
of EMMS.
2018-09-26 23:40:36 +02:00
Carlo Zancanaro 4245ddcbc9
guix system: Load all services on reconfigure, not just stopped ones.
This uses the 'replacement' service slot introduced in the Shepherd
version 0.5.0.

* gnu/services/shepherd.scm (shepherd-service-upgrade): Return a list of
  services that need to be restarted to complete their upgrade.
* guix/scripts/system.scm (call-with-service-upgrade-info): Rename an internal
  variable to reflect the change to shepherd-service-upgrade.
  (upgrade-shepherd-services): Call 'load-services/safe' instead of
  'load-services'.  Print a message about services that need to be
  manually restarted.
* gnu/services/herd.scm (load-services/safe): New procedure.
* doc/guix.texi (Invoking guix system): Document the new behaviour.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2018-09-26 23:40:36 +02:00
Ludovic Courtès 9bd85a785f
gnu: shepherd: Update to 0.5.0.
* gnu/packages/admin.scm (shepherd): Update to 0.5.0.
2018-09-26 23:40:36 +02:00
Pierre Neidhardt 0661912827
Fix URL in emacs-magit and emacs-groovy-modes.
* gnu/packages/emacs.scm (emacs-magit)[source]: Fix URL.
* gnu/packages/emacs.scm (emacs-groovy-modes)[source]: Fix URL.
2018-09-26 10:37:51 +02:00
Mark H Weaver fe73352e80
gnu: linux-libre: Enable SHPC PCI Hotplug driver, now built-in only.
Fixes <https://bugs.gnu.org/32840>.

* gnu/packages/aux-files/linux-libre/4.18-x86_64.conf,
gnu/packages/aux-files/linux-libre/4.18-i686.conf: Add
CONFIG_HOTPLUG_PCI_SHPC=y, plus updates made by 'make oldconfig'.
2018-09-25 23:17:20 -04:00
Mark H Weaver 6d32887937
gnu: icecat: Rebundle NSPR and NSS [security fix].
Works around <https://bugs.gnu.org/32833>.

* gnu/packages/gnuzilla.scm (icecat)[source]: In snippet, don't remove NSS.
[inputs]: Remove 'nspr' and 'nss'.
[arguments]: Remove --with-system-{nspr,nss} from configure flags.
2018-09-25 19:59:08 -04:00
Mark H Weaver 94e96f7f68
gnu: icecat: Unbundle libevent, libogg, and libvorbis.
* gnu/packages/patches/icecat-use-system-media-libs.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/patches/icecat-avoid-bundled-libraries.patch: Add
another hunk to enable removal of libevent.
* gnu/packages/gnuzilla.scm (icecat)[source]: Add patch.  In the snippet, add
libevent, libogg, libvorbis, and libtremor to the list of bundled libraries to
remove.  Add a comment regarding theora.  Remove comments regarding unbundling
cairo, which is no longer supported.
[inputs]: Add libevent, libogg, and libvorbis.
[arguments]: Add --with-system-{libevent,ogg,vorbis} to configure flags.
Add custom bootstrap phase.  Add comments.
2018-09-25 19:59:06 -04:00
Mark H Weaver 257e324791
gnu: icecat: Unbundle graphite2 and harfbuzz.
* gnu/packages/patches/icecat-use-system-graphite2+harfbuzz.patch: New file.
* gnu/packages/patches/icecat-use-system-graphite2.patch,
gnu/packages/patches/icecat-use-system-harfbuzz.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): Update accordingly.
* gnu/packages/gnuzilla.scm (icecat)[source]: Add new patch.  Delete
bundled graphite2 and harfbuzz in snippet.
[inputs]: Add graphite2 and harfbuzz.
[arguments]: Add --with-system-{graphite2,harfbuzz} to configure flags.
2018-09-25 19:58:58 -04:00
Marius Bakke 3b97a1779f
services: Add Varnish service.
* gnu/services/web.scm (<varnish-configuration>): New record type.
(%varnish-accounts, %varnish-service-type): New variables.
(varnish-shepherd-service): New procedure.
* gnu/tests/web.scm (%varnish-vcl, %varnish-os): New variables.
(%test-varnish): New test.
* doc/guix.texi (Web Services): Document it.
2018-09-26 00:33:01 +02:00
Marius Bakke 5f33e9063b
gnu: varnish: Use absolute file name of "rm".
* gnu/packages/web.scm (varnish)[arguments]: Rename 'patch-bin-sh-phase to
'use-absolute-file-names and add substitution.
2018-09-26 00:33:01 +02:00
Marius Bakke e789b85841
gnu: Add Node LTS.
* gnu/packages/node.scm (node)[arguments]: Adjust 'patch-files' phase to
ignore missing files.
(node-lts): New public variable.
2018-09-26 00:33:01 +02:00
Marius Bakke 020c4ef18e
gnu: node: Delete expired tests.
* gnu/packages/node.scm (node)[arguments]: Delete tests for which the TLS
certificates have expired.
2018-09-26 00:33:01 +02:00
Marius Bakke a0c9ba1d64
gnu: webkitgtk: Remove obsolete phase.
* gnu/packages/webkit.scm (webkitgtk)[arguments]: Remove #:phases.
(webkitgtk-2.22)[arguments]: Don't reference removed phase.
2018-09-26 00:33:01 +02:00
Marius Bakke 9b1bb75781
gnu: gspell: Update to 1.8.1.
* gnu/packages/gnome.scm (gspell): Update to 1.8.1.
[propagated-inputs]: Change ENCHANT-1.6 to ENCHANT.
2018-09-26 00:33:01 +02:00
Marius Bakke c1d59b3c2a
gnu: enchant: Update to 2.2.3.
* gnu/packages/enchant.scm (enchant): Update to 2.2.3.
[arguments]: Add "--enable-relocatable" to #:configure-flags.
[native-inputs]: Add UNITTEST-CPP.
(enchant-1.6): New public variable.
* gnu/packages/fcitx.scm (fcitx)[inputs]: Change ENCHANT to ENCHANT-1.6.
* gnu/packages/gnome.scm (gspell): Likewise.
* gnu/packages/mate.scm (pluma): Likewise.
* gnu/packages/gtk.scm (gtkspell3)[propagated-inputs]: Likewise.
[inputs]: Remove duplicate ENCHANT.
2018-09-26 00:33:01 +02:00
Marius Bakke 9a59b29411
gnu: enchant: Propagate Glib.
* gnu/packages/enchant.scm (enchant)[inputs]: Move GLIB ...
[propagated-inputs]: ... here.  New field.
2018-09-26 00:33:01 +02:00
Marius Bakke 18ef85b64a
gnu: enchant: Don't build libenchant.a.
* gnu/packages/enchant.scm (enchant)[arguments]: Add #:configure-flags.
2018-09-26 00:33:01 +02:00
Marius Bakke 52b87855ea
gnu: enchant: Update home page.
* gnu/packages/enchant.scm (enchant)[home-page]: Set to URL mentioned on the
legacy home page.
2018-09-26 00:33:00 +02:00
Marius Bakke 280fc83512
git-download: Don't assume the working directory is the parent of ".git".
This makes it do the right thing w.r.t. git worktrees.

* guix/git-download.scm (git-file-list): Use REPOSITORY-WORKING-DIRECTORY to
locate checkout.  Rename from "top" to "workdir".
2018-09-26 00:33:00 +02:00
Ludovic Courtès 88268a34bc
pull: Try harder to use the host's X.509 certificates.
* guix/scripts/pull.scm (honor-x509-certificates): Use commonly-found
certificate bundles.
2018-09-25 18:45:51 +02:00
Ludovic Courtès f85dbc4f3b
substitute: Progress port really closes underlying port.
* guix/scripts/substitute.scm (progress-report-port): Use 'close-port'
instead of 'close-connection'.  Move 'stop' call first.
2018-09-25 18:45:50 +02:00
Ludovic Courtès cfe19684ea
progress: 'progress-reporter-report!' takes any number of arguments.
* guix/progress.scm (progress-reporter-report!): Accept an arbitrary
number of arguments and pass them to REPORT.
2018-09-25 18:45:50 +02:00
Ludovic Courtès 2e3a6250f8
gnupg: Change default keyserver.
* guix/gnupg.scm (%openpgp-key-server): Change default to
"pool.sks-keyservers.net".
2018-09-25 18:45:50 +02:00
Ludovic Courtès a7a887718a
gnu: diffoscope: Update to 102.
* gnu/packages/package-management.scm (diffoscope): Update to 102.
2018-09-25 18:45:50 +02:00
Ludovic Courtès 35f903778a
gnu: Add guile-next.
* gnu/packages/guile.scm (guile-next): Rewrite to refer to Guile 3.0.
2018-09-25 18:45:50 +02:00
Tobias Geerinckx-Rice 38e1095d82
gnu: python-wsgiproxy2: Update to 0.4.5.
* gnu/packages/python-web.scm (python-wsgiproxy2): Update to 0.4.5.
2018-09-25 11:46:54 +02:00