Commit Graph

27194 Commits

Author SHA1 Message Date
Christopher Baines 0076f5a98c
gnu: Remove redundant wrapping from packages using ruby-build-system.
Now that the build system does wrapping automatically, it can be removed from
the packages that do it manually.

* gnu/packages/databases.scm (es-dump-restore)[arguments]: Remove #:phases.
* gnu/packages/ruby.scm (ruby-redcloth)[arguments]: Remove #:phases.
  (ruby-httpclient)[arguments]: Remove 'wrap-bin-httpclient from the modified
  phases.
2018-01-14 22:16:26 +00:00
Christopher Baines 2c2ec3d04a
ruby-build-system: Add a new wrap phase.
Wrap files in bin/ and sbin/ with the location of the gem itself and the
location of any other gems in use (GEM_PATH). This ensures that the bin files
will run with the right environment when executed.

It does however mean that native-inputs will also get wrapped up in any
binaries, which is not good, as it increases the size of the closure, and
risks this code being used at runtime.

* guix/build/ruby-build-system.scm (wrap): New procedure.
  (%standard-phases): Add the wrap phase.
2018-01-14 22:16:20 +00:00
Christopher Baines d9df4bf055
ruby-build-system: Add wrap-ruby-program.
A modified copy of wrap-program from (guix build utils). The wrap-program
procedure doesn't work well for Ruby scripts, as it breaks using the -S flag
with ruby to execute the script, as when -S is passed to ruby, it expects the
script on the PATH to use ruby in the shebang, and not bash.

Therefore, to wrap the program, but keep the shebang as ruby, wrap it with a
ruby script instead.

wrap-ruby-program uses .real/foo rather than .foo-real, as this might be
neater. This procedure also includes a call to Gem.clear_paths to make it
possible to set the GEM_PATH through this method, and for it to take effect.

* gnu/build/ruby-build-system.scm (wrap-ruby-program): New procedure.
2018-01-14 22:16:15 +00:00
Christopher Baines 3cb3fa6747
guix: build: ruby-build-system: Install to the vendor directory
* guix/build/ruby-build-system.scm (install): Install gems to the vendor
  directory, rather than the GEM_HOME. The vendor directory does not include
  the version of ruby used to install the gem in the path, which makes it
  easier to add it to the GEM_PATH for all versions of ruby to use.
  (gem-home): Remove procedure.
* gnu/packages/ruby.scm (ruby, ruby-2.1)[native-search-paths]: Switch to
  lib/ruby/vendor_ruby.
  (ruby-1.8)[native-search-paths]: Remove native-search-paths.
  (gem-directory): Remove procedure.
  (ruby-ansi, ruby-ae)[arguments]: Remove use of gem-directory.
  (ruby-metaclass, ruby-instantiator, ruby-introspection, ruby-mocha,
  ruby-nokogiri, ruby-minitest-tu-shim, ruby-redcloth)[arguments]: Remove use
  of gem-home.
  (ruby-git, ruby-httpclient)[arguments]: Remove use of GEM_HOME.
* gnu/packages/databases.scm (es-dump-restore)[arguments]: Remove use of
  GEM_HOME.
2018-01-14 22:16:08 +00:00
Andreas Enge b1225dd30f
arb: Update to 2.12.0.
* gnu/packages/algebra.scm (arb): Update to 2.12.0.
2018-01-14 21:11:04 +01:00
Andreas Enge 9054bbfe1e
gnu: pari-gp: Update to 2.9.4.
* gnu/packages/algebra.scm (pari-gp): Update to 2.9.4.
2018-01-14 21:07:31 +01:00
Andreas Enge 7baf6615e9
doc: Correct documentation of NGINX-LOCATION-CONFIGURATION.
* doc/guix.texi (Web Services): The body of an NGINX-LOCATION-CONFIGURATION
is a list of strings and not a string.
2018-01-14 16:24:00 +01:00
Leo Famulari bad12e839c
gnu: rct: Re-categorize some inputs.
OpenSSL and zlib are referred to by the built package, so we make them
regular inputs.

This is a followup to commit e8b409741b.

