Commit Graph

6019 Commits

Author SHA1 Message Date
Ludovic Courtès 2c74fde00e Rename 'guix substitute-binary' to 'guix substitute'.
* guix/scripts/substitute-binary.scm: Rename to...
* guix/scripts/substitute.scm: ... this.  Adjust module name, entry
  point, comments, and help string accordingly.
* nix/scripts/substitute-binary.in: Rename to...
* nix/scripts/substitute.in: ... this.
* pre-inst-env.in (NIX_SUBSTITUTERS): Adjust accordingly.
* tests/substitute-binary.scm: Rename to...
* tests/substitute.scm: ... this.  Adjust references to (guix scripts
  substitute) accordingly.
* guix/ui.scm (show-guix-help)[internal?]: Change "substitute-binary" to
  "substitute".
* Makefile.am (MODULES, SCM_TESTS): Adjust to file renames.
* daemon.am (nodist_pkglibexec_SCRIPTS): Likewise.
* config-daemon.ac: Likewise.
* guix/tests.scm (call-with-derivation-narinfo): Adjust comments and
  docstring.
2015-03-25 10:46:22 +01:00
Ludovic Courtès c3a450fb49 derivations: 'substitution-oracle' now ignores sub-trees that are valid.
Before that, "guix build qt", when only qt itself is missing, would lead
'substitution-oracle' to call 'substitutable-paths' with 318 items.
Now, this is down to 6 items, because it doesn't ask about prerequisites
that are already valid.

* guix/derivations.scm (substitution-oracle)[valid-input?,
  dependencies]: New procedures.
  Use 'dependencies' and remove call to 'remove'.
2015-03-25 10:46:22 +01:00
Ludovic Courtès 3681db5d2c derivations: Add a 'cut?' parameter to 'derivation-prerequisites'.
* guix/derivations.scm (valid-derivation-input?): New procedure.
  (derivation-prerequisites): Add 'cut?' parameter and honor it.
