Commit graph

6124 commits

Author SHA1 Message Date
Ludovic Courtès
4ae7559fd6 gnu: Emit a warning when a package module cannot be loaded.
* guix/ui.scm (warn-about-load-error): New procedure.
* gnu/packages.scm (package-modules): Wrap 'resolve-interface' call in
  'catch #t', and call 'warn-about-load-error' in handler.
2015-04-07 22:28:36 +02:00
Ludovic Courtès
1151f6aeae ui: Add 'report-load-error'.
* guix/scripts/system.scm (read-operating-system): Replace error
  handling code by a call to 'report-load-error'.
* guix/ui.scm (report-load-error): New procedure.
2015-04-07 22:28:36 +02:00
Ludovic Courtès
c8bfa5b425 gnu: Change ld-wrapper extension from .scm to .in.
* gnu/packages/ld-wrapper.scm: Rename to...
* gnu/packages/ld-wrapper.in: ... this.
* gnu/packages/base.scm (make-ld-wrapper): Adjust "wrapper" input
  accordingly.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove ld-wrapper.scm.
  (MISC_DISTRO_FILES): New variable.
2015-04-07 22:28:36 +02:00
Ludovic Courtès
dfc8bb2071 gnu: gcc: Disable RUNPATH validation for native builds.
* gnu/packages/gcc.scm (gcc-4.7)[arguments]: Pass
  #:validate-runpath? #f.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: Override
  #:validate-runpath? with 'substitute-keyword-arguments'.
  (gcc-final)[arguments]: Likewise.
* gnu/packages/cross-base.scm (cross-gcc-arguments): Likewise.
2015-04-07 22:28:36 +02:00
Ludovic Courtès
71b6716814 gnu: ld-wrapper: Add 'GUIX_LD_WRAPPER_DISABLE_RPATH' environment variable.
* gnu/packages/ld-wrapper.scm (%disable-rpath?): New variable.
  (rpath-arguments): Honor it.
2015-04-07 22:28:36 +02:00
Ludovic Courtès
51d0cd9b38 gnu: ld-wrapper: Add '-rpath' flag only for libraries that are in the store.
This avoids adding bogus entries to the RUNPATH of installed binaries,
pointing to the build directory or similar.

* gnu/packages/ld-wrapper.scm (store-file-name?): New procedure.
  (rpath-arguments): Add "-rpath" flag on when FILE matches
  'store-file-name?', not when it matches 'pure-file-name?'.
2015-04-07 22:28:35 +02:00
Ludovic Courtès
41fc0eb900 gnu: ld-wrapper: Extract symlink dereferencing.
* gnu/packages/ld-wrapper.scm (readlink*, dereference-symlinks): New
  procedures.
  (pure-file-name?): Use it instead of local loop.
2015-04-07 22:28:35 +02:00
Mark H Weaver
bb146db14f gnu: dbus: Update to 1.8.16.
* gnu/packages/glib.scm (dbus): Update to 1.8.16.
2015-04-06 22:12:25 -04:00
Mark H Weaver
1e44ebcc83 gnu: gnutls: Update to 3.3.14.
* gnu/packages/gnutls.scm (gnutls): Update to 3.3.14.
2015-04-06 21:55:00 -04:00
Andy Wingo
31b254a324 gnu: gtk+: Update to 3.16.0.
* gnu/packages/gtk.scm (gtk+): Update to 3.16.0.  Add libepoxy to
  propagated-inputs.  Add gettext to native-inputs.  Add a 'pre-configure'
  phase instead of modifying the existing 'configure' phase.  Fix references
  to 'gtk-update-icon-cache' in Makefile.in files.

Co-Authored-By: Mark H Weaver <mhw@netris.org>
2015-04-06 18:11:05 -04:00
Andy Wingo
131ddf991f gnu: Add libepoxy.
* gnu/packages/gl.scm (libepoxy): New variable.