* gnu/packages/cpp.scm (rct)[native-inputs]: Move openssl and zlib to ...
[inputs]: ... new field.
2018-01-13 17:23:31 -08:00
Fis Trivial e8b409741b
gnu: Add rct.
* gnu/packages/cpp.scm (rct): New variable.
2018-01-13 17:11:49 -08:00
Tobias Geerinckx-Rice a03abe7888
gnu: flashrom: Update to 1.0.
* gnu/packages/flashing-tools.scm (flashrom): Update to 1.0.
2018-01-13 21:25:42 +01:00
Tobias Geerinckx-Rice 291b5de9ce
gnu: flashrom: Use HTTPS for home page.
* gnu/packages/flashing-tools.scm (flashrom)[home-page]: Use HTTPS.
2018-01-13 21:25:42 +01:00
Tobias Geerinckx-Rice a178e83b99
gnu: mpd: Remove (gnu packages gcc) import.
This follows up commit 7641266b03.

* gnu/packages/mpd.scm: Don't #:use-module (gnu packages gcc).
2018-01-13 21:25:42 +01:00
Tobias Geerinckx-Rice e9aa6b5e91
gnu: mpd: Use HTTPS for musicpd.org home pages.
* gnu/packages/mpd.scm (libmpdclient, mpd, mpd-mpc, ncmpc)[home-page]: Use
HTTPS.
2018-01-13 21:25:41 +01:00
Tobias Geerinckx-Rice fc2847b1f7
gnu: mpdscribble: Update home page.
* gnu/packages/mpd.scm (mpdscribble)[home-page]: This package seems to have
found a home.  Use it.
2018-01-13 21:25:41 +01:00
Tobias Geerinckx-Rice 7da9e792e4
gnu: libmpdclient: Update to 2.13.
* gnu/packages/mpd.scm (libmpdclient): Update to 2.13.
[build-system]: Switch to meson-build-system.
[native-inputs]: Add pkg-config and check.
[arguments]: Enable tests and build documentation.
2018-01-13 21:25:40 +01:00
Tobias Geerinckx-Rice 265c31f5a3
gnu: pcre: Use HTTPS for home pages.
* gnu/packages/pcre.scm (pcre, pcre2)[home-page]: Use HTTPS.
2018-01-13 21:25:40 +01:00
Tobias Geerinckx-Rice 7a0ba651a6
gnu: gsm: Update to 1.0.17.
* gnu/packages/audio.scm (gsm): Update to 1.0.17.
2018-01-13 21:25:40 +01:00
Tobias Geerinckx-Rice 916225e26e
gnu: youtube-dl: Update to 2018.01.14.
* gnu/packages/video.scm (youtube-dl): Update to 2018.01.14.
2018-01-13 21:25:39 +01:00
Tobias Geerinckx-Rice 4a2982a132
gnu: libcap-ng: Use HTTPS for home page.
* gnu/packages/admin.scm (libcap-ng)[home-page]: Use HTTPS.
2018-01-13 21:25:39 +01:00
Tobias Geerinckx-Rice 0dd6d21ae3
gnu: lz4: Update to 1.8.1.
* gnu/packages/compression.scm (lz4): Update to 1.8.1.
[arguments]: Enable ‘#:parallel-tests?’, now considered safe upstream.
Use ‘more GNU’-style lowercase ‘prefix=’.
2018-01-13 21:25:38 +01:00
Leo Famulari f05c46d9a5
gnu: krita: Update to 3.3.3.
* gnu/packages/kde.scm (krita): Update to 3.3.3.
2018-01-13 09:29:19 -08:00
Tobias Geerinckx-Rice 08429f3934
gnu: xfce: Use HTTPS for xfce.org home pages.
* gnu/packages/xfce.scm (gtk-xfce-engine, libxfce4util, xfconf, libxfce4ui)
(exo, garcon, tumbler, xfce4-panel, xfce4-battery-plugin)
(xfce4-clipman-plugin, xfce4-pulseaudio-plugin, xfce4-xkb-plugin)
(xfce4-appfinder, xfce4-session, xfce4-settings, thunar, thunar-volman)
(xfwm4, xfdesktop, xfce4-terminal, xfce, xfce4-power-manager, ristretto)
(xfce4-taskmanager, orage)[home-page]: Use HTTPS.
2018-01-13 16:34:22 +01:00
Tobias Geerinckx-Rice ea4eed6817
gnu: xfce4-terminal: Update to 0.8.6.
* gnu/packages/xfce.scm (xfce4-terminal): Update to 0.8.6.
2018-01-13 16:34:21 +01:00
Tobias Geerinckx-Rice 905d15e1d5
gnu: gl2ps: Update to 1.4.0.
* gnu/packages/gl.scm (gl2ps): Update to 1.4.0.
2018-01-13 16:34:21 +01:00
Tobias Geerinckx-Rice eab68c83eb
gnu: dmidecode: Update to 3.1.
* gnu/packages/admin.scm (dmidecode): Update to 3.1.
2018-01-13 16:34:20 +01:00
Tobias Geerinckx-Rice f7147e278e
gnu: gpgme: Update to 1.10.0.
* gnu/packages/gnupg.scm (gpgme): Update to 1.10.0.
[arguments]: Remove ‘patch-cmake-file’ work-around for fixed bug.
2018-01-13 16:16:56 +01:00
Tobias Geerinckx-Rice 864f3f1d04
gnu: offlineimap: Update to 7.1.5.
* gnu/packages/mail.scm (offlineimap): Update to 7.1.5.
2018-01-13 16:16:55 +01:00
Tobias Geerinckx-Rice b15af0ce37
gnu: lcov: Update to 1.13.
* gnu/packages/code.scm (lcov): Update to 1.13.
[arguments]: Remove superfluous #:make-flags.
2018-01-13 12:41:30 +01:00
Julien Lepiller 1124683d8c
gnu: java-powermock-modules-junit4: Fix junit version detection.
* gnu/packages/java.scm (java-powermock-modules-junit4)[arguments]: Fix
junit version detection.
2018-01-13 12:06:51 +01:00
Julien Lepiller 59e0021cc7
gnu: java-powermock-core: Include resources.
* gnu/packages/java.scm (java-powermock-core)[arguments]: Add a phase to
include resources.
2018-01-13 12:06:12 +01:00
Ludovic Courtès 7c0926ea7c
gnu: guix: Update snapshot to 0dcf675.
* gnu/packages/package-management.scm (guix): Update to 0dcf675.
2018-01-13 00:57:52 +01:00
Ludovic Courtès 22c334fa2e
gnu: hunspell-dict-en: Include all the .dic files.
Fixes a regression introduced in
d4d7d70912 which broke
'hunspell-dict-en' (but not the 'hunspell-dict-en-*' variants.)