* tests/derivations.scm ("derivation-prerequisites and
  derivation-input-is-valid?"): New test.
2015-03-25 10:46:22 +01:00
Mark H Weaver 1f43445745 gnu: python: Do not use patchelf.
* gnu/packages/python.scm (python-2): Add rpath for lib directory of output to
  LDFLAGS.  Remove 'patchelf' from inputs.  Remove #:modules and
  #:imported-modules from arguments.  Remove 'add-lib-to-runpath' phase.
  (python): Do not add #:modules to inherited package arguments.
2015-03-24 19:30:33 -04:00
Ludovic Courtès c7d1d88f6c derivations: Don't invoke the substituter when an item is already in store.
Fixes <http://bugs.gnu.org/20188>.
Reported by Mark H Weaver <mhw@netris.org>.

* guix/derivations.scm (substitution-oracle): Add 'valid?' procedure.
  Remove 'valid?' items from PATHS.
2015-03-24 23:22:23 +01:00
Andreas Enge b655b2154c gnu: calibre: Add a patch to avoid automatic checking for updates.
* gnu/packages/patches/calibre-no-updates-dialog.patch: New file.
* gnu-system.am (dist_patch_DATA): Register patch.
* gnu/packages/ebook.scm (calibre): Use patch.
2015-03-24 20:35:37 +01:00
Ricardo Wurmus 2c16316ef4 gnu: Add pbtranscript-tofu.
* gnu/packages/bioinformatics.scm (pbtranscript-tofu): New variable.
2015-03-24 16:59:47 +01:00
Ricardo Wurmus ad641d53de gnu: Add python2-bx-python.
* gnu/packages/bioinformatics.scm (python2-bx-python): New variable.
2015-03-24 15:00:09 +01:00
Ricardo Wurmus 19ee920144 gnu: Add python2-pbcore.
* gnu/packages/bioinformatics.scm (python2-pbcore): New variable.
2015-03-24 14:58:47 +01:00
Ludovic Courtès e2e21359c5 gnu: guix: Update snapshot.
* gnu/packages/package-management.scm (guix-devel): Update.
2015-03-23 23:13:18 +01:00
Ludovic Courtès 9586011d08 gnu: geiser: Make description more concise and less personal.
* gnu/packages/emacs.scm (geiser)[description]: Tweak.
2015-03-23 22:28:49 +01:00
Ludovic Courtès 1f8ad12a9c gnu: geiser: Update to 0.7.
* gnu/packages/emacs.scm (geiser): Update to 0.7.
2015-03-23 22:28:49 +01:00
Ludovic Courtès cb043c2b13 substitute-binary: Remove thread-safe 'regexp-exec' wrapper.
* guix/scripts/substitute-binary.scm: Remove 'regexp-exec' setting.
2015-03-23 22:28:49 +01:00
Ludovic Courtès d3a652037e substitute-binary: Pipeline HTTP requests instead of using threads.
* guix/scripts/substitute-binary.scm (fetch-narinfo, %lookup-threads,
  n-par-map*): Remove.
  (narinfo-cache-file, cached-narinfo, cache-narinfo!, narinfo-request,
  http-multiple-get, read-to-eof, fetch-narinfos, lookup-narinfos,
  narinfo-from-file): New procedures.
  (lookup-narinfo): Rewrite in terms of 'lookup-narinfos'.
  (guix-substitute-binary): Use 'lookup-narinfos' instead of
  'lookup-narinfo'.
2015-03-23 22:28:49 +01:00
Ludovic Courtès 0561e9ae16 substitute-binary: Allow callers to specify the size of a narinfo.
* guix/scripts/substitute-binary.scm (read-narinfo): Add #:size
  parameter and honor it.
2015-03-23 22:28:49 +01:00
Mark H Weaver 87db65507e Remove unused patchelf inputs.
* gnu/packages/maths.scm (lapack, gmsh), gnu/packages/ssh.scm (libssh): Remove
  unused patchelf from native-inputs.
2015-03-23 13:30:06 -04:00
Ludovic Courtès 69383a4798 gnu: bigloo: Use Emacs with X11 support.
* gnu/packages/scheme.scm (bigloo)[inputs]: Change EMACS-NO-X to EMACS.
2015-03-23 15:18:06 +01:00
宋文武 07780c714e gnu: sdl: Explicitly use mesa as OpenGL driver.
* gnu/packages/sdl.scm (sdl)[arguments]<#:configure-flags>: Add
  'LDFLAGS=-lGL'.
2015-03-23 22:06:57 +08:00
宋文武 83bb3a3ee4 gnu: sdl: Allow dlopen for OpenGL.
Fixes a regression introduced in 666aa99.
Reported by Felipe López and David Thompson.

* gnu/packages/sdl.scm (sdl)[inputs]: Add glu.
  [arguments]<#:configure-flags>: Replace '--disable-sdl-dlopen' with
  '--disable-alsa-shared --disable-pulseaudio-shared --disable-x11-shared'.
2015-03-23 22:06:57 +08:00
Ricardo Wurmus ef5cbf9bae gnu: Add python-h5py and python2-h5py.
* gnu/packages/python.scm (python-h5py, python2-h5py): New variables.
2015-03-23 10:56:13 +01:00
Ricardo Wurmus aa5fac334f gnu: Add Julia.
* gnu/packages/julia.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
2015-03-23 10:38:07 +01:00
Ricardo Wurmus 61a529b421 gnu: Add double-conversion.
* gnu/packages/maths.scm (double-conversion): New variable.
2015-03-23 10:38:06 +01:00
Ricardo Wurmus 2742f87e17 gnu: Add SuiteSparse.
* gnu/packages/maths.scm (suitesparse): New variable.
2015-03-23 10:19:45 +01:00
Ricardo Wurmus 6b2bad40fc gnu: icedtea6: remove commented substitution.
* gnu/packages/java.scm (icedtea6): Remove commented substitution.
2015-03-23 10:17:36 +01:00
Ricardo Wurmus 18f3c3209d gnu: icedtea6: Do not set CC and LD_LIBRARY_PATH.
* gnu/packages/java.scm (icedtea6)[arguments]: Do not set CC and
  LD_LIBRARY_PATH variables.
2015-03-23 10:17:36 +01:00
Ricardo Wurmus 3893c80a88 gnu: icedtea6: Rename ‘set-paths’ phase to ‘set-additional-paths’
* gnu/packages/java.scm (icedtea6)[arguments]: Rename ‘set-paths’ phase to
  ‘set-additional-paths’.
2015-03-23 10:17:36 +01:00
Ricardo Wurmus 4d80586aa5 gnu: icedtea6: patch patches in separate build phase.
* gnu/packages/java.scm (icedtea6)[arguments]: Move patching of patches from
  ‘patch-paths’ to new ‘patch-patches’ phase.
2015-03-23 10:17:36 +01:00
Ricardo Wurmus 6f27f3775e gnu: icedtea6: patch hardcoded objcopy path.
* gnu/packages/java.scm (icedtea6)[arguments]: patch Makefile to override
  DEF_OBJCOPY variable definition.
2015-03-23 10:17:35 +01:00
Ricardo Wurmus f9e62ad221 gnu: icedtea6: patch ant shebang in unpack phase
* gnu/packages/java.scm (icedtea6)[arguments]: patch bootstrap ant in the
  `unpack' phase instead of `patch-paths'.
2015-03-23 10:17:35 +01:00
Ricardo Wurmus e73b49fbd6 gnu: Add openblas.
* gnu/packages/maths.scm (openblas): New variable.
2015-03-23 10:08:28 +01:00
Ricardo Wurmus cd15ad828a gnu: Add utf8proc.
* gnu/packages/textutils.scm (utf8proc): New variable.
2015-03-23 10:07:56 +01:00
Ludovic Courtès 4d58122071 store: Default to a non-empty list of substituters.
Fixes <http://bugs.gnu.org/20163>.
Reported by Mark H Weaver <mhw@netris.org>.

* guix/store.scm (%default-substitute-urls): New variable.
  (set-build-options): Change default value of #:substitute-urls to
  %DEFAULT-SUBSTITUTE-URLS.
2015-03-22 23:43:25 +01:00
Ludovic Courtès 1123759b45 gexp: Fix handling of nativeness in nested gexps.
* guix/gexp.scm (gexp-inputs): Remove 'references' parameter; add
  #:native? and honor it.
  [add-reference-inputs]: Distinguish between native gexp inputs, and
  non-native gexp inputs.  Honor 'native?' field of list inputs.
* tests/gexp.scm ("ungexp + ungexp-native, nested"): New test.
2015-03-22 23:18:33 +01:00
Ludovic Courtès 607e1b51f4 gexp: Ignore nested gexps in macro expansion.
Before that, the 'references' and 'natives' or the outer gexp in an
expression like #~#+#~#$coreutils would include those of the inner
gexp.

* guix/gexp.scm (gexp)[collect-escapes]: Ignore everything below
  'ungexp-native' or 'ungexp-native-splicing'.
  [collect-native-escapes]: Ignore everything below 'ungexp' or
  'ungexp-splicing'.
2015-03-22 23:18:31 +01:00
Ludovic Courtès accb682c50 gexp: Allow <gexp-input> objects in #:allowed-references.
* guix/gexp.scm (lower-references): Add <gexp-input> case.
* tests/gexp.scm ("gexp->derivation #:allowed-references, specific
  output"): New test.
2015-03-22 23:18:30 +01:00
Ludovic Courtès 2924f0d6ce gexp: Add identity compiler for derivations.
* guix/gexp.scm (derivation-compiler): New procedure.
  (lower-inputs): Remove 'derivation?' case.
  (gexp-inputs)[add-reference-inputs]: Likewise.
  (gexp->sexp)[reference->sexp]: Likewise.
2015-03-22 23:18:28 +01:00
Tomáš Čech a9a8f0637d Revert "gnu: Add sdcv."
This reverts commit 004eb31859.
2015-03-22 22:08:50 +01:00
Tomáš Čech d13586bfe4 gnu: Add the-silver-searcher.
* gnu/packages/code.scm (the-silver-searcher): New variable.
2015-03-22 22:04:31 +01:00
Taylan Ulrich Bayırlı/Kammer 38829eac4b gnu: Add mplayer2.
* gnu/packages/video.scm (mplayer2): New variable.
* gnu/packages/patches/mplayer2-theora-fix.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
2015-03-22 21:59:37 +01:00
Ricardo Wurmus 9d297fae5f gnu: gtk+-2: build gobject introspection typelib file.
* gnu/packages/gtk.scm (gtk+-2): add `gobject-introspection' to the
  native-inputs to install typelib file.
2015-03-21 20:24:31 -04:00
Mark H Weaver 3c76a81b94 gnu: openssl: Update to 1.0.2a.
* gnu/packages/openssl.scm (openssl): Update to 1.0.2a.
2015-03-21 16:32:17 -04:00
Andreas Enge e5ffe52cc7 gnu: calibre: Update to 2.22.0.
* gnu/packages/ebook.scm (calibre): Update to 2.22.0.
2015-03-21 20:33:22 +01:00
Ricardo Wurmus 0f49d7ba70 gnu: Add python2-pygobject.
* gnu/packages/glib.scm (python2-pygobject): New variable.
2015-03-20 22:51:33 +01:00
Ricardo Wurmus 594a362b04 gnu: python-pygobject: use home page of 3.x series.
* gnu/packages/glib.scm (python-pygobject)[home-page]: Use home page of the
  3.x series of the pygobject bindings instead of the home page for the 2.x
  bindings.
2015-03-20 22:51:25 +01:00
Ricardo Wurmus f6f499b37e gnu: lv2-mda-piano: change source URL.
* gnu/packages/audio.scm (lv2-mda-piano)[source]: Change URL of git
  repository to new upstream.
2015-03-20 22:48:42 +01:00
Ludovic Courtès 051edc95f1 guix package: '-s' sorts packages by name, then by version.
Before that it would sort them by name only, so the order in which two
packages with the same name but a different version would appear was
non-deterministic.

Reported by Tomáš Čech <sleep_walker@gnu.org>.

* guix/scripts/package.scm (find-packages-by-description)[version<?]:
  New variable.
  Change the 2nd argument to 'sort' to use 'string-compare' and resort
  to 'version<?' when P1 and P2 have the same name.
2015-03-20 22:07:28 +01:00
Ludovic Courtès 9eeb3d8c28 guix package: '-s' displays different packages that have the same location.
Before that, 'guix package -s foobarbaz' would display only one package
when several match but they have the same location (which is common when
using 'inherit'.)

The original rationale was given at
<http://lists.gnu.org/archive/html/bug-guix/2013-01/msg00280.html> but
it was arguably misguided because it led to "real" packages being
hidden.

Reported by Tomáš Čech <sleep_walker@gnu.org>.

* guix/scripts/package.scm (find-packages-by-description)[same-location?]:
  Remove.
  Remove call to 'delete-duplicates'.
2015-03-20 22:07:28 +01:00
Andreas Enge ac85b51521 gnu: arb: Update to 2.3.0.
* gnu/packages/algebra.scm (arb): Update to 2.3.0.
2015-03-20 20:39:03 +01:00
Eric Bavier bdec322363 gnu: Add Catalyst-Devel.
* gnu/packages/web.scm (perl-catalyst-devel): New variable.
2015-03-20 14:22:37 -05:00
Eric Bavier fda45480ab gnu: Add Module-Install.
* gnu/packages/perl.scm (perl-module-install): New variable.
2015-03-20 14:22:37 -05:00