Modified-By: Mark H Weaver <mhw@netris.org>
2015-04-06 18:11:05 -04:00
Andy Wingo
d16c9fd80f gnu: Paper over a build circularity problem.
A forthcoming gtk+ update that will import (gnu packages gl) from
(gnu packages gtk) triggers an issue related to circular dependencies
between modules.  This patch works around the issue.

* gnu/packages/sdl.scm: Remove the #:prefix from the (gnu packages fontutils)
  import, and instead #:hide 'freetype' from the (guix licenses) import.

Modified-By: Mark H Weaver <mhw@netris.org>
2015-04-06 17:48:00 -04:00
Ludovic Courtès
347f54ed33 utils: 'find-files' does not follow symlinks by default.
Fixes <http://bugs.gnu.org/20081>.
Reported by Tomáš Čech <sleep_walker@suse.cz>.

* guix/build/utils.scm (find-files): Add #:stat parameter.  Pass it as
  last argument to 'file-system-fold'.
2015-04-06 23:09:54 +02:00
Mark H Weaver
e081385af2 gnu: linux-libre-headers: Update to 3.14.37.
* gnu/packages/linux.scm (linux-libre-headers): Update to 3.14.37.
2015-04-06 10:25:03 -04:00
Federico Beffa
b198545df6 build-system/gnu: Add docstring to 'delete-info-dir-file'.
* guix/build/gnu-build-system.scm (delete-info-dir-file): Add docstring.
2015-04-06 10:47:31 +02:00
Federico Beffa
26b261ecfe build-system/gnu: Add 'delete-info-dir-file' phase.
* guix/build/gnu-build-system.scm (delete-info-dir-file): New procedure.
  (%standard-phases): Use it.
2015-04-06 10:22:21 +02:00
宋文武
1b85e57f11 gnu: glib: Add search path specification for 'GIO_EXTRA_MODULES'.
* gnu/packages/glib.scm (glib): Add specification for 'GIO_EXTRA_MODULES'.
2015-04-05 21:17:03 -04:00
Andy Wingo
d8720c5045 gnu: cairo: Update to 1.14.2.
* gnu/packages/gtk.scm (cairo): Update to 1.14.2.
2015-04-05 18:22:23 -04:00
Andy Wingo
6e5c371306 gnu: glib: Update to 2.44.0.
* gnu/packages/glib.scm (glib): Update to 2.44.0.
2015-04-05 18:22:19 -04:00
Andy Wingo
4aaad09db1 gnu: gettext: Link explicitly to libexpat, again.
* gnu/packages/gettext.scm (gnu-gettext): Re-enable patch from
  0e4e4b1329 to explictly link to
  libexpat.  Otherwise libexpat was searched at runtime via dlopen,
  which obviously doesn't work in a Guix context.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2015-04-05 23:18:53 +02:00
Ludovic Courtès
29ec55ee27 gnu: util-linux: Install Bash completions under 'etc/bash_completion.d'.
* gnu/packages/linux.scm (util-linux)[arguments]: Pass
  --with-bashcompletiondir.
2015-04-05 23:18:19 +02:00
Ludovic Courtès
dacd5d2ca7 gremlin: Ignore non-store file names in RUNPATH and warn about them.
* guix/build/gremlin.scm (validate-needed-in-runpath)[runpath]:
  Add (filter absolute-file-name? ...).
  Emit a warning when RUNPATH file names that do not match
  'store-file-name?'.  Change format of error message to begin with file
  name.
* guix/build/utils.scm (store-file-name?): New procedure.
2015-04-05 15:40:48 +02:00
Ludovic Courtès
1d386b2d71 gnu: ghostscript: Add $libdir to the RUNPATH of executables.
Fixes <http://bugs.gnu.org/20050>.
Reported by taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer).

* gnu/packages/patches/ghostscript-runpath.patch: New file.
* gnu/packages/ghostscript.scm (ghostscript)[source]: Use it.
* gnu-system.am (dist_patch_DATA): Add it.
2015-04-05 15:23:11 +02:00
Ludovic Courtès
c17b2adf54 gnu: ghostscript: Use 'modify-phases'.
* gnu/packages/ghostscript.scm (ghostscript)[arguments]: Use
  'modify-phases' instead of a chain of 'alist-cons-after'.