* gnu/packages/aspell.scm (aspell-word-list)[install]: Check whether
'LANGUAGE.dic' exist before installing it.  If it doesn't exist, install
all of *.dic.
2018-01-13 00:32:55 +01:00
Ludovic Courtès 0dcf675c56
ssh: Switch back to 'get-bytevector-some'.
This mostly reverts 17af5d51de.
Suggested by Andy Wingo <wingo@igalia.com>.

* guix/ssh.scm (remote-daemon-channel)[redirect]: Remove 'read!' FFI
hack.  Use buffered ports.
2018-01-12 23:41:15 +01:00
Ludovic Courtès 4eb0f9ae05
offload: 'test' reports Guile and module errors more nicely.
Fixes <https://bugs.gnu.org/26008>.
Reported by Myles English <mylesenglish@gmail.com>.

* guix/ssh.scm (retrieve-files*): Move error reporting to...
(report-guile-error, report-module-error): ... here.  New procedures.
* guix/scripts/offload.scm (assert-node-repl): Use 'report-guile-error'.
(assert-node-has-guix): Explicitly check for 'use-modules' first.  Use
'report-module-error'.
2018-01-12 23:41:15 +01:00
Ludovic Courtès 5a5e34e358
offload: 'test' gracefully handles 'node-repl-error'.
Fixes <https://bugs.gnu.org/28057>.
Reported by Ricardo Wurmus <rekado@elephly.net>.

* guix/scripts/offload.scm (assert-node-has-guix): Catch
'node-repl-error' and call 'leave'.
2018-01-12 23:41:15 +01:00
Ludovic Courtès 0e3c8528af
ssh: 'retrieve-files' now only retrieves what's missing.
* guix/ssh.scm (retrieve-files): Remove the subset of FILES that is
valid in LOCAL.
(store-export-channel): Add comment.
2018-01-12 23:41:15 +01:00
Ludovic Courtès d06d54e338
offload: Fix regression in file retrieval.
This fixes a regression in 'retrieve-files*' introduced in
896fec476f, whereby (guix scripts offload)
would not read the initial sexp now sent by the remote host via
'store-export-channel'.  This would effectively prevent file retrieval
entirely when offloading.

