summaryrefslogtreecommitdiff
path: root/guix
Commit message (Collapse)AuthorAge
* guix package: Allow separate install of several outputs of the same package.Ludovic Courtès2013-07-15
| | | | | | * guix/scripts/package.scm (guix-package)[process-actions](same-package?): New procedure. Use it instead of `alist-delete' when filtering out duplicate packages from the profile.
* Rename (guix web) to (guix http-client).Ludovic Courtès2013-07-14
| | | | | | | * guix/web.scm: Rename to... * guix/http-client.scm: ... this. * guix/gnu-maintenance.scm, guix/scripts/substitute-binary.scm, Makefile.am, po/POTFILES.in: Update accordingly.
* guix package: Fix handling of `-e'.Ludovic Courtès2013-07-12
| | | | | | | | | | | | | This fixes a bug whereby a command like guix package -e '(@@ (gnu packages base) gnu-make-boot0)' would only succeed when the outputs of that package are available, and otherwise fail with "/nix/store/... is not valid". * guix/scripts/package.scm (guix-package)[process-action](package->tuple): Leave P as is in the result. Move `package->tuple' call from INSTALL* to INSTALL.
* ui: Ignore SIGPIPE and catch `system-error' exceptions.Ludovic Courtès2013-07-12
| | | | | * guix/ui.scm (initialize-guix): Call `sigaction'. (call-with-error-handling): Wrap `thunk' in a (catch 'system-error ...).
* guix package: Reuse FTP connections for subsequent `latest-release' calls.Ludovic Courtès2013-07-12
| | | | | | | | * guix/gnu-maintenance.scm (latest-release): Add `ftp-close' and `ftp-open' keyword parameters. * guix/scripts/package.scm (ftp-open*): New variable. (check-package-freshness): Call `latest-release' with `ftp-open*' and a no-op procedure.
* gnu-maintenance: `latest-release' closes its connection.Ludovic Courtès2013-07-12
| | | | | * guix/gnu-maintenance.scm (latest-release): Close CONN before returning.
* substitute-binary: Directly replace the global `regexp-exec'.Ludovic Courtès2013-07-11
| | | | | | | * 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'.
* substitute-binary: Increase the default timeout.Ludovic Courtès2013-07-11
| | | | * guix/scripts/substitute-binary.scm (%fetch-timeout): Set to 5 seconds.
* guix refresh: Keep only the newest versions of packages as upgrade candidates.Ludovic Courtès2013-07-11
| | | | | * guix/scripts/refresh.scm (guix-refresh)[keep-newest]: New procedure. Use it to keep only once copy of each package.
* gnu-maintenance: Add `doc-description' field to <gnu-package-descriptor>.Ludovic Courtès2013-07-10
| | | | | | | | | * 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'.
* records: `recutils->alist' recognizes lines starting with a `+'.Ludovic Courtès2013-07-10
| | | | | | * guix/records.scm (%recutils-plus-rx): New variable. (recutils->alist): Use it to read + lines. * tests/records.scm ("recutils->alist with + lines"): New test.
* gnu-maintenance: Use `recutils->alist'.Ludovic Courtès2013-07-10
| | | | | | | * 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.
* records: `alist->record' supports multiple-field occurrences.Ludovic Courtès2013-07-10
| | | | | | * guix/records.scm (alist->record): Add `multiple-value-keys' parameter. Update docstring, and honor it. * tests/records.scm ("alist->record"): New record.
* records: `recutils->alist' recognizes comments.Ludovic Courtès2013-07-10
| | | | | | * guix/records.scm (%recutils-comment-rx): New variable. (recutils->alist): Match comments. * tests/records.scm ("recutils->alist"): Add comments.
* 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.