summaryrefslogtreecommitdiff
path: root/guix
AgeCommit message (Expand)Author
2013-07-11substitute-binary: Directly replace the global `regexp-exec'....* guix/scripts/substitute-binary.scm (%regexp-exec-mutex, string->uri): Remove. (regexp-exec): Replace this global binding by a thread-safety wrapper. (fields->alist): Remove `with-mutex', and directly alias `recutils->alist'. Ludovic Courtès
2013-07-11substitute-binary: Increase the default timeout....* guix/scripts/substitute-binary.scm (%fetch-timeout): Set to 5 seconds. Ludovic Courtès
2013-07-11guix refresh: Keep only the newest versions of packages as upgrade candidates....* guix/scripts/refresh.scm (guix-refresh)[keep-newest]: New procedure. Use it to keep only once copy of each package. Ludovic Courtès
2013-07-10gnu-maintenance: Add `doc-description' field to <gnu-package-descriptor>....* guix/gnu-maintenance.scm (%gsrc-package-list-url): New variable. (<gnu-package-descriptor>): Add `doc-description' field. (official-gnu-packages)[group-package-fields]: Rename to... [read-records]: ... this. Reverse the result. [gsrc-description]: New procedure. Add the "description" field to the alist passed to `alist->record'. Ludovic Courtès
2013-07-10records: `recutils->alist' recognizes lines starting with a `+'....* guix/records.scm (%recutils-plus-rx): New variable. (recutils->alist): Use it to read + lines. * tests/records.scm ("recutils->alist with + lines"): New test. Ludovic Courtès
2013-07-10gnu-maintenance: Use `recutils->alist'....* guix/gnu-maintenance.scm (official-gnu-packages)[group-package-fields]: Rewrite in terms of `recutils->alist'. Remove `state' parameter. Specify "doc-url" and "language" as multiple-value keys in the `alist->record' call. Ludovic Courtès
2013-07-10records: `alist->record' supports multiple-field occurrences....* guix/records.scm (alist->record): Add `multiple-value-keys' parameter. Update docstring, and honor it. * tests/records.scm ("alist->record"): New record. Ludovic Courtès
2013-07-10records: `recutils->alist' recognizes comments....* guix/records.scm (%recutils-comment-rx): New variable. (recutils->alist): Match comments. * tests/records.scm ("recutils->alist"): Add comments. Ludovic Courtès
2013-07-10records: Add `recutils->alist' for public consumption....* guix/records.scm (%recutils-field-rx): New variable. (recutils->alist): New procedure, formerly known as `fields->alist'. * guix/scripts/substitute-binary.scm (fields->alist): Use it. * tests/records.scm ("recutils->alist"): New test. Ludovic Courtès
2013-07-09Merge branch 'core-updates'Ludovic Courtès
2013-07-04store: Deal with unsupported `setsockopt' operation on GNU/Hurd....* guix/store.scm (open-connection): Silently ignore ENOPROTOOPT on `setsockopt' calls, for the sake of GNU/Hurd. Reported by Matthew Lien <bluet@bluet.org> at <http://lists.gnu.org/archive/html/bug-guix/2013-07/msg00020.html>. Ludovic Courtès
2013-07-04build-system/gnu: Remove the "debug" output when `strip-binaries?' is #f....* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Delete "debug" from OUTPUTS when STRIP-BINARIES? is false. * gnu/packages/cross-base.scm (cross-libc): Leave `outputs' unchanged. This reverts commit a4627d4. Ludovic Courtès
2013-07-03build-system/gnu: Write debug files to the "debug" sub-derivation, if any....* guix/build/gnu-build-system.scm (strip): Add `objcopy-command' keyword parameter. [debug-output, debug-file-extension]: New variables. [debug-file, make-debug-file, add-debug-link]: New procedures. [strip-dir]: Use them. Ludovic Courtès
2013-07-03utils: Re-export `alist-cons' and `alist-delete'....* guix/build/utils.scm: Re-export `alist-cons' and `alist-delete'. Ludovic Courtès
2013-07-03Use `port-sha256' and `open-sha256-port'....* guix/derivations.scm (derivation-hash): Add comment as to why we keep the plain `sha256' call. * guix/scripts/download.scm (guix-download): Use `port-sha256' instead of (compose sha256 get-bytevector-all). * guix/scripts/refresh.scm (update-package): Likewise. Ludovic Courtès
2013-07-02hash: Add `open-sha256-port'....* guix/hash.scm (GCRY_MD_SHA256): New macro. (sha256): Use it. (open-sha256-md, md-write, md-read, md-close, open-sha256-port, port-sha256): New procedures. * tests/hash.scm: New file. * Makefile.am (SCM_TESTS): Add it. Ludovic Courtès
2013-07-01Move `sha256' to (guix hash)....* guix/utils.scm (sha256): Move to... * guix/hash.scm: ... here. New file. * Makefile.am (MODULES): Add it. * guix/derivations.scm, guix/scripts/download.scm, guix/scripts/hash.scm, guix/scripts/refresh.scm, tests/base32.scm, tests/derivations.scm, tests/store.scm: Use (guix hash). Ludovic Courtès
2013-07-01ui: Don't make substituter-related RPCs at all when substitutes are disabled....Reported by Nikita Karetnikov and Cyril Roelandt. * guix/ui.scm (show-what-to-build): Call `substitutable-path-info' only when USE-SUBSTITUTES? is true. Ludovic Courtès
2013-06-29substitute-binary: Avoid dangling connections to the server....* guix/web.scm (open-socket-for-uri): New procedure. (http-fetch): Add `port' keyword parameter; use it. * guix/scripts/substitute-binary.scm (%random-state): New variable. (with-timeout): Wait a little before retrying. (fetch): Use `open-socket-for-uri', and keep a copy of the socket in variable `port'. Close PORT upon timeout. Ludovic Courtès
2013-06-27download: Add Savannah's master site....* guix/download.scm (%mirrors): Add the "-noredirect" version of Savannah. Ludovic Courtès
2013-06-25build-system/gnu: `package-with-explicit-inputs' skips non-GBS packages....* guix/build-system/gnu.scm (package-with-explicit-inputs)[rewritten-input]: Leave P unchanged if its build system is not GNU-BUILD-SYSTEM. Ludovic Courtès
2013-06-25build-system/gnu: Augment `package-with-explicit-inputs' for cross builds....* guix/build-system/gnu.scm (package-with-explicit-inputs): Add `native-inputs' keyword parameter. Allow INPUTS and NATIVE-INPUTS to be thunks. Ludovic Courtès
2013-06-25build-system/trivial: Don't bind `%target' in the builder....* guix/build-system/trivial.scm (trivial-cross-build): Don't bind `%target' here since this causes problem when BUILDER contains (use-modules ...) clauses, and can be achieved differently anyway. Ludovic Courtès
2013-06-24build-system/gnu: Disable test suite when cross building....* guix/build-system/gnu.scm (gnu-cross-build): Change #:tests? to default to #f. Ludovic Courtès
2013-06-22utils: `set-path-environment-variable' calls `unsetenv' for empty values....* guix/build/utils.scm (set-path-environment-variable): When VALUE is the empty string, call `unsetenv' instead of `setenv'. * gnu/packages/guile.scm (guile-2.0)[arguments]: Remove `unsetenv' trick. Ludovic Courtès
2013-06-22build-system/gnu: Set #:tests? to #f when cross-compiling....* guix/build/gnu-build-system.scm (check): Add `target' formal parameter. Change `tests?' to default to (not target). Ludovic Courtès
2013-06-22download: Don't fail when abbreviating `file://' URIs....* guix/build/download.scm (uri-abbreviation)[elide-path]: Handle the case where URI has no `host' part. Ludovic Courtès
2013-06-21build-system/gnu: Save `environment-variables' after each phase....* guix/build/gnu-build-system.scm (set-paths): Move `system' call to... (gnu-build): ... here. Ludovic Courtès
2013-06-21build-system/gnu: Unify with (guix build-system gnu-cross-build)....* guix/build/gnu-build-system.scm (set-paths): Add `native-inputs' and `native-search-paths' keyword parameters. Honor them. (configure): Add `target' and `native-inputs' keyword parameters. Look for Bash in NATIVE-INPUTS or INPUTS. Pass `--host' when TARGET is true. (strip): Add `strip-command' keyword parameter. Use it. * guix/build/gnu-cross-build.scm: Remove. * Makefile.am (MODULES): Adjust accordingly. * gnu/packages/acl.scm, gnu/packages/attr.scm, gnu/packages/base.scm, gnu/packages/bash.scm, gnu/packages/gawk.scm, gnu/packages/gettext.scm, gnu/packages/guile.scm, gnu/packages/libffi.scm, gnu/packages/libsigsegv.scm, gnu/packages/linux.scm, gnu/packages/ncurses.scm, gnu/packages/readline.scm, guix/build-system/gnu.scm: Replace `%standard-cross-phases' by `%standard-phases'. Remove references to (guix build gnu-cross-build). Ludovic Courtès
2013-06-20package: Fix i18n of the number of packages message....* guix/scripts/package.scm (guix-package)[process-actions]: Use `N_' for i18n of the number of packages message. Ludovic Courtès
2013-06-20substitute-binary: Report progress while downloading....* guix/scripts/substitute-binary.scm (decompressed-port): Improve docstring. (progress-report-port): New procedure. (guix-substitute-binary)["--substitute"]: Use it to report progress. * guix/build/download.scm: Export `progress-proc' and `uri-abbreviation'. Ludovic Courtès
2013-06-19package: Display the number of installed packages upon completion....* guix/scripts/package.scm (guix-package)[process-actions]: Display the number of packages in the profile upon completion. Ludovic Courtès
2013-06-19gnu: Add ImageMagick....* gnu/packages/imagemagick.scm: New file. * Makefile.am (MODULES): Add it. * guix/download.scm (%mirrors): Add `imagemagick' entry. Ludovic Courtès
2013-06-18substitute-binary: Provide feedback when the server is unresponsive....* guix/scripts/substitute-binary.scm (%fetch-timeout): New variable. (with-timeout): New macro. (fetch): Add `timeout?' keyword parameter. Enclose `http-fetch' call in `with-timeout'. (guix-substitute-binary): Call `fetch' with #:timeout? #f. Ludovic Courtès
2013-06-15build-system/trivial: Fix introduction of `%target' when cross-building....* guix/build-system/trivial.scm (trivial-cross-build): Wrap BUILDER in a `let' rather than in `begin'. Ludovic Courtès
2013-06-14derivations: Micro-optimize `derivation-hash'....* guix/derivations.scm (derivation-hash): Use a UTF-8-encoded string output port. This makes things deterministic, and slightly faster. Ludovic Courtès
2013-06-13guix gc: Add `--requisites'....* guix/scripts/gc.scm (show-help, %options): Add `--requisites'. (guix-gc): Handle it. * doc/guix.texi (Invoking guix gc): Document `--requisites'. * NEWS: Update. Ludovic Courtès
2013-06-13store: Add `requisites'....* guix/store.scm (fold-path, requisites): New procedures. * tests/store.scm ("requisites"): New test. Ludovic Courtès
2013-06-10Fix Guile version checking in the "web" code....* guix/web.scm (http-fetch): fix Guile version checking. The previous version would use features from Guile 2.0.9+ when using Guile 2.0.7. Cyril Roelandt
2013-06-10guix refresh: Add '--key-download'....* guix/gnu-maintenance.scm (download-tarball): Add a 'key-download' keyword argument and pass it to 'gnupg-verify*'. Make 'archive-type' a keyword argument. (package-update): Add a 'key-download' keyword argument. Pass 'archive-type' and 'key-download' keyword arguments to 'download-tarball'. * guix/gnupg.scm: Import (ice-9 i18n) and (guix ui). (gnupg-verify*): Add a 'key-download' keyword argument and adjust 'gnupg-verify*' to use it. Make 'server' a keyword argument. * guix/scripts/refresh.scm (show-help, %options): Add and document '--key-download'. (update-package): Add a 'key-download' keyword argument and pass it to 'package-update'. (guix-refresh): Pass 'key-download' to 'update-package'. Limit lines to a maximum of 79 characters. Nikita Karetnikov
2013-06-06packages: Make the `propagated-inputs' field thunked....* guix/packages.scm (<package>): Make `propagated-inputs' thunked. Ludovic Courtès
2013-06-05gnu: Fix `static-package' arguments overriding....* guix/build-system/gnu.scm (static-package): Call `package-arguments' from within the `arguments' field, so it see the right (%current-target-system). Ludovic Courtès
2013-06-04substitute-binary: Don't cache .narinfo lookups when lacking networking....* guix/scripts/substitute-binary.scm (lookup-narinfo): Don't cache NARINFO when CACHE is #f. Ludovic Courtès
2013-06-03licenses: Add 'agpl3' and 'agpl3+'....* guix/licenses.scm (agpl3, agpl3+): New variables. Nikita Karetnikov
2013-05-30ui: define-diagnostic: Don't mark `_' and `N_' as literals....* guix/ui.scm (define-diagnostic): Use `free-identifier=?' to compare the user's input with `_' and `N-". This should fix builds with Guile 2.1. Reported by Cojocaru Alexandru <xojoc@gmx.com>. Ludovic Courtès
2013-05-30build-system/python: Avoid circular dependency....This fixes a circular dependency introduced in commit acc26ff ("gnu: Add pytz."). * guix/build-system/python.scm (default-python): New procedure. (python-build): Use it. Ludovic Courtès
2013-05-29substitute-binary: Gracefully exit upon networking errors....Suggested by Andreas Enge <andreas@enge.fr>. * guix/scripts/substitute-binary.scm (with-networking): New macro. (guix-substitute-binary): Wrap the body in `with-networking'. Ludovic Courtès
2013-05-29build, package: Add `--fallback' option....* guix/scripts/build.scm (%options, show-help): Add `--fallback'. (guix-build): Call `set-build-options' with #:fallback?. * guix/scripts/package.scm (%options, show-help): Add `--fallback'. (guix-package): Call `set-build-options' with #:fallback?. * doc/guix.texi (Invoking guix package, Invoking guix build): Document `--fallback'. Ludovic Courtès
2013-05-29store: Test the `fallback?' store option....* guix/store.scm (set-build-options): Rename #:try-fallback? to #:fallback?. * tests/store.scm ("substitute --fallback"): New test. Ludovic Courtès
2013-05-28python-build-system: add a check phase....* guix/build/python-build-system.scm (check): New procedure. (%standard-phases): Use it. Cyril Roelandt