* guix/ssh.scm (retrieve-files*): New procedure, like former
'retrieve-files' but with an extra #:import parameter.
(retrieve-files): Rewrite in terms of 'retrieve-files*'.
(file-retrieval-port): Make private.
* guix/scripts/offload.scm (transfer-and-offload): Pass #:import to
'retrieve-files*'.
(retrieve-files*): Remove.
2018-01-12 23:41:15 +01:00
Leo Famulari 6b433caed2
gnu: transmission: Fix a DNS rebinding vulnerability that allows RCE.
* gnu/packages/patches/transmission-fix-dns-rebinding-vuln.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/bittorrent.scm (transmission)[source]: Use it.
2018-01-12 10:11:47 -08:00
Tobias Geerinckx-Rice d95bb2957d
gnu: dtc: Update to 1.4.6.
* gnu/packages/bootloaders.scm (dtc): Update to 1.4.6.
[source]: Remove both patches.
* gnu/packages/patches/dtc-format-modifier.patch: Delete file.
* gnu/packages/patches/dtc-32-bits-check.patch: Likewise.
* gnu/local.mk (dist_patch_DATA): Remove both.
2018-01-12 16:43:51 +01:00
Tobias Geerinckx-Rice b09c6b55ad
gnu: harminv: Update to 1.4.1.
* gnu/packages/engineering.scm (harminv): Update to 1.4.1.
[source, home-page]: Switch to new host.
2018-01-12 15:06:43 +01:00
Tobias Geerinckx-Rice a0bb98c322
gnu: gphoto2: Update to 2.5.15.
* gnu/packages/photo.scm (gphoto2): Update to 2.5.15.
2018-01-12 15:06:43 +01:00
Tobias Geerinckx-Rice 84f5e43779
gnu: libgphoto2: Update to 2.5.16.
* gnu/packages/photo.scm (libgphoto2): Update to 2.5.16.
2018-01-12 15:04:38 +01:00
Tobias Geerinckx-Rice 58e3603e7f
gnu: colordiff: Update to 1.0.18.
Also add the non-archive URL, which was probably the intention of commit
8d479d27ca.  Better late than never.

* gnu/packages/patchutils.scm (colordiff): Update to 1.0.18.
2018-01-12 13:08:13 +01:00
Leo Famulari 138c08899b
gnu: libvorbis: Fix CVE-2017-{14632,14633}.
* gnu/packages/patches/libvorbis-CVE-2017-14632.patch,
gnu/packages/patches/libvorbis-CVE-2017-14633.patch: New files.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/xiph.scm (libvorbis)[replacement]: New field.
(libvorbis/fixed): New variable.
2018-01-11 14:13:17 -08:00
Fis Trivial ce577655a3
gnu: Add selene.
* gnu/packages/lua.scm (selene): New public variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2018-01-11 22:49:15 +01:00
Ludovic Courtès 20bf5fce7d
gnu: grep: Add dependency on PCRE.
Suggested by Oleg Pykhalov <go.wigust@gmail.com>
and Roel Janssen <roel@gnu.org>.

* gnu/packages/base.scm (grep)[inputs]: New field.
* gnu/packages/commencement.scm (grep-final)[inputs]: New field.
2018-01-11 22:49:15 +01:00
Maxim Cournoyer 33ca12f3e4
gnu: emacs-sr-speedbar: Update to 20161025.
* gnu/packages/emacs.scm (emacs-sr-speedbar): Update to 20161025.
[version]: Use git-version.
[source]: Download sources via git-fetch and use git-file-name.

Signed-off-by: Kei Kebreau <kkebreau@posteo.net>
2018-01-11 12:53:50 -05:00
Kei Kebreau 6342ebd5e7
gnu: libcdio-paranoia: Update to 10.2+0.94.2.
* gnu/packages/cdrom.scm (libcdio-paranoia): Update to 10.2+0.94.2.
2018-01-11 12:28:07 -05:00
Kei Kebreau 49e23afa79
gnu: libcdio: Update to 2.0.0.
* gnu/packages/cdrom.scm (libcdio): Update to 2.0.0.
2018-01-11 12:27:55 -05:00
Ludovic Courtès 71b98b9de9
services: qemu-binfmt: Extend guix-daemon with extra chroot directories.
Fixes <https://bugs.gnu.org/20239>.

* gnu/services/virtualization.scm (<qemu-binfmt-configuration>)[guix-support?]:
New field.
(qemu-binfmt-guix-chroot): New procedure.
(qemu-binfmt-service-type)[extensions]: Add GUIX-SERVICE-TYPE.
* doc/guix.texi (Virtualization Services): Document 'guix-support?'.
(Additional Build Options): Mention binfmt_misc and offloading under
'--system'.
2018-01-11 14:42:31 +01:00