2015-04-05 10:45:56 +02:00
Ludovic Courtès
85345684d6 gnu: ghostscript: Make sure phases don't fail.
* gnu/packages/ghostscript.scm (ghostscript)[arguments]: Wrap 'system*'
  calls in (zero? ...).
2015-04-05 10:44:02 +02:00
Ludovic Courtès
3e462da5c1 gnu: openssl: Set appropriate RUNPATH on shared libraries.
Fixes <http://bugs.gnu.org/20041>.
Reported by taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer).

* gnu/packages/patches/openssl-runpath.patch: New file.
* gnu/packages/openssl.scm (openssl)[source]: Use it.
* gnu-system.am (dist_patch_DATA): Add it.
2015-04-05 01:17:30 +02:00
Mark H Weaver
353fda815e gnu: ed: Update to 1.11.
* gnu/packages/ed.scm (ed): Update to 1.11.
2015-04-04 03:46:55 -04:00
Ludovic Courtès
4a740d0fec gnu: cross-base: Use an 'ld' wrapper also when cross-compiling.
* gnu/packages/base.scm (make-ld-wrapper): Add #:target parameter and
  honor it.
* gnu/packages/cross-base.scm (cross-gcc-arguments)[#:phases]
  <make-cross-binutils-visible>: Refer to the ld wrapper.
  (cross-gcc)[native-inputs]: Add "ld-wrapper-cross".
2015-04-03 22:31:15 +02:00
Ludovic Courtès
9bab6bea86 gnu: ld-wrapper: Use a hard-coded self-reference instead of $0.
* gnu/packages/ld-wrapper.scm: Use @SELF@ instead of $0.  This is so
  that the .go file is found even when the wrapper is invoked via a
  symlink to it.
* gnu/packages/base.scm (make-ld-wrapper): Substitute @SELF@.
2015-04-03 22:28:06 +02:00
Ludovic Courtès
8fdd410160 gnu: Add 'make-ld-wrapper' procedure.
* gnu/packages/base.scm (make-ld-wrapper): New procedure.  Abstracted
  from...
* gnu/packages/commencement.scm (ld-wrapper-boot3): ... here.  Use it.
2015-04-03 22:28:04 +02:00
Ludovic Courtès
9c4b6e5484 gnu: ncurses: Install terminfo files when cross-compiling.
* gnu/packages/ncurses.scm (ncurses): Remove 'cross-pre-install-phase'.
  When cross-compiling, it was leading to an empty $out/share/terminfo
  directory.
2015-04-02 22:25:55 +02:00
Ludovic Courtès
7e3c9f741b gnu: gcc: Fix libgcc_s directory in RUNPATH for cross-compiled binaries.
* gnu/packages/gcc.scm (gcc-4.7): Add 'libdir' procedure.  Use it to
  determine the right libdir, including when cross-compiling.  This
  fixes a bug whereby the RUNPATH of cross-compiled binaries would be
  set to $crossgcc/lib instead of $crossgcc/$triplet/lib.
  See <http://hydra.gnu.org/build/354389/nixlog/1/raw> for an example.
2015-04-02 10:26:15 +02:00
Ludovic Courtès
c2366e3ce4 gnu: commencement: Turn off RUNPATH checks for 'gcc-final'.
* gnu/packages/commencement.scm (gcc-final)[arguments]: Add
  #:validate-runpath? #f.
2015-04-02 00:19:53 +02:00
Ludovic Courtès
112da58875 build-system/gnu: Add 'validate-runpath' phase.
* guix/build/gnu-build-system.scm (every*, validate-runpath): New
  procedures.
  (%standard-phases): Add 'validate-runpath'.
* guix/build-system/gnu.scm (%gnu-build-system-modules): Add (guix build
  gremlin) and (guix elf).
  (gnu-build): Add #:validate-runpath?.
  [builder]: Pass it.
  (gnu-cross-build): Likewise.
* gnu/packages/base.scm (glibc)[arguments]: Add #:validate-runpath? #f.
2015-04-01 16:47:49 +02:00
Ludovic Courtès
4ba3a84d07 utils: Make the second 'find-files' argument optional.
* guix/build/utils.scm (find-files): Make 'pred' optional.
2015-04-01 15:43:54 +02:00
Ludovic Courtès
8ff3df5baa gnu: Refer to %GNU-BUILD-SYSTEM-MODULES instead of listing modules.
* gnu/packages/cdrom.scm (cdparanoia)[arguments]: Refer to
  %GNU-BUILD-SYSTEM-MODULES instead of providing the actual list.
* gnu/packages/emacs.scm (magit, emacs-w3m, emacs-wget, emms):
  Likewise.
* gnu/packages/haskell.scm (ghc): Likewise.
* gnu/packages/samba.scm (samba): Likewise.
* gnu/packages/video.scm (ffmpeg): Likewise.
2015-04-01 15:41:55 +02:00
Ludovic Courtès
8f3c3e84c2 gnu: Remove unneeded uses of #:imported-modules.
* gnu/packages/certs.scm (nss-certs)[arguments]: Remove
  #:imported-modules.
* gnu/packages/gnuzilla.scm (nss)[arguments]: Likewise.
* gnu/packages/texlive.scm (texlive-texmf)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfce)[arguments]: Likewise.
2015-04-01 15:39:47 +02:00
Ludovic Courtès
bb42c78a23 build-system: Factorize the list of modules imported on the build side.
* guix/build-system/gnu.scm (%default-modules): Rename to...
  (%gnu-build-system-modules): ... this.
  (%default-modules): New variable.
  (dist-package, gnu-build): Use %GNU-BUILD-SYSTEM-MODULES for
  #:imported-modules.
  (gnu-cross-build): Likewise, and use %DEFAULT-MODULES for #:modules.
