summary refs log tree commit diff
AgeCommit message (Collapse)Author
2014-03-30substitute-binary: Defer narinfo authentication and authorization checks.Ludovic Courtès
* guix/scripts/substitute-binary.scm (narinfo-signature->canonical-sexp): Catch 'gcry-error' around 'string->canonical-sexp' call, and re-raise as a SRFI-35 &message and &nar-signature-error. (narinfo-maker): Handle when SIGNATURE is #f or an invalid canonical sexp. (&nar-signature-error, &nar-invalid-hash-error): New variables. (assert-valid-signature): Use them. Expect 'signature' to be a canonical sexp. (read-narinfo): Remove authentication and authorization checks. (%signature-line-rx): New variable. (assert-valid-narinfo, valid-narinfo?): New procedures. (guix-substitute-binary): Wrap body in 'with-error-handling'. [valid?]: New procedure. <--query>: Show only store items of narinfos that match 'valid-narinfo?'. <--substitute>: Call 'assert-valid-narinfo'. * tests/substitute-binary.scm (test-error*): Use 'test-equal'. (%keypair): Remove. (%public-key, %private-key): Load from signing-key.{pub,sec}. (signature-body): Add #:public-key parameter. (call-with-narinfo): New procedure. (with-narinfo): New macro. ("corrupt signature data", "unauthorized public key", "invalid signature"): Make the first argument to 'assert-valid-signature' a canonical sexp. ("invalid hash", "valid read-narinfo", "valid write-narinfo"): Remove. ("query narinfo with invalid hash", "query narinfo signed with authorized key", "query narinfo signed with unauthorized key", "substitute, invalid hash", "substitute, unauthorized key"): New tests.
2014-03-30substitute-binary: Store the cache's URI in the local cached narinfo.Ludovic Courtès
* guix/scripts/substitute-binary.scm (<narinfo>)[uri-base]: New field. (narinfo-maker): Pass CACHE-URL as the 'uri-base' value. (string->narinfo): Add 'cache-uri' parameter. (lookup-narinfo)[cache-entry]: Switch to version 1. Add 'cache-uri' field. Adjust body accordingly. (remove-expired-cached-narinfos): Switch to version 1 by default.
2014-03-30substitute-binary: Support the Signature field of a narinfo file.Nikita Karetnikov
* guix/scripts/substitute-binary.scm (<narinfo>): Add the 'signature' and 'contents' fields. (narinfo-signature->canonical-sexp): New function. (narinfo-maker): Add the 'signature' argument and use it. (assert-valid-signature): New function. (read-narinfo): Support the Signature field. (write-narinfo): Use 'narinfo-contents'. (%allow-unauthenticated-substitutes?): New variable. * guix/base64.scm, tests/base64.scm, tests/substitute-binary.scm: New files. * Makefile.am (SCM_TESTS): Add tests/base64.scm and tests/substitute-binary.scm. (MODULES): Add guix/base64.scm. * test-env.in: Set 'GUIX_ALLOW_UNAUTHENTICATED_SUBSTITUTES'.
2014-03-30nar: Clarify that 'assert-valid-signature' accepts a string.Nikita Karetnikov
* guix/nar.scm (assert-valid-signature): Improve the wording.
2014-03-29gnu: ed: Upgrade to 1.10.Ludovic Courtès
* gnu/packages/ed.scm (ed): Upgrade to 1.10. Use '.tar.lz' file, and add 'native-inputs' field.
2014-03-29gnu: ocrad: Upgrade to 0.23.Ludovic Courtès
* gnu/packages/ocrad.scm (ocrad): Upgrade to 0.23.
2014-03-29tests: Make sure 'guix archive --import' succeeds.Ludovic Courtès
* tests/guix-archive.sh: Check the exit value of 'guix archive --import'.
2014-03-27daemon: Add tests for substitutes and --no-substitutes.Ludovic Courtès
* tests/guix-daemon.sh: Add substituter tests.
2014-03-27daemon: Clear $NIX_SUBSTITUTERS when passed '--no-substitutes'.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (main): When --no-substitutes is used, clear NIX_SUBSTITUTERS. Before that, and after 89faa5c75cb3a419c6d02c51f56955275b7ae351, '--no-substitutes' would lead to attempts to use 'download-using-manifests.pl', which in practice would gracelessly fail.
2014-03-27daemon: Change some options via 'settings.set'.Ludovic Courtès
* nix/nix-daemon/guix-daemon.cc (parse_opt): Use 'settings.set' instead of direct field access for 'buildCores', 'maxBuildJobs', and 'useSubstitutes'. (main): Call 'settings.update' after 'argp_parse'.
2014-03-26gnu: tcl: Install man pages in share/man.Mark H Weaver
* gnu/packages/tcl.scm (tcl): Add --mandir configure flag.
2014-03-27Add (guix svn-download).Sree Harsha Totakura
* guix/svn-download.scm, guix/build/svn.scm: New files. * Makefile.am (MODULES): Add them. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2014-03-26gnu: gnu-pw-mgr: Fix download location.Andreas Enge
* gnu/packages/gnu-pw-mgr.scm (gnu-pw-mgr): Fix download location.
2014-03-26gnu: Add mcEric Bavier
* gnu/packages/mc.scm: New file * gnu/packages/patches/mc-fix-ncurses-build.patch: New patch * gnu-system.am (GNU_SYSTEM_MODULES): Add mc.scm. (dist_patch_DATA): Add patch
2014-03-26gnu: libssh2: Fix use with libssh2.pcEric Bavier
* gnu/packages/ssh.scm (libssh2): Pass --with-libgcrypt configure flag and propagate inputs.
2014-03-26Merge branch 'core-updates'Ludovic Courtès
2014-03-26offload: Remove erroneous 'close-pipe' call.Ludovic Courtès
* guix/scripts/offload.scm (send-files): Remove 'close-pipe' call from 'guard' handler ('pipe' here referred to Guile's 'pipe' procedure.)
2014-03-26offload: Wait for the processes involved in 'guix archive --missing'.Ludovic Courtès
* guix/scripts/offload.scm (send-files): Keep the second return value of 'filtered-port'. Call 'waitpid' on it.
2014-03-26gnu: gp2c: Upgrade to 0.0.8pl1.Andreas Enge
* gnu/packages/algebra.scm (gp2c): Upgrade to 0.0.8pl1, add native input perl.
2014-03-26offload: Allow one transfer in each direction simultaneously.Ludovic Courtès
* guix/scripts/offload.scm (transfer-and-offload): Use 'upload' lock instead of 'bandwidth' around 'send-files' calls, and 'download' lock around 'retrieve-files' call.
2014-03-26offload: Disable SSH-level compression.Ludovic Courtès
* guix/scripts/offload.scm (remote-pipe): Remove '-z' lsh command line argument. This makes transfers almost an order of magnitude slower. OpenSSH's ssh(1) man page notes: "Compression is desirable on modem lines and other slow connections, but will only slow down things on fast networks." See also <http://www.spikelab.org/blog/transfer-largedata-scp-tarssh-tarnc-compared.html>.
2014-03-26gnu: pari-gp: Upgrade to 2.7.0.Andreas Enge
* gnu/packages/algebra.scm (pari-gp): Upgrade to 2.7.0.
2014-03-25gnu: gnu-pw-mgr: Upgrade to 1.2Eric Bavier
* gnu/packages/gnu-pw-mgr.scm: Upgrade to 1.2
2014-03-25check-available-binaries: Make sure substitutes are enabled.Ludovic Courtès
* build-aux/check-available-binaries.scm: Add call to 'set-build-options'.
2014-03-25hydra: Hard-code target systems.Ludovic Courtès
* build-aux/hydra/gnu-system.scm (hydra-jobs)[systems]: Define locally, independently of ARGUMENTS. This matches the new Hydra convention, where using a 'system' input is deprecated.
2014-03-25gnu: guile-ssh: Upgrade to 0.6.0.Ludovic Courtès
* gnu/packages/ssh.scm (guile-ssh): Upgrade to 0.6.0. [arguments]: Remove #:tests? #f; add #:parallel-build? #f.
2014-03-25gnu: recutils: Upgrade to 1.7.Ludovic Courtès
* gnu/packages/recutils.scm (recutils): Upgrade to 1.7. Add 'arguments' field.
2014-03-25download: Don't use 'http-get*' on Guile 2.0.10+.Ludovic Courtès
* guix/build/download.scm (http-fetch)[post-2.0.7?]: Use 'string->number' and numeric comparison. This fixes version comparison with "2.0.10" and subsequent 2.0 releases.
2014-03-25gnu: Add cursynthEric Bavier
* gnu/packages/cursynth.scm: New file * gnu-system.am (GNU_SYSTEM_MODULES): Add it
2014-03-25gnu: remove python-fix-dbm.patchCyril Roelandt
* gnu/packages/patches/python-fix-dbm.patch: remove file. It is not needed anymore, and is probably a left-over of a failed merge. * gnu-system.am: remove gnu/packages/patches/python-fix-dbm.patch
2014-03-25gnu: Enable tests in Python 3.Cyril Roelandt
* gnu/packages/python.scm: enable tests for Python 3 * gnu/packages/python-fix-tests.patch: New file. * gnu/packages/gnu-system.am (dist_patch_DATA): add it.
2014-03-25gnu: Python: use /nix/.../sh instead of /bin/sh in the subprocess moduleCyril Roelandt
* gnu/packages/python.scm (python-2): patch Lib/subprocess.py to use /nix/.../sh.
2014-03-25gnu: Enable the 'ctypes' module in Python.Cyril Roelandt
* gnu/packages/python.scm (python-2): add libffi to the inputs and use it to build the ctypes module.
2014-03-25hydra: Fix typo in core package list.Ludovic Courtès
* build-aux/hydra/gnu-system.scm: Use (gnu packages gcc). (%core-packages): Remove nonexistent 'gcc'; add GCC-4.8 and GCC-4.7.
2014-03-25hydra: Remove cross-builds from i686-linux to mips64el-linux-gnuabi64.Ludovic Courtès
* build-aux/hydra/gnu-system.scm (hydra-jobs)[cross-jobs]: Define 'from-32-to-64?'. Filter out %CROSS-TARGETS that match.
2014-03-25hydra: Build GCC and glibc, not their '-final' variant.Ludovic Courtès
* build-aux/hydra/gnu-system.scm (%core-packages): Replace GCC-FINAL and GLIBC-FINAL with GCC and GLIBC.
2014-03-24gnu: autotools: Add Autoconf 2.68; turn 'autoconf-wrapper' into a procedure.Manolis Ragkousis
* gnu/packages/autotools.scm (autoconf-2.68): New variable. (autoconf-wrapper): Turn into a procedure. Turn comment into a docstring. (automake): Adjust accordingly. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2014-03-24offload: Compress files being sent/retrieved.Ludovic Courtès
* guix/scripts/offload.scm (send-files): Add "xz -dc |" to the remote pipe command. Pass PIPE through 'call-with-compressed-output-port'. Remove 'close-pipe' call. (retrieve-files): Add "| xz -c" to the remote pipe command. Pass PIPE through 'call-with-decompressed-port'. Remove 'close-pipe' call.
2014-03-24utils: Add 'call-with-decompressed-port' and 'call-with-compressed-output-port'.Ludovic Courtès
* guix/utils.scm (call-with-decompressed-port, call-with-compressed-output-port): New procedures. * tests/utils.scm ("compressed-output-port + decompressed-port"): Rewrite to use them.
2014-03-24utils: Add 'filtered-output-port' and 'compressed-output-port'.Ludovic Courtès
* guix/utils.scm (filtered-output-port, compressed-output-port): New procedures. * tests/utils.scm ("compressed-output-port + decompressed-port"): New test.
2014-03-24gnu: glibc: Patch mtrace.pl to avoid retaining a reference to Perl.Ludovic Courtès
* gnu/packages/base.scm (glibc)[argument] <pre-configure phase>: Patch malloc/mtrace.pl.
2014-03-23gnu: tor: Upgrade to 0.2.4.21.Mark H Weaver
* gnu/packages/tor.scm (tor): Upgrade to 0.2.4.21.
2014-03-22tests: Make sure substitutes are usable when we need them.Ludovic Courtès
* tests/derivations.scm ("derivation-prerequisites-to-build and substitutes"): Add call to 'set-build-options'.
2014-03-22authenticate: Support reading the hash or key from stdin.Ludovic Courtès
* guix/scripts/authenticate.scm (guix-authenticate): Add clauses for ("rsautl" "-sign" "-inkey" key) and ("rsautl" "-verify" "-inkey" _ "-pubin"). * tests/guix-authenticate.sh (hash): Add test using -sign and -verify in a pipeline.
2014-03-22authenticate: Move actual work to separate procedures.Ludovic Courtès
* guix/scripts/authenticate.scm (read-canonical-sexp): Change to expect a port instead of a file name. (read-hash-data): Likewise. (sign-with-key, validate-signature): New procedures. (guix-authenticate): Rewrite in terms of these two procedures.
2014-03-22Update 'nix-upstream' sub-module.Ludovic Courtès
* nix-upstream: Update.
2014-03-22utils: Add 'decompressed-port' and 'compressed-port'.Ludovic Courtès
* guix/utils.scm (decompressed-port, compressed-port): New procedures. * guix/scripts/substitute-binary.scm (decompressed-port): Remove. (guix-substitute-binary): Pass a symbol or #f as the first argument to 'decompress-port'. * tests/utils.scm ("compressed-port, decompressed-port, non-file"): New test.
2014-03-22utils: 'filtered-port' doesn't leave dangling processes behind.Ludovic Courtès
* guix/utils.scm (filtered-port): Make sure the 'execl' child process always exits, and does (primitive-_exit 1) upon execution failure. Use 'primitive-_exit' in the 'dump-port' child process. * tests/utils.scm ("filtered-port, does not exist"): New test.
2014-03-22licenses: Fix Nixpkgs license URL.Yakkala Yagnesh Raghava
* guix/licenses.scm: Fix Nixpkgs URL in comment. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2014-03-22gnu: Provide single-precision fftw library for pulseaudioEric Bavier
* gnu/packages/algebra.scm (fftwf): New variable * gnu/packages/pulseaudio.scm (pulseaudio): Use it