summaryrefslogtreecommitdiff
path: root/guix
Commit message (Collapse)AuthorAge
* records: Add `recutils->alist' for public consumption.Ludovic Courtès2013-07-10
| | | | | | | * 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.
* Merge branch 'core-updates'Ludovic Courtès2013-07-09
|\
| * build-system/gnu: Remove the "debug" output when `strip-binaries?' is #f.Ludovic Courtès2013-07-04
| | | | | | | | | | | | | | * 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.
| * build-system/gnu: Write debug files to the "debug" sub-derivation, if any.Ludovic Courtès2013-07-03
| | | | | | | | | | | | | | | | * 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.
| * utils: Re-export `alist-cons' and `alist-delete'.Ludovic Courtès2013-07-03
| | | | | | | | * guix/build/utils.scm: Re-export `alist-cons' and `alist-delete'.
| * build-system/gnu: `package-with-explicit-inputs' skips non-GBS packages.Ludovic Courtès2013-06-25
| | | | | | | | | | * guix/build-system/gnu.scm (package-with-explicit-inputs)[rewritten-input]: Leave P unchanged if its build system is not GNU-BUILD-SYSTEM.
| * build-system/gnu: Augment `package-with-explicit-inputs' for cross builds.Ludovic Courtès2013-06-25
| | | | | | | | | | | | * guix/build-system/gnu.scm (package-with-explicit-inputs): Add `native-inputs' keyword parameter. Allow INPUTS and NATIVE-INPUTS to be thunks.
| * build-system/trivial: Don't bind `%target' in the builder.Ludovic Courtès2013-06-25
| | | | | | | | | | | | | | * 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.
| * build-system/gnu: Disable test suite when cross building.Ludovic Courtès2013-06-24
| | | | | | | | | | * guix/build-system/gnu.scm (gnu-cross-build): Change #:tests? to default to #f.
| * utils: `set-path-environment-variable' calls `unsetenv' for empty values.Ludovic Courtès2013-06-22
| | | | | | | | | | | | | | * 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.
| * build-system/gnu: Set #:tests? to #f when cross-compiling.Ludovic Courtès2013-06-22
| | | | | | | | | | * guix/build/gnu-build-system.scm (check): Add `target' formal parameter. Change `tests?' to default to (not target).
| * build-system/gnu: Save `environment-variables' after each phase.Ludovic Courtès2013-06-21
| | | | | | | | | | * guix/build/gnu-build-system.scm (set-paths): Move `system' call to... (gnu-build): ... here.
| * build-system/gnu: Unify with (guix build-system gnu-cross-build).Ludovic Courtès2013-06-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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).
* | store: Deal with unsupported `setsockopt' operation on GNU/Hurd.Ludovic Courtès2013-07-04
| | | | | | | | | | | | | | * 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>.
* | Use `port-sha256' and `open-sha256-port'.Ludovic Courtès2013-07-03
| | | | | | | | | | | | | | | | * 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.
* | hash: Add `open-sha256-port'.Ludovic Courtès2013-07-02
| | | | | | | | | | | | | | | | | | * 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.
* | Move `sha256' to (guix hash).Ludovic Courtès2013-07-01
| | | | | | | | | | | | | | | | | | * 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).
* | ui: Don't make substituter-related RPCs at all when substitutes are disabled.Ludovic Courtès2013-07-01
| | | | | | | | | | | | | | Reported by Nikita Karetnikov and Cyril Roelandt. * guix/ui.scm (show-what-to-build): Call `substitutable-path-info' only when USE-SUBSTITUTES? is true.
* | substitute-binary: Avoid dangling connections to the server.Ludovic Courtès2013-06-29
| | | | | | | | | | | | | | | | | | * 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.
* | download: Add Savannah's master site.Ludovic Courtès2013-06-27
| | | | | | | | | | * guix/download.scm (%mirrors): Add the "-noredirect" version of Savannah.
* | download: Don't fail when abbreviating `file://' URIs.Ludovic Courtès2013-06-22
|/ | | | | * guix/build/download.scm (uri-abbreviation)[elide-path]: Handle the case where URI has no `host' part.
* package: Fix i18n of the number of packages message.Ludovic Courtès2013-06-20
| | | | | * guix/scripts/package.scm (guix-package)[process-actions]: Use `N_' for i18n of the number of packages message.
* substitute-binary: Report progress while downloading.Ludovic Courtès2013-06-20
| | | | | | | * 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'.
* package: Display the number of installed packages upon completion.Ludovic Courtès2013-06-19
| | | | | * guix/scripts/package.scm (guix-package)[process-actions]: Display the number of packages in the profile upon completion.
* gnu: Add ImageMagick.Ludovic Courtès2013-06-19
| | | | | | * gnu/packages/imagemagick.scm: New file. * Makefile.am (MODULES): Add it. * guix/download.scm (%mirrors): Add `imagemagick' entry.
* substitute-binary: Provide feedback when the server is unresponsive.Ludovic Courtès2013-06-18
| | | | | | | | * 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.
* build-system/trivial: Fix introduction of `%target' when cross-building.Ludovic Courtès2013-06-15
| | | | | * guix/build-system/trivial.scm (trivial-cross-build): Wrap BUILDER in a `let' rather than in `begin'.
* derivations: Micro-optimize `derivation-hash'.Ludovic Courtès2013-06-14
| | | | | * guix/derivations.scm (derivation-hash): Use a UTF-8-encoded string output port. This makes things deterministic, and slightly faster.
* guix gc: Add `--requisites'.Ludovic Courtès2013-06-13
| | | | | | | * guix/scripts/gc.scm (show-help, %options): Add `--requisites'. (guix-gc): Handle it. * doc/guix.texi (Invoking guix gc): Document `--requisites'. * NEWS: Update.
* store: Add `requisites'.Ludovic Courtès2013-06-13
| | | | | * guix/store.scm (fold-path, requisites): New procedures. * tests/store.scm ("requisites"): New test.
* Fix Guile version checking in the "web" code.Cyril Roelandt2013-06-10
| | | | | * 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.
* guix refresh: Add '--key-download'.Nikita Karetnikov2013-06-10
| | | | | | | | | | | | | | | | | | | | * 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.
* packages: Make the `propagated-inputs' field thunked.Ludovic Courtès2013-06-06
| | | | * guix/packages.scm (<package>): Make `propagated-inputs' thunked.
* gnu: Fix `static-package' arguments overriding.Ludovic Courtès2013-06-05
| | | | | | * guix/build-system/gnu.scm (static-package): Call `package-arguments' from within the `arguments' field, so it see the right (%current-target-system).
* substitute-binary: Don't cache .narinfo lookups when lacking networking.Ludovic Courtès2013-06-04
| | | | | * guix/scripts/substitute-binary.scm (lookup-narinfo): Don't cache NARINFO when CACHE is #f.
* licenses: Add 'agpl3' and 'agpl3+'.Nikita Karetnikov2013-06-03
| | | | * guix/licenses.scm (agpl3, agpl3+): New variables.
* ui: define-diagnostic: Don't mark `_' and `N_' as literals.Ludovic Courtès2013-05-30
| | | | | | * 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>.
* build-system/python: Avoid circular dependency.Ludovic Courtès2013-05-30
| | | | | | | | 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.
* substitute-binary: Gracefully exit upon networking errors.Ludovic Courtès2013-05-29
| | | | | | | 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'.
* build, package: Add `--fallback' option.Ludovic Courtès2013-05-29
| | | | | | | | | * 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'.
* store: Test the `fallback?' store option.Ludovic Courtès2013-05-29
| | | | | * guix/store.scm (set-build-options): Rename #:try-fallback? to #:fallback?. * tests/store.scm ("substitute --fallback"): New test.
* python-build-system: add a check phase.Cyril Roelandt2013-05-28
| | | | | * guix/build/python-build-system.scm (check): New procedure. (%standard-phases): Use it.
* packages: Raise an error condition a cross builder is needed but unavailable.Ludovic Courtès2013-05-27
| | | | | | | | | * guix/packages.scm (&package-cross-build-system-error): New condition type. (package-cross-derivation): Raise &package-cross-build-system-error when the build system doesn't support cross builds. * guix/ui.scm (call-with-error-handling): Add package-cross-build-system-error? case. * tests/packages.scm ("package-cross-derivation, no cross builder"): New test.
* build-system/gnu: Fix typo in `gnu-cross-build'.Ludovic Courtès2013-05-27
| | | | | * guix/build-system/gnu.scm (gnu-cross-build)[builder]: When IMPLICIT-TARGET-INPUTS is #f, default to '().
* packages: Make `native-inputs' thunked.Ludovic Courtès2013-05-25
| | | | * guix/packages.scm (<package>): Make `native-inputs' thunked.
* packages: Re-export `%current-target-system'.Ludovic Courtès2013-05-25
| | | | * guix/packages.scm: Re-export `%current-target-system'.
* build-system/gnu: Make sure build input variables contain pairs.Ludovic Courtès2013-05-25
| | | | | | * guix/build-system/gnu.scm (gnu-cross-build)[builder]: Make sure %build-host-inputs and %build-target-inputs always contain pairs, not lists.
* build-system/trivial: Implement the cross-build protocol.Ludovic Courtès2013-05-24
| | | | | | | * guix/build-system/trivial.scm (guile-for-build): New procedure. (trivial-build): Use it. (trivial-cross-build): New procedure. (trivial-build-system): Use it.
* package: Fix default profile ownership check when it's just been created.Ludovic Courtès2013-05-24
| | | | | | * guix/scripts/package.scm (guix-package)[ensure-default-profile]: Check whether S is true before checking its owner. Fixes the case where we built %PROFILE-DIRECTORY just above.
* build: Add `--target' option.Ludovic Courtès2013-05-24
| | | | | | | | | | * guix/scripts/build.scm (derivations-from-package-expressions): Add `package-derivation' parameter. (show-help, %options): Add `--target'. (guix-build): Use `package-cross-derivation' when `--target' is passed. * tests/guix-build.sh: Add dry-run test with `--target'. * doc/guix.texi (Invoking guix build): Document `--target'.