jackhill/guix/guix.git
9 years agognu: curl: Update to 7.40.0.
Mark H Weaver [Sun, 11 Jan 2015 14:43:22 +0000 (09:43 -0500)]
gnu: curl: Update to 7.40.0.

* gnu/packages/patches/curl-gss-api-fix.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/curl.scm (curl): Update to 7.40.0.  Add patch.

9 years agoMerge branch 'master' into core-updates
Mark H Weaver [Sun, 11 Jan 2015 14:38:49 +0000 (09:38 -0500)]
Merge branch 'master' into core-updates

9 years agognu: qt: Add more inputs.
宋文武 [Sun, 11 Jan 2015 11:51:51 +0000 (19:51 +0800)]
gnu: qt: Add more inputs.

* gnu/packages/qt.scm (qt): Add expat, pciutils, libxcomposite, libxcursor,
  libxfixes, libxinerama, libxml2, libxrandr, libxslt, libxtst, mtdev, nss,
  pcre, sqlite, eudev to 'inputs'.
  Add bison, flex, gperf, ninja, python-2, ruby, which to 'native-inputs'.

9 years agognu: qt: Update to 5.4.0.
宋文武 [Sat, 3 Jan 2015 06:12:01 +0000 (14:12 +0800)]
gnu: qt: Update to 5.4.0.

* gnu/packages/qt.scm (qt): Update to 5.4.0.
  [origin]: Add snippet.

9 years agognu: Add ninja.
宋文武 [Fri, 9 Jan 2015 13:37:30 +0000 (21:37 +0800)]
gnu: Add ninja.

* gnu/packages/ninja.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.

9 years agognu: Add nss.
宋文武 [Tue, 6 Jan 2015 15:57:31 +0000 (23:57 +0800)]
gnu: Add nss.

* gnu/packages/patches/nss-pkgconfig.patch: New file.
* gnu-system.scm (dist_patch_DATA): Add it.
* gnu/packages/gnuzilla.scm (nss): New variable.

9 years agognu: Move mozjs and nspr to (gnu packages gnuzilla).
宋文武 [Sun, 11 Jan 2015 01:29:10 +0000 (09:29 +0800)]
gnu: Move mozjs and nspr to (gnu packages gnuzilla).

* gnu/packages/polkit.scm (mozjs, nspr): Move to...
* gnu/packages/gnuzilla.scm (mozjs, nspr): ... here. New variables.

9 years agognu: libtool: Add m4 to propagated-inputs.
Mark H Weaver [Sun, 11 Jan 2015 00:14:29 +0000 (19:14 -0500)]
gnu: libtool: Add m4 to propagated-inputs.

* gnu/packages/autotools.scm (libtool)[propagated-inputs]: Add m4.

9 years agognu: file: Update to 5.22.
Mark H Weaver [Sat, 10 Jan 2015 05:04:02 +0000 (00:04 -0500)]
gnu: file: Update to 5.22.

* gnu/packages/file.scm (file): Update to 5.22.

9 years agognu: linux-libre: Update to 3.18.2
Jason Self [Sat, 10 Jan 2015 05:19:43 +0000 (21:19 -0800)]
gnu: linux-libre: Update to 3.18.2

* gnu/packages/linux.scm (linux-libre): Update to version 3.18.2.

9 years agoderivations: Add 'substitution-oracle' and use it.
Ludovic Courtès [Fri, 9 Jan 2015 23:39:59 +0000 (00:39 +0100)]
derivations: Add 'substitution-oracle' and use it.

This makes 'guix environment PACKAGE' significantly faster when
substitutes are enabled.  Before that, it would lead to many invocations
of 'guix substitute-binary', one per 'derivation-prerequisites-to-build'
call.  Now, all these are replaced by a single invocation.

* guix/derivations.scm (derivation-output-paths, substitution-oracle):
  New procedures.
  (derivation-prerequisites-to-build): Replace #:use-substitutes? with
  #:substitutable?.  Remove the local 'derivation-output-paths' and
  'substitutable?'.
* guix/ui.scm (show-what-to-build): Add 'substitutable?'.  Pass it to
  'derivation-prerequisites-to-build'.
  [built-or-substitutable?]: Use it instead of 'has-substitutes?'.