* guix/build-system/cmake.scm (%cmake-build-system-modules): New
  variable.
  (cmake-build): Use it for #:imported-modules.
* guix/build-system/glib-or-gtk.scm (%default-imported-modules): Rename
  to...
  (%glib-or-gtk-build-system-modules): ... this.  Refer to
  %GNU-BUILD-SYSTEM-MODULES.  Adjust uses.
* guix/build-system/perl.scm (%perl-build-system-modules): New
  variable.
  (perl-build): Use it for #:imported-modules.
* guix/build-system/python.scm (%python-build-system-modules): New
  variable.
  (python-build): Use it for #:imported-modules.
* guix/build-system/ruby.scm (%ruby-build-system-modules): New variable.
  (ruby-build): Use it for #:imported-modules.
* guix/build-system/waf.scm (%waf-build-system-modules): New variable.
  (waf-build): Use it for #:imported-modules.
2015-04-01 15:34:19 +02:00
Ludovic Courtès
7be8c63e0d gremlin: Guard against invalid ELF segments.
* guix/build/gremlin.scm (&elf-error, &invalid-segment-size): New error
  condition types.
  (dynamic-link-segment): Compare SEGMENT's offset + size to ELF's total
  size.
  (validate-needed-in-runpath): Wrap body in 'guard' form.
2015-04-01 14:17:39 +02:00
Ludovic Courtès
d83ccc9b42 gremlin: Add libnsl to libc's library list.
* guix/build/gremlin.scm (%libc-libraries): Add "libnsl.so".
2015-04-01 13:46:01 +02:00
Ludovic Courtès
ed835ad710 gnu: node: Remove unneeded import.
* gnu/packages/node.scm: Remove import of (guix build gnu-build-system).
2015-04-01 10:36:17 +02:00
Ludovic Courtès
4c0d38bee3
gnu: Update bootstrap binaries for x86_64 and i686.
Fixes <http://bugs.gnu.org/19780>.
Reported by Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>.

* gnu/packages/bootstrap/i686-linux/bash,
  gnu/packages/bootstrap/i686-linux/mkdir,
  gnu/packages/bootstrap/i686-linux/tar,
  gnu/packages/bootstrap/i686-linux/xz,
  gnu/packages/bootstrap/x86_64-linux/bash,
  gnu/packages/bootstrap/x86_64-linux/mkdir,
  gnu/packages/bootstrap/x86_64-linux/tar,
  gnu/packages/bootstrap/x86_64-linux/xz: Update from
  <ftp://alpha.gnu.org:/gnu/guix/bootstrap/i686-linux/20131110/static-binaries.tar.xz>
  and
  <ftp://alpha.gnu.org:/gnu/guix/bootstrap/x86_64-linux/20131110/static-binaries.tar.xz>,
  respectively.  The libc in those binaries has no dynamic NSS support,
  which could otherwise lead to crashes when they tried to load NSS
  modules of the host system.
2015-03-31 23:07:17 +02:00
Ludovic Courtès
1968262a23 utils: 'find-files' takes an arbitrary predicate as its second argument.
* guix/build/utils.scm (file-name-predicate): New procedure.
  (find-files): Rename second parameter to 'pred'.  When 'pred' is not a
  procedure, call 'file-name-predicate'.  Use PRED instead of
  'regexp-exec' in the leaf procedure.
2015-03-31 22:55:41 +02:00
Ludovic Courtès
f8503e2b25 utils: 'modify-phases' no longer introduces quotes.
Suggested by Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>.

* guix/build/utils.scm (%modify-phases): Remove quotes.
* guix/build/cmake-build-system.scm (%standard-phases): Adjust
  accordingly.
* guix/build/glib-or-gtk-build-system.scm (%standard-phases): Likewise.
* guix/build/gnu-dist.scm (%dist-phases): Likewise.
* guix/build/perl-build-system.scm (%standard-phases): Likewise.
* guix/build/python-build-system.scm (%standard-phases): Likewise.
* guix/build/ruby-build-system.scm (%standard-phases): Likewise.
* guix/build/waf-build-system.scm (%standard-phases): Likewise.
* gnu/packages/bash.scm, gnu/packages/code.scm, gnu/packages/gl.scm,
  gnu/packages/gnome.scm, gnu/packages/graphics.scm,
  gnu/packages/image.scm, gnu/packages/key-mon.scm,
  gnu/packages/ocr.scm, gnu/packages/plotutils.scm,
  gnu/packages/search.scm, gnu/packages/video.scm: Likewise.
2015-03-31 22:43:01 +02:00
Ludovic Courtès
023dd28a30 Merge branch 'master' into core-updates 2015-03-31 22:41:54 +02:00
Ludovic Courtès
15aa2c3842 Add (guix build gremlin).
* guix/build/gremlin.scm, tests/gremlin.scm: New files.
* Makefile.am (MODULES): Add guix/build/gremlin.scm.
  (SCM_TESTS): Add tests/gremlin.scm.
2015-03-31 22:23:57 +02:00
Ludovic Courtès
4e7b6b4838 tests: Fix module name for 'lint'.
* tests/lint.scm: Change module name to 'test-lint'.
2015-03-31 22:23:57 +02:00
Mark H Weaver
fbbcf6989b gnu: xterm: Update to 317.
* gnu/packages/xorg.scm (xterm): Update to 317.
2015-03-31 14:30:38 -04:00
Ricardo Wurmus
c5372108f2 gnu: pbtranscript-tofu: Add missing inputs.
* gnu/packages/bioinformatics.scm (pbtranscript-tofu)[inputs]: Add missing
  runtime inputs.
2015-03-31 20:04:41 +02:00
Ricardo Wurmus
49261e45d8 gnu: pbtranscript-tofu: Delete pre-built libraries.
* gnu/packages/bioinformatics.scm (pbtranscript-tofu)[arguments]: Delete
  "build" directory and any shared objects after unpacking.
2015-03-31 20:04:32 +02:00