summaryrefslogtreecommitdiff
path: root/guix
Commit message (Collapse)AuthorAge
* linux-initrd: Create /dev/klog and /dev/kmsg.Ludovic Courtès2013-09-11
| | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/klog and /dev/kmsg.
* store: The 'references' parameter of 'add-text-to-store' is now optional.Ludovic Courtès2013-09-11
| | | | | | | * guix/store.scm (add-text-to-store): Make 'references' optional. * tests/store.scm ("dead-paths", "references"): Use 'add-text-to-store' with no optional argument. * doc/guix.texi (The Store): Adjust accordingly.
* gnu: linux-initrd: Fix creation of /dev/tty nodes.Ludovic Courtès2013-09-05
| | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Make /dev/tty. Change from 'block-special' to 'char-special' for /dev/tty* nodes.
* pull: Compile files in the lexicographic order.Ludovic Courtès2013-09-03
| | | | | * guix/scripts/pull.scm (unpack): Print the name of the file being compiled. Sort the names of files to compile.
* build-system/cmake: Fix typo.Ludovic Courtès2013-09-03
| | | | * guix/build-system/cmake.scm (default-cmake): Add missing quote.
* build-system/gnu: Delay resolution of (@ (gnu packages cmake) cmake).Ludovic Courtès2013-09-03
| | | | | * guix/build-system/cmake.scm (default-cmake): New procedure. (cmake-build): Use it.
* substitute-binary: Show the Nar size, when available.Ludovic Courtès2013-09-02
| | | | | | * guix/scripts/substitute-binary.scm (guix-substitute-binary)["--substitute"]: Show the Nar size, when available. * guix/ui.scm (show-what-to-build): Add 'TODO'.
* union: Don't traverse sub-directories only found in one element of the union.Ludovic Courtès2013-09-02
| | | | | | | | | | | | This significantly reduces I/O when building profiles, especially with lots of package-specific sub-directories (such as 'share/emacs/24.3', 'texmf', etc.) * guix/build/union.scm (union-build)[file-tree](others-have-it?): New procedure. Use it in the 'enter?' parameter of 'file-system-fold'; change 'skip' parameter accordingly. * tests/union.scm ("union-build"): Ensure that 'include' is a symlink and 'bin' is a directory.
* store: Add a printer for <nix-server>.Ludovic Courtès2013-09-02
| | | | * guix/store.scm (<nix-server>): Set a printer.
* gnu: linux-initrd: Factorize device node creation.Ludovic Courtès2013-09-02
| | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): New procedure. * gnu/packages/linux-initrd.scm (qemu-initrd): Use it.
* gnu: linux-initrd: Make Guile modules accessible in the chroot.Ludovic Courtès2013-08-31
| | | | | | * gnu/packages/linux-initrd.scm (qemu-initrd): Add (guix build utils) to #:modules, and use it. Copy .scm and .go files to /root. * guix/build/linux-initrd.scm (bind-mount): New procedure.
* gnu: linux-initrd: Add (guix build linux-initrd) and use it.Ludovic Courtès2013-08-29
| | | | | | | * gnu/packages/linux-initrd.scm (qemu-initrd): Add #:modules argument. Factorize and move some of the code to... * guix/build/linux-initrd.scm: ... here. New file. * Makefile.am (MODULES): Add it.
* gnu: linux-initrd: Allow Guile modules to be embedded in the initrd.Ludovic Courtès2013-08-29
| | | | | | | | | * gnu/packages/linux-initrd.scm (raw-build-system): New macro. (module-package, compiled-module-package): New procedures. (expression->initrd): Add `modules' keyword parameter. Add "modules" and "modules/compiled" inputs; copy them onto the initrd. * guix/derivations.scm (imported-modules, compiled-modules): Publicize.
* derivations: Rename #:dependency-graphs to #:references-graphs.Ludovic Courtès2013-08-28
| | | | | | | * guix/derivations.scm (derivation, build-expression->derivation): Rename #:dependency-graphs to #:references-graphs, for consistency in the terminology. * tests/derivations.scm: Adjust accordingly.
* derivations: Add #:dependency-graphs to `build-expression->derivation'.Ludovic Courtès2013-08-26
| | | | | | | | | * guix/derivations.scm (build-expression->derivation): Add #:dependency-graphs keyword argument. Pass it to `derivation'. * tests/derivations.scm ("build-expression->derivation with #:dependency-graphs"): New test. * doc/guix.texi (Derivations): Update `build-expression->derivation' description.
* derivations: Add #:dependency-graphs `derivation' parameter.Ludovic Courtès2013-08-26
| | | | | | | | | | | * guix/derivations.scm (derivation): Add `dependency-graphs' keyword parameter; honor it. * tests/derivations.scm (bootstrap-binary): New procedure. (%bash): Use it. (%mkdir): New variable. (directory-contents): Add `slurp' optional parameter. ("derivation with #:dependency-graphs"): New test. * doc/guix.texi (Derivations): Update accordingly.
* derivations: Move 3 positional parameters into keyword parameters.Ludovic Courtès2013-08-26
| | | | | | | | | * guix/derivations.scm (derivation): Turn `system', `env-vars', and `inputs' into keyword parameters. (build-expression->derivation): Adjust accordingly. * gnu/packages/bootstrap.scm (%bootstrap-guile): Likewise. * tests/derivations.scm, tests/store.scm: Likewise. * doc/guix.texi (Derivations): Likewise.
* download: Add kernel.org mirrors.Ludovic Courtès2013-08-25
| | | | | | | | Fixes <http://bugs.gnu.org/15182>. Reported by Mark H Weaver <mhw@netris.org>. * guix/download.scm (%mirrors)[kernel.org]: Add ftp.be.debian.org and mirror.linux.org.au.
* build-system/gnu: Add `dist-package'.Ludovic Courtès2013-08-24
| | | | | | | | * guix/build/gnu-dist.scm: New file. * Makefile.am (MODULES): Add it. * guix/build-system/gnu.scm (%default-modules): New variable. (gnu-build): Use it. (dist-package): New procedure.
* packages: Allow file names as package sources.Ludovic Courtès2013-08-24
| | | | | | | * guix/packages.scm (package-source-derivation): Add cases for SOURCE as a store path or user file. * tests/packages.scm ("package-source-derivation, file", "package-source-derivation, store path"): New tests.
* utils: Add `guile-version>?', and use it.Ludovic Courtès2013-08-23
| | | | | | | | | | | | | | This fixes Guile version comparisons when (version) has a vendor-specific suffix. Reported by Andreas Enge <andreas@enge.fr>. * guix/utils.scm (guile-version>?): New procedure. * tests/utils.scm ("guile-version>? 1.8", "guile-version>? 10.5"): New tests. * guix/scripts/substitute-binary.scm (fetch, progress-report-port): Use `guile-version>?' instead of `version>?'. * guix/http-client.scm (when-guile<=2.0.5, http-fetch): Likewise.
* substitute-binary: Try hard to avoid port buffering.Ludovic Courtès2013-08-22
| | | | | | | | | * guix/scripts/substitute-binary.scm (fetch): In the `file' case, open with the `b' flag, so that the coding cookie reading thing doesn't lead to buffering some of the data (on 2.0.5). * tests/utils.scm ("filtered-port, file"): Open with `r0b'. Fixes a test failure with Guile 2.0.5 whereby the first byte of FILE would be missing from DECOMPRESSED.
* substitute-binary: Don't pretend to report download progress on Guile 2.0.5.Ludovic Courtès2013-08-21
| | | | | * guix/scripts/substitute-binary.scm (progress-report-port): On Guile 2.0.5, return PORT directly and emit a warning.
* Make "guix -h" work as "guix --help".Cyril Roelandt2013-08-15
| | | | | * guix/ui.scm (guix-main): have the same behaviour for the "-h" and "--help" options.
* 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.