* tests/derivations.scm ("derivation-prerequisites-to-build and
  substitutes"): Use #:substitutable? instead of #:use-substitutes?.

9 years agoderivations: Add 'derivation-output-names'.
Ludovic Courtès [Fri, 9 Jan 2015 22:33:42 +0000 (23:33 +0100)]
derivations: Add 'derivation-output-names'.

* guix/derivations.scm (derivation-output-names): New procedure.
  (derivation-prerequisites-to-build): Use it for #:outputs.
  (map-derivation): Likewise.
* tests/derivations.scm ("derivation-output-names"): New test.

9 years agonls: Update 'eo' translation.
Ludovic Courtès [Fri, 9 Jan 2015 22:33:05 +0000 (23:33 +0100)]
nls: Update 'eo' translation.

9 years agobuild-system/gnu: Patch /usr/bin/file in all 'configure' files.
Ludovic Courtès [Fri, 9 Jan 2015 21:35:33 +0000 (22:35 +0100)]
build-system/gnu: Patch /usr/bin/file in all 'configure' files.

* guix/build/utils.scm (patch-/usr/bin/file): New procedure.
* guix/build/gnu-build-system.scm (patch-usr-bin-file): Rewrite using
  it.  Patch all the files returned by 'find-files' that are executable.
* gnu/packages/gawk.scm (gawk)[arguments]: Remove use of 'substitute*'
  for 'extension/configure'.

9 years agoimport: Add CPAN importer.
Eric Bavier [Thu, 8 Jan 2015 20:51:13 +0000 (14:51 -0600)]
import: Add CPAN importer.

* guix/import/cpan.scm, guix/scripts/import/cpan.scm, tests/cpan.scm:
  New files.
* Makefile.am (MODULE)[HAVE_GUILE_JSON]: Add them.
* guix/scripts/import.scm (importers): Add cpan.
* doc/guix.texi (Requirements): Mention `guix import cpan` as a user
  of guile-json.
  (Invoking guix import): Document new `guix import cpan` command.

9 years agotests: import: Factorize utility function.
Eric Bavier [Thu, 8 Jan 2015 20:41:15 +0000 (14:41 -0600)]
tests: import: Factorize utility function.

* tests/pypi.scm (mock): Move this...
* guix/tests.scm: to here.

9 years agoimport: Factorize utility functions.
Eric Bavier [Thu, 8 Jan 2015 20:38:54 +0000 (14:38 -0600)]
import: Factorize utility functions.

* guix/import/pypi.scm (hash-table->alist, flatten, assoc-ref*,
  url-fetch, json-fetch): Pull procedures from here into...
* guix/import/utils.scm: Here and...
* guix/import/json.scm: Here.  New file.
* Makefile.am (MODULE)[HAVE_GUILE_JSON]: Add it.
* guix/import/gnu.scm (file-sha256): Move from here to...
* guix/hash.scm: Here.
* tests/pypi.scm (pypi->guix-package): Update mock module reference.

9 years agoimport: gnu: Propagate the key-download argument.
Eric Bavier [Wed, 7 Jan 2015 23:01:17 +0000 (17:01 -0600)]
import: gnu: Propagate the key-download argument.

* guix/import/gnu.scm (gnu->guix-package): Pass the key-download
  argument on to gnu-package->sexp.

9 years agognu: poppler: build with openjpeg and lcms
Ricardo Wurmus [Wed, 7 Jan 2015 16:43:18 +0000 (17:43 +0100)]
gnu: poppler: build with openjpeg and lcms

* gnu/packages/pdf.scm (poppler): build poppler with openjpeg 1.5 and lcms.

9 years agognu: openjpeg: Update to 2.0.1.
Ricardo Wurmus [Wed, 7 Jan 2015 16:47:37 +0000 (17:47 +0100)]
gnu: openjpeg: Update to 2.0.1.

* gnu/packages/image.scm (openjpeg): Update to 2.0.1.

9 years agognu: Add openjpeg-1.
Ricardo Wurmus [Wed, 7 Jan 2015 16:40:13 +0000 (17:40 +0100)]
gnu: Add openjpeg-1.

* gnu/packages/image.scm (openjpeg-1): New variable.

9 years agognu: openjpeg: update home page URL.
Ricardo Wurmus [Wed, 7 Jan 2015 16:34:08 +0000 (17:34 +0100)]
gnu: openjpeg: update home page URL.

* gnu/packages/image.scm (openjpeg)[home-page]: Update URL.

9 years agosubstitute-binary: Micro-optimize 'narinfo-sha256'.
Ludovic Courtès [Fri, 9 Jan 2015 00:10:31 +0000 (01:10 +0100)]
substitute-binary: Micro-optimize 'narinfo-sha256'.

* guix/scripts/substitute-binary.scm (narinfo-signature->canonical-sexp):
  Change "~a" to "~s" in error message.
  (%signature-line-rx): Remove.
  (narinfo-sha256): Use 'string-contains' instead of 'regexp-exec', and
  'string-take' instead of 'match:substring'.

9 years agorecords: Optimize 'recutils->alist' by avoiding regexps.
Ludovic Courtès [Fri, 9 Jan 2015 00:07:57 +0000 (01:07 +0100)]
records: Optimize 'recutils->alist' by avoiding regexps.

* guix/records.scm (%recutils-field-rx, %recutils-comment-rx,
  %recutils-plus-rx): Remove.
  (%recutils-field-charset): New variable.
  (recutils->alist): Adjust to use tests (string-ref line 0) instead of
  regexps.

9 years agobase64: Inline arithmetic operations.
Ludovic Courtès [Fri, 9 Jan 2015 00:01:04 +0000 (01:01 +0100)]
base64: Inline arithmetic operations.

* guix/base64.scm (define-alias): New macro.
  (fxbit-field, fxarithmetic-shift, fxarithmetic-shift-left, fxand,
  fxior, fxxor): New aliases.

9 years agognu: Add bootstrap binaries for 'armhf-linux'.
Mark H Weaver [Wed, 31 Dec 2014 09:23:12 +0000 (04:23 -0500)]
gnu: Add bootstrap binaries for 'armhf-linux'.

* gnu/packages/bootstrap/armhf-linux/bash,
  gnu/packages/bootstrap/armhf-linux/mkdir,
  gnu/packages/bootstrap/armhf-linux/tar,
  gnu/packages/bootstrap/armhf-linux/xz: New files.

* gnu-system.am (bootstrap_armhf_linuxdir, dist_bootstrap_armhf_linux_DATA)
  (nodist_bootstrap_armhf_linux_DATA): New variables.
  (DISTCLEANFILES): Add $(nodist_bootstrap_armhf_linux_DATA).
  (gnu/packages/bootstrap/armhf-linux/guile-2.0.11.tar.xz): New target.
* build-aux/download.scm (file-name->uri): Use newer date in URI for
  armhf-linux.
* gnu/packages/bootstrap.scm (raw-build): Use "guile-2.0.11.tar.xz" on
  armhf-linux.
  (glibc-dynamic-linker, %bootstrap-coreutils&co, %bootstrap-binutils)
  (%bootstrap-glibc, %bootstrap-gcc): Add armhf-linux cases.

* m4/guix.m4 (GUIX_SYSTEM_TYPE): Add armhf case.
  (GUIX_ASSERT_SUPPORTED_SYSTEM): Add armhf-linux to list of
  supported systems.
* doc/guix.texi (GNU Distribution): Add armhf-linux to the list of
  supported systems.

9 years agognu: libtool: Skip nopic test on ARM and MIPS systems.
Mark H Weaver [Wed, 7 Jan 2015 22:54:53 +0000 (17:54 -0500)]
gnu: libtool: Skip nopic test on ARM and MIPS systems.

* gnu/packages/patches/libtool-skip-tests.patch: Skip nopic test on ARM and
  MIPS systems.

9 years agotests: Add missing copyright line.
Ludovic Courtès [Wed, 7 Jan 2015 21:33:21 +0000 (22:33 +0100)]
tests: Add missing copyright line.

* tests/lint.scm: Add missing copyright line for commit 907c98ac and
  others.

9 years agognu: Add toolchain support for 'armhf-linux'.
Mark H Weaver [Wed, 7 Jan 2015 20:55:23 +0000 (15:55 -0500)]
gnu: Add toolchain support for 'armhf-linux'.

Based on preliminary work by John Darrington <john@darrington.wattle.id.au>.

* gnu/packages/cross-base.scm (xgcc-armhf): New variable.
* gnu/packages/gcc.scm (gcc-configure-flags-for-triplet): Add armhf case.
  (gcc-4.7)[pre-configure]: Add gcc/config/*/linux-eabi.h to the list
  of files in which to patch GLIBC_DYNAMIC_LINKER.
* gnu/packages/bootstrap.scm (glibc-dynamic-linker): Add armhf case.
* guix/utils.scm (gnu-triplet->nix-system, nix-system->gnu-triplet):
  Add armhf cases.

9 years agognu: patchelf: On ARM, apply experimental patch to get it working.
Mark H Weaver [Tue, 6 Jan 2015 21:41:55 +0000 (21:41 +0000)]
gnu: patchelf: On ARM, apply experimental patch to get it working.

* gnu/packages/patches/patchelf-rework-for-arm.patch: New file.
* gnu-system.am: Add it.
* gnu/packages/elf.scm: Apply patch when the target is ARM.

9 years agognu: gmp: Apply fixes for armhf.
Mark H Weaver [Wed, 31 Dec 2014 09:17:45 +0000 (04:17 -0500)]
gnu: gmp: Apply fixes for armhf.

* gnu/packages/patches/gmp-arm-asm-nothumb.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/multiprecision.scm (gmp): Add patch.  Include --build triplet
  in configure args when building natively.
* gnu/packages/commencement.scm (gcc-final): Use bootstrap guile to
  build gmp-source.

9 years agognu: gcc: Use 'gcc-configure-flags-for-triplet' for native compilers too.
Mark H Weaver [Wed, 7 Jan 2015 15:00:44 +0000 (15:00 +0000)]
gnu: gcc: Use 'gcc-configure-flags-for-triplet' for native compilers too.

* gnu/packages/gcc.scm (gcc-configure-flags-for-triplet): Do not export it.
  (gcc-4.7): Pass the result of 'gcc-configure-flags-for-triplet' to configure
  for all builds, including native ones.
* gnu/packages/cross-base.scm (cross-gcc-arguments): Do not add the result of
  'gcc-configure-flags-for-triplet' here, since it is now included in the
  configure-flags inherited from gcc-4.8.

9 years agoMove 'nix-system->gnu-triplet' to (guix utils) and export it.
Mark H Weaver [Wed, 31 Dec 2014 08:47:40 +0000 (03:47 -0500)]
Move 'nix-system->gnu-triplet' to (guix utils) and export it.

* gnu/packages/commencement.scm (nix-system->gnu-triplet): Move to...
* guix/utils.scm (nix-system->gnu-triplet): ... here.  Fix docstring typo.

9 years agognu: gcc-static: Remove -lgcc_s from GNU_USER_TARGET_LIB_SPEC.
Mark H Weaver [Fri, 2 Jan 2015 03:53:55 +0000 (22:53 -0500)]
gnu: gcc-static: Remove -lgcc_s from GNU_USER_TARGET_LIB_SPEC.

* gnu/packages/make-bootstrap.scm (%gcc-static): Add 'remove-lgcc_s
  phase.
* gnu/packages/gcc.scm (gcc-4.7): Add comment.

9 years agognu: bootstrap: Fix egrep and fgrep after unpacking bootstrap binaries.
Mark H Weaver [Wed, 31 Dec 2014 08:41:50 +0000 (03:41 -0500)]
gnu: bootstrap: Fix egrep and fgrep after unpacking bootstrap binaries.

* gnu/packages/bootstrap.scm (%bootstrap-coreutils&co): Add #:snippet argument
  to 'package-from-tarball' that calls 'patch-shebang' on egrep and fgrep
  after unpacking.  Test 'fgrep' instead of 'true'.

9 years agognu: bootstrap: Add support for snippets to 'package-from-tarball'.
Mark H Weaver [Wed, 31 Dec 2014 08:38:26 +0000 (03:38 -0500)]
gnu: bootstrap: Add support for snippets to 'package-from-tarball'.

* gnu/packages/bootstrap.scm (package-from-tarball): Add new keyword
  argument #:snippet.

9 years agognu: tcl: Pass --mandir to configure.
Mark H Weaver [Wed, 7 Jan 2015 16:56:13 +0000 (11:56 -0500)]
gnu: tcl: Pass --mandir to configure.

This partially reverts 9b1bf33081652210502c6ef34506e27a9bc60f06.
"gnu: Remove a bunch of now unneeded '--mandir' configure flags."

* gnu/packages/tcl.scm (tcl)[arguments]: Put back the --mandir configure flag,
  with a comment explaining why it's still needed.

9 years agognu: Make libtool and libltdl completely separate.
Ludovic Courtès [Wed, 7 Jan 2015 08:44:10 +0000 (09:44 +0100)]
gnu: Make libtool and libltdl completely separate.

* gnu/packages/autotools.scm (libtool)[outputs]: Remove.
  [arguments]: Remove 'if' around arguments.  Add #:configure-flags.
* gnu/packages/apr.scm (apr)[inputs]: Change libtool to libltdl.
* gnu/packages/fontutils.scm (libuninameslist)[native-inputs]: Remove
  "libtool-bin".
* gnu/packages/global.scm (global): Change libtool to libltdl.
* gnu/packages/gnunet.scm (libextractor, gnunet): Likewise.
* gnu/packages/graphviz.scm (graphviz): Likewise.
* gnu/packages/libcanberra.scm (libcanberra): Likewise.
* gnu/packages/libevent.scm (libuv)[native-inputs]: Remove "bin" part
  for libtool.
* gnu/packages/mail.scm (mailutils): Change libtool to libltdl.
  (libetpan): Remove "bin" part for libtool.
* gnu/packages/mp3.scm (libmp3splt): Change libtool to libltdl.
* gnu/packages/openldap.scm (openldap): Remove "bin" part of libtool.
  Move it from 'inputs' to 'native-inputs'.
* gnu/packages/photo.scm (libgphoto2): Change libtool to libltdl.
* gnu/packages/pulseaudio.scm (pulseaudio): Likewise.
* gnu/packages/ssh.scm (guile-ssh): Remove "bin" part of libtool.
* gnu/packages/web.scm (libpsl): Likewise.
* gnu/packages/weechat.scm (weechat): Move libtool to 'native-inputs'
  and add libltdl to 'inputs'.

9 years agognu: libtool: Update to 2.4.4.
Ludovic Courtès [Tue, 6 Jan 2015 22:22:00 +0000 (23:22 +0100)]
gnu: libtool: Update to 2.4.4.

* gnu/packages/patches/libtool-2.4-skip-tests.patch: Rename to...
* gnu/packages/patches/libtool-skip-tests.patch: ... this.
* gnu/packages/patches/libtool-skip-tests-for-mips.patch: Remove.
* gnu-system.am (dist_patch_DATA): Adjust accordingly.
* gnu/packages/autotools.scm (libtool): Update to 2.4.4.
  (libtool-2.4.4): Remove.

9 years agognu: guile: Depend on 'libltdl' rather than 'libtool'.
Ludovic Courtès [Tue, 6 Jan 2015 22:14:59 +0000 (23:14 +0100)]
gnu: guile: Depend on 'libltdl' rather than 'libtool'.

* gnu/packages/guile.scm (guile-1.8, guile-2.0): Replace LIBTOOL with
  LIBLTDL.

9 years agognu: libtool: Add libltdl as a separate package.
Ludovic Courtès [Tue, 6 Jan 2015 22:12:05 +0000 (23:12 +0100)]
gnu: libtool: Add libltdl as a separate package.

* gnu/packages/autotools.scm (libltdl): New variable.

9 years agognu: libtool: Use 'parallel-job-count' to get the argument for '-j'.
Ludovic Courtès [Tue, 6 Jan 2015 21:58:26 +0000 (22:58 +0100)]
gnu: libtool: Use 'parallel-job-count' to get the argument for '-j'.

* gnu/packages/autotools.scm (libtool)[arguments] <check>:
  Use (parallel-job-count) instead of hand-written code.

9 years agoRevert "gnu: gcc: Add '-lgcc_s' only when '-pthread' is given."
Mark H Weaver [Wed, 7 Jan 2015 14:51:23 +0000 (09:51 -0500)]
Revert "gnu: gcc: Add '-lgcc_s' only when '-pthread' is given."

This reverts commit 9097e666d48c9b6c0263dcbe60b5af69ff7689f4.

This turned out not to be a good strategy.  Some build system, e.g. tcl's, do
not pass -pthread on GNU/Linux by default, but merely link with -lpthread.
Also, Ludovic found other cases where libgcc_s is dlopened by libc that have
nothing to do with pthreads, e.g. to walk the stack.

9 years agognu: guile: Apply fixes for arm.
Mark H Weaver [Wed, 31 Dec 2014 09:48:46 +0000 (04:48 -0500)]
gnu: guile: Apply fixes for arm.

* gnu/packages/patches/guile-arm-fixes.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/guile.scm (guile-2.0): Add patch.

9 years agognu: gcc: Add '-lgcc_s' only when '-pthread' is given.
Mark H Weaver [Fri, 2 Jan 2015 03:53:55 +0000 (22:53 -0500)]
gnu: gcc: Add '-lgcc_s' only when '-pthread' is given.

Suggested by Ludovic Courtès <ludo@gnu.org>.

* gnu/packages/gcc.scm (gcc-4.7): In our modified GNU_USER_TARGET_LIB_SPEC,
  add '-lgcc_s' only when '-pthread' is given.

9 years agognu: gcc: Improve dynamic linker patching code.
Mark H Weaver [Wed, 7 Jan 2015 00:37:04 +0000 (19:37 -0500)]
gnu: gcc: Improve dynamic linker patching code.

* gnu/packages/gcc.scm (gcc-4.7): Join multi-line definitions of
  GLIBC_DYNAMIC_LINKER* before attempting substitutions.
  (gcc-4.9)[arguments]: Remove arguments override.

9 years agognu: patchelf: Update to 0.8.
Mark H Weaver [Tue, 6 Jan 2015 21:38:35 +0000 (21:38 +0000)]
gnu: patchelf: Update to 0.8.

* gnu/packages/elf.scm (patchelf): Update to 0.8.
* gnu/packages/patches/patchelf-page-size.patch: Adapt to new version.

9 years agognu: bash: Update to 4.3.33.
Mark H Weaver [Tue, 6 Jan 2015 22:46:00 +0000 (17:46 -0500)]
gnu: bash: Update to 4.3.33.

* gnu/packages/bash.scm (%patch-series-4.3): Add patches 31-33.

9 years agognu: udev: Remove package, now superceded by eudev.
Mark H Weaver [Tue, 6 Jan 2015 19:02:08 +0000 (14:02 -0500)]
gnu: udev: Remove package, now superceded by eudev.

* gnu/packages/linux.scm (udev): Remove.
  (eudev): Incorporate fields formerly inherited from udev.

9 years agognu: lvm2: Switch to eudev from udev.
Mark H Weaver [Tue, 6 Jan 2015 18:52:57 +0000 (13:52 -0500)]
gnu: lvm2: Switch to eudev from udev.

* gnu/packages/linux.scm (lvm2)[inputs]: Use eudev, not udev.

9 years agognu: swig: Build a UTF-8 locale for the tests.
Mark H Weaver [Tue, 6 Jan 2015 11:02:25 +0000 (11:02 +0000)]
gnu: swig: Build a UTF-8 locale for the tests.

* gnu/packages/swig.scm (swig)[arguments]: Add 'install-locales' phase.

9 years agognu: icu4c: Avoid use of 'patchelf'; fix build on ARM systems.
Mark H Weaver [Mon, 5 Jan 2015 19:50:25 +0000 (19:50 +0000)]
gnu: icu4c: Avoid use of 'patchelf'; fix build on ARM systems.

* gnu/packages/icu4c.scm (icu4c)[inputs]: Remove patchelf.
  [configure-flags]: Add --enable-rpath.  Add --with-data-packaging=archive
  on arm systems.
  [phases]: Remove 'add-lib-to-runpath' phase.

9 years agognu: gawk: Fix target-system check.
Mark H Weaver [Tue, 6 Jan 2015 18:27:18 +0000 (13:27 -0500)]
gnu: gawk: Fix target-system check.

* gnu/packages/gawk.scm (gawk): Fix target-system check.

9 years agognu: boost: Fix target-system check.
Mark H Weaver [Tue, 6 Jan 2015 18:22:42 +0000 (13:22 -0500)]
gnu: boost: Fix target-system check.

* gnu/packages/boost.scm (boost): Fix target-system check.

9 years agognu: texlive: Fix target-system check.
Mark H Weaver [Tue, 6 Jan 2015 18:16:43 +0000 (13:16 -0500)]
gnu: texlive: Fix target-system check.

* gnu/packages/texlive.scm (texlive)[arguments]: Fix target-system
  check.

9 years agognu: gtk+: Include xorg-server in native-inputs on MIPS; enable tests.
Mark H Weaver [Tue, 6 Jan 2015 18:11:43 +0000 (13:11 -0500)]
gnu: gtk+: Include xorg-server in native-inputs on MIPS; enable tests.

* gnu/packages/gtk.scm (gtk+)[native-inputs]: Unconditionally include
  xorg-server and enable tests.

9 years agognu: mit-krb5: Build with default gcc.
Mark H Weaver [Mon, 5 Jan 2015 23:09:07 +0000 (23:09 +0000)]
gnu: mit-krb5: Build with default gcc.

* gnu/packages/mit-krb5.scm (mit-krb5)[native-inputs]: Remove gcc-4.7.

9 years agoMerge branch 'master' into core-updates
Mark H Weaver [Tue, 6 Jan 2015 17:57:15 +0000 (12:57 -0500)]
Merge branch 'master' into core-updates

9 years agognu: automake: Update to 1.15.
Ludovic Courtès [Tue, 6 Jan 2015 16:54:25 +0000 (17:54 +0100)]
gnu: automake: Update to 1.15.

* gnu/packages/autotools.scm (automake): Update to 1.15.

9 years agognu: git-manpages: Install under $out/share/man, not $out/share.
Ludovic Courtès [Tue, 6 Jan 2015 14:20:12 +0000 (15:20 +0100)]
gnu: git-manpages: Install under $out/share/man, not $out/share.

* gnu/packages/version-control.scm (git-manpages)[argument]: Install
  under $out/share/man, not $out/share.

9 years agognu: Add git-manpages.
Ludovic Courtès [Tue, 6 Jan 2015 14:07:22 +0000 (15:07 +0100)]
gnu: Add git-manpages.

* gnu/packages/version-control.scm (git-manpages): New variable.

9 years agognu: git: Update to 2.2.1.
Ludovic Courtès [Tue, 6 Jan 2015 14:06:38 +0000 (15:06 +0100)]
gnu: git: Update to 2.2.1.

* gnu/packages/version-control.scm (git): Update to 2.2.1.

9 years agognu: libtool-2.4.4: Disable tests on MIPS.
Ludovic Courtès [Tue, 6 Jan 2015 13:52:56 +0000 (14:52 +0100)]
gnu: libtool-2.4.4: Disable tests on MIPS.

* gnu/packages/autotools.scm (libtool-2.4.4)[arguments]: New field.

9 years agolinux-boot: Make /etc/mtab a symlink to /proc/self/mounts.
宋文武 [Mon, 5 Jan 2015 14:07:03 +0000 (22:07 +0800)]
linux-boot: Make /etc/mtab a symlink to /proc/self/mounts.

Fixes <http://bugs.gnu.org/19491>.

* gnu/build/linux-boot.scm (mount-root-file-system): Make /root/etc/mtab
  a symlink to /proc/self/mounts.
* gnu/build/file-systems.scm (mount-file-system): Don't update /etc/mtab.
* guix/build/syscalls.scm (mount, umount): Have #:update-mtab? default to
  #f.

9 years agodoc: guix-daemon now automatically creates '…/profiles/per-user'.
Ludovic Courtès [Sun, 4 Jan 2015 22:42:51 +0000 (23:42 +0100)]
doc: guix-daemon now automatically creates '…/profiles/per-user'.

Fixes <http://bugs.gnu.org/19315>.
Reported by rekado <rekado@elephly.net>.

* doc/guix.texi (Invoking guix package): Adjust text to new guix-daemon
  behavior introduced in commit 15ddeff.

9 years agobuild: Check for <tr1/unordered_set>, now used by the daemon.
Ludovic Courtès [Sun, 4 Jan 2015 22:28:18 +0000 (23:28 +0100)]
build: Check for <tr1/unordered_set>, now used by the daemon.

* config-daemon.ac: Check for <tr1/unordered_set>.

9 years agoMerge commit a1dd396cc02922372314c35c8035a38bfeea08df of branch 'nix'.
Ludovic Courtès [Sun, 4 Jan 2015 22:27:34 +0000 (23:27 +0100)]
Merge commit a1dd396cc02922372314c35c8035a38bfeea08df of branch 'nix'.

9 years agopk-crypto: Improve docstring of signature-related procedures.
Ludovic Courtès [Sun, 4 Jan 2015 17:00:23 +0000 (18:00 +0100)]
pk-crypto: Improve docstring of signature-related procedures.

* guix/pk-crypto.scm (bytevector->hash-data, sign): Augment docstring.

9 years agognu: Remove a bunch of now unneeded '--mandir' configure flags.
Ludovic Courtès [Sun, 4 Jan 2015 21:23:48 +0000 (22:23 +0100)]
gnu: Remove a bunch of now unneeded '--mandir' configure flags.

This has become redundant with the 'validate-documentation-location'
phase introduced in commit d68fe74.

* gnu/packages/compression.scm (bzip2): Remove 'fix-man-dir' phase.
* gnu/packages/ncurses.scm (ncurses)[arguments]: Remove --mandir.
* gnu/packages/pth.scm (pth)[arguments]: Remove #:configure-flags.
* gnu/packages/tcl.scm (tcl)[arguments]: Likewise.
* gnu/packages/xiph.scm (flac)[arguments]: Likewise.

9 years agold-wrapper: Add '-rpath' flag for libraries passed by file name.
Ludovic Courtès [Sun, 4 Jan 2015 21:21:11 +0000 (22:21 +0100)]
ld-wrapper: Add '-rpath' flag for libraries passed by file name.

Discussed at
<http://lists.gnu.org/archive/html/guix-devel/2015-01/msg00028.html>.

* gnu/packages/ld-wrapper.scm (switch-arguments, library-path): Remove.
  (library-files-linked): Rewrite to include the name of libraries
  passed by file names, and to honor the current -L search path instead
  of the final one.
  (rpath-arguments): Remove 'lib-path' parameter.  Expect LIBRARY-FILES
  to be a list of absolute file names.
  (ld-wrapper): Adjust accordingly.

9 years agobuild-system/gnu: Use executables from the target inputs in 'patch-shebangs'.
Ludovic Courtès [Sun, 4 Jan 2015 17:16:16 +0000 (18:16 +0100)]
build-system/gnu: Use executables from the target inputs in 'patch-shebangs'.

Fixes <http://bugs.gnu.org/18895>.

* guix/build/gnu-build-system.scm (patch-shebangs): Add #:inputs
  parameter.  Remove 'bindirs'.  Add 'bin-directories',
  'output-bindirs', and 'input-bindirs'.  Use them instead of (getenv
  "PATH") to as the argument to 'patch-shebang'.

9 years agognu: gcc-4.9: Fix build on MIPS.
Mark H Weaver [Sun, 4 Jan 2015 04:44:11 +0000 (23:44 -0500)]
gnu: gcc-4.9: Fix build on MIPS.

* gnu/packages/gcc.scm (gcc-4.9): Add 'join-two-line-dynamic-linker-defns
  phase.

9 years agognu: Search for patches under $GUIX_PACKAGE_PATH.
Ludovic Courtès [Sat, 3 Jan 2015 22:49:42 +0000 (23:49 +0100)]
gnu: Search for patches under $GUIX_PACKAGE_PATH.

Fixes <http://bugs.gnu.org/19364>.
Reported by Tomáš Čech <sleep_walker@suse.cz>
and Mark H Weaver <mhw@netris.org>.

* gnu/packages.scm (%patch-path): Move after definition of
  %package-module-path'.  Append "/gnu/packages/patches" only to
  %DISTRO-ROOT-DIRECTORY.
* tests/guix-package.sh: Add 'emacs-foo-bar-patched' test.

9 years agognu: libtool: Add 2.4.4.
Ludovic Courtès [Sat, 3 Jan 2015 22:35:43 +0000 (23:35 +0100)]
gnu: libtool: Add 2.4.4.

* gnu/packages/patches/libtool-2.4-skip-tests.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/autotools.scm (libtool-2.4.4): New variable.

9 years agoguix package: Follow symlinks for pattern search paths.
Ludovic Courtès [Sat, 3 Jan 2015 18:46:07 +0000 (19:46 +0100)]
guix package: Follow symlinks for pattern search paths.

* guix/scripts/package.scm (search-path-environment-variables): Add
  local 'files' variable.
* tests/packages.scm ("--search-paths with pattern"): New test.

9 years agognu: libxml2: Wrap search path specification in a list.
Ludovic Courtès [Sat, 3 Jan 2015 17:48:16 +0000 (18:48 +0100)]
gnu: libxml2: Wrap search path specification in a list.

Reported by Mark H Weaver.

* gnu/packages/xml.scm (libxml2)[native-search-paths]: Wrap into a list.

9 years agognu: minetest: Update to 0.4.11.
David Thompson [Fri, 2 Jan 2015 15:28:47 +0000 (10:28 -0500)]
gnu: minetest: Update to 0.4.11.

* gnu/packages/patches/minetest-subgame-env-var.patch: Delete.
* gnu-system.am (dist_patch_DATA): Remove patch.
* gnu/packages/games.scm (minetest, minetest-data): Update to 0.4.11.

9 years agognu: icon-naming-utils: Wrap with PERL5LIB to find XML::Simple.
宋文武 [Thu, 1 Jan 2015 01:30:23 +0000 (09:30 +0800)]
gnu: icon-naming-utils: Wrap with PERL5LIB to find XML::Simple.

Fixes <http://bugs.gnu.org/19367>.

* gnu/packages/gnome.scm (icon-naming-utils)[arguments]: New field.

9 years agognu: perl-xml-simple: Propagate XML::Parser.
宋文武 [Thu, 1 Jan 2015 01:23:24 +0000 (09:23 +0800)]
gnu: perl-xml-simple: Propagate XML::Parser.

* gnu/packages/xml.scm (perl-xml-simple): Move XML::Parser from 'inputs'
  to 'propagated-inputs'.

9 years agognu: mesa: Fix build on non-intel systems.
Mark H Weaver [Thu, 1 Jan 2015 06:55:37 +0000 (01:55 -0500)]
gnu: mesa: Fix build on non-intel systems.

* gnu/packages/gl.scm (mesa): On non-intel systems, pass
  "--with-dri-drivers=" configure flag with i915 and i965 removed.

9 years agognu: libdrm: Remove old version 2.4.33.
Mark H Weaver [Thu, 1 Jan 2015 04:15:07 +0000 (23:15 -0500)]
gnu: libdrm: Remove old version 2.4.33.

* gnu/packages/xdisorg.scm (libdrm-2.4.33): Remove, as it is no longer needed.

9 years agognu: glibc: MIPS: Avoid a dangling `vfork@GLIBC_2.0' reference.
Mark H Weaver [Wed, 31 Dec 2014 00:58:05 +0000 (19:58 -0500)]
gnu: glibc: MIPS: Avoid a dangling `vfork@GLIBC_2.0' reference.

* gnu/packages/patches/glibc-mips-dangling-vfork-ref.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/base.scm (glibc): Add patch.

9 years agognu: mutt: Add fix for CVE-2014-9116.
Mark H Weaver [Tue, 30 Dec 2014 20:17:44 +0000 (15:17 -0500)]
gnu: mutt: Add fix for CVE-2014-9116.

* gnu/packages/patches/mutt-CVE-2014-9116.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/mail.scm (mutt): Add patch.

9 years agognu: Import (gnu packages) into (gnu packages zip).
Mark H Weaver [Tue, 30 Dec 2014 20:10:30 +0000 (15:10 -0500)]
gnu: Import (gnu packages) into (gnu packages zip).

Should have been included in: e5da2f38c3ca8d4626c1b87e045d00d28c1bf4d0.

* gnu/packages/zip.scm: Import (gnu packages).

9 years agognu: unzip: Add fixes for CVE-2014-{8139,8140,8141}.
Mark H Weaver [Tue, 30 Dec 2014 19:46:21 +0000 (14:46 -0500)]
gnu: unzip: Add fixes for CVE-2014-{8139,8140,8141}.

* gnu/packages/patches/unzip-CVE-2014-8139.patch,
  gnu/packages/patches/unzip-CVE-2014-8140.patch,
  gnu/packages/patches/unzip-CVE-2014-8141.patch: New files.
* gnu-system.am (dist_patch_DATA): Add them.
* gnu/packages/zip.scm (unzip): Add patches.

9 years agognu: cpio: Add fixes for CVE-2014-9112.
Mark H Weaver [Tue, 30 Dec 2014 19:13:20 +0000 (14:13 -0500)]
gnu: cpio: Add fixes for CVE-2014-9112.

* gnu/packages/patches/cpio-CVE-2014-9112-pt1.patch,
  gnu/packages/patches/cpio-CVE-2014-9112-pt2.patch,
  gnu/packages/patches/cpio-CVE-2014-9112-pt3.patch,
  gnu/packages/patches/cpio-CVE-2014-9112-pt4.patch,
  gnu/packages/patches/cpio-CVE-2014-9112-pt5.patch: New files.
* gnu-system.am (dist_patch_DATA): Add them.
* gnu/packages/cpio.scm (cpio): Add patches.  Add 'autoconf' to
  native-inputs.

9 years agognu: glibc: Add fixes for CVE-2014-7817 and CVE-2012-3406.
Mark H Weaver [Tue, 30 Dec 2014 18:57:40 +0000 (13:57 -0500)]
gnu: glibc: Add fixes for CVE-2014-7817 and CVE-2012-3406.

* gnu/packages/patches/glibc-CVE-2012-3406.patch,
  gnu/packages/patches/glibc-CVE-2014-7817.patch: New files.
* gnu-system.am (dist_patch_DATA): Add them.
* gnu/packages/base.scm (glibc): Add patches.

9 years agoMerge branch 'master' into core-updates
Mark H Weaver [Tue, 30 Dec 2014 17:23:32 +0000 (12:23 -0500)]
Merge branch 'master' into core-updates

9 years agognu: Revert use of '--strip-all'.
Ludovic Courtès [Mon, 29 Dec 2014 20:44:48 +0000 (21:44 +0100)]
gnu: Revert use of '--strip-all'.

This reverts commits f05bdc9412135f34a1c417edc203c35cd005d0d5
and 856ae5e6c71a1283a414d33e638051f95d3cce35.

This broke all sorts of things.  See <http://hydra.gnu.org/eval/102058>,
for example.

9 years agolist-packages: Expand 'mirror://' URIs for patches.
Ludovic Courtès [Mon, 29 Dec 2014 19:52:08 +0000 (20:52 +0100)]
list-packages: Expand 'mirror://' URIs for patches.

* build-aux/list-packages.scm (package->sxml)[patches](patch-url): Use
  'maybe-expand-mirrors' to get the real URL.

9 years agodownload: Export 'maybe-expand-mirrors'.
Ludovic Courtès [Mon, 29 Dec 2014 19:51:12 +0000 (20:51 +0100)]
download: Export 'maybe-expand-mirrors'.

* guix/build/download.scm (uri-vicinity, maybe-expand-mirrors): New
  procedures.
  (url-fetch): Remove them from here.

9 years agotests: Make the 'lint' tests slightly more concise.
Ludovic Courtès [Mon, 29 Dec 2014 19:44:10 +0000 (20:44 +0100)]
tests: Make the 'lint' tests slightly more concise.

* tests/lint.scm (with-warnings): New macro.
  Replace all uses of 'call-with-warnings' with the corresponding
  'with-warnings' form.

9 years agotests: Factorize the 'dummy-package' macro.
Ludovic Courtès [Mon, 29 Dec 2014 18:11:09 +0000 (19:11 +0100)]
tests: Factorize the 'dummy-package' macro.

* guix/tests.scm (dummy-package): New macro.
* tests/lint.scm (dummy-package): Remove.
* tests/packages.scm (dummy-package): Remove.

9 years agolint: Add tests for the 'home-page' checker.
Ludovic Courtès [Mon, 29 Dec 2014 19:39:58 +0000 (20:39 +0100)]
lint: Add tests for the 'home-page' checker.

Suggested by Cyril Roelandt <tipecaml@gmail.com>.

* tests/lint.scm (%http-server-port, %http-server-socket, %local-url,
  stub-http-server): New variables.
  (http-write, call-with-http-server): New procedures.
  (with-http-server): New macro.
  ("home-page: wrong home-page", "home-page: invalid URI", "home-page:
  host not found", "home-page: Connection refused", "home-page: 200",
  "home-page: 404"): New tests.
* guix/scripts/lint.scm (check-home-page): Export.

9 years agognu: Fix misuses of 'x11-style' licenses.
Ludovic Courtès [Mon, 29 Dec 2014 11:15:22 +0000 (12:15 +0100)]
gnu: Fix misuses of 'x11-style' licenses.

* gnu/packages/xorg.scm (libevdev)[license]: Actually call
  'license:x11-style'.
  (libxshmfence): Likewise.

9 years agognu: Don't use --strip-all in cases where this is problematic.
Ludovic Courtès [Sun, 28 Dec 2014 22:46:59 +0000 (23:46 +0100)]
gnu: Don't use --strip-all in cases where this is problematic.

This is a followup to 856ae5e.  See <http://hydra.gnu.org/build/180506>
for an example of build failure.

* guix/build/gnu-build-system.scm (strip): Add #:archive-strip-flags
  parameter.  Use it when (ar-file? path).
* guix/build-system/gnu.scm (gnu-build): Add #:archive-strip-flags
  parameter and pass it down.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: Add
  #:strip-flags.
* gnu/packages/base.scm (glibc)[arguments]: Likewise.

9 years agolint: Report on the package being checked.
Ludovic Courtès [Sun, 28 Dec 2014 17:21:53 +0000 (18:21 +0100)]
lint: Report on the package being checked.

* guix/scripts/lint.scm (run-checkers): Check
  whether (current-error-port) is a tty, and print the package being
  checked and the checker currently running when it is.

9 years agognu: Fix or update a number of 'home-page' fields.
Ludovic Courtès [Sun, 28 Dec 2014 16:57:16 +0000 (17:57 +0100)]
gnu: Fix or update a number of 'home-page' fields.

* gnu/packages/fltk.scm (fltk): Fix 'home-page'.
* gnu/packages/fonts.scm (font-bitstream-vera): Likewise, and fix
  license URL.
* gnu/packages/games.scm (gnubg, cmatrix, chess): Fix 'home-page'.
* gnu/packages/kde.scm (attica): Likewise.
* gnu/packages/mail.scm (fetchmail): Likewise.
* gnu/packages/popt.scm (popt): Likewise.
* gnu/packages/python.scm (python-mock): Likewise.
* gnu/packages/stalonetray.scm (stalonetray): Likewise.

9 years agolint: Add 'home-page' checker.
Ludovic Courtès [Sun, 28 Dec 2014 16:55:16 +0000 (17:55 +0100)]
lint: Add 'home-page' checker.

* guix/build/download.scm (open-connection-for-uri): Export.
* guix/scripts/lint.scm (probe-uri, check-home-page): New procedures.
  (%checkers): Add 'home-page' checker.

9 years agognu: libxml2: Add search path specification.
Ludovic Courtès [Sat, 27 Dec 2014 22:54:23 +0000 (23:54 +0100)]
gnu: libxml2: Add search path specification.

* gnu/packages/xml.scm (libxml2)[native-search-paths, search-paths]: New
  fields.
* gnu/packages/gnome.scm (gnome-doc-utils)[arguments]: Remove.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Remove settings for
  'XML_CATALOG_FILES' from 'configure' phase.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.