summaryrefslogtreecommitdiff
path: root/guix
Commit message (Collapse)AuthorAge
* offload: Allow build machines to specify a port number.Ludovic Courtès2014-03-13
| | | | | * guix/scripts/offload.scm (<build-machine>): Add 'port' field. (remote-pipe, send-files): Use lsh's '-p' option when invoking it.
* guix build: Support '--with-source' along with '-e'.Ludovic Courtès2014-03-13
| | | | | | | | | * guix/scripts/build.scm (derivation-from-expression): Remove. (options->derivations): Handle pairs of the form "('argument . (? derivation?))". (options/resolve-packages): Add 'store' parameter; update caller. Add 'system' variable. Add case for 'expression pairs. * guix/scripts/archive.scm (derivation-from-expression): New procedure.
* guix build: Add '--with-source'.Ludovic Courtès2014-03-12
| | | | | | | | | | * guix/scripts/build.scm (package-with-source): New procedure. (show-help): Add '--with-source'. (%options): Likewise. (options->derivations): Call 'options/with-source' and 'options/resolve-packages'. (options/resolve-packages, options/with-source): New procedures. * doc/guix.texi (Invoking guix build): Document '--with-source'.
* download: 'download-to-store' accepts plain file names.Ludovic Courtès2014-03-11
| | | | | * guix/download.scm (download-to-store): When URI is #f, assume that URL is a file name, and handle it.
* More /gnu/store replacements.Ludovic Courtès2014-03-10
| | | | | | | | * gnu/packages/gcc.scm (gcc-4.7): Change /nix/store in comment. * gnu/system/vm.scm (operating-system-default-contents): Use (%store-prefix) instead of "/nix/store". * guix/derivations.scm (derivation-path->output-path, derivation-path->output-paths): Change to /gnu/store in docstring.
* gnu: linux-initrd: Make the pseudo-tty device nodes.Ludovic Courtès2014-03-10
| | | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Create /dev/ptmx and /dev/pts. * gnu/system/vm.scm (qemu-image): Umount /fs/dev/pts before /fs.
* offload: Honor absolute build timeouts.Ludovic Courtès2014-03-09
| | | | | | | | * guix/scripts/offload.scm (offload): Remove default value for 'build-timeout'. Pass '--timeout' to the remote 'guix build' process. (transfer-and-offload, process-request): Remove default value for 'build-timeout'.
* guix build: Add '--timeout' to the common build options.Ludovic Courtès2014-03-09
| | | | | | | | | * guix/scripts/build.scm (show-build-options-help): Document '--timeout'. (set-build-options-from-command-line): Pass #:timeout to 'set-build-options'. (%standard-build-options): Add '--timeout'. * doc/guix.texi (Invoking guix build): Document it.
* store: Add #:timeout build option.Ludovic Courtès2014-03-09
| | | | | | | | * guix/serialization.scm (write-string-pairs): New procedure. * guix/store.scm (write-arg): Add 'string-pairs' case. (set-build-options): Add 'timeout' keyword parameter. Honor it. * tests/derivations.scm ("build-expression->derivation and timeout"): New test.
* build: Change state and log directories to $localstatedir/.../guix.Ludovic Courtès2014-03-09
| | | | | | * daemon.am (libstore_a_CPPFLAGS): Change /nix to /guix. * guix/config.scm.in (%state-directory): Likewise. * guix/store.scm (log-file): Likewise.
* offload: Move macro definitions before use.Ludovic Courtès2014-03-09
| | | | | | * guix/scripts/offload.scm (lock-file, unlock-file, with-file-lock, with-machine-lock, machine-slot-file, acquire-build-slot, release-build-slot): Move definitions above their first use.
* offload: Distinguish between 'decline' and 'postpone'.Ludovic Courtès2014-03-09
| | | | | | | | * guix/scripts/offload.scm (transfer-and-offload): New procedure, with core formerly in 'process-request'. (choose-build-machine): Remove 'requirements' parameter. (process-request): Reply 'decline' when none of MACHINES matches the requirements, and 'postpone' when MACHINES are busy.
* offload: Prevent locked files from being GC'd.Ludovic Courtès2014-03-08
| | | | | * guix/scripts/offload.scm (%slots): New variable. (choose-build-machine): Add SLOT to '%slots'.
* offload: Fix thinko.Ludovic Courtès2014-03-08
| | | | | * guix/scripts/offload.scm (choose-build-machine)[machine+slots]: Use 'filter-map', not 'filter'.
* offload: Make 'parallel-builds' a hard limit.Ludovic Courtès2014-03-08
| | | | | | | | | * guix/scripts/offload.scm (machine-choice-lock-file, machine-slot-file, acquire-build-slot, release-build-slot): New procedures. (choose-build-machine): Operate with (machine-choice-lock-file) taken. Acquire a build slot for each of MACHINES. Release those not used.
* offload: Further generalize lock files.Ludovic Courtès2014-03-08
| | | | | | | * guix/scripts/offload.scm (lock-machine, unlock-machine): Remove. (lock-file, unlock-file): New procedures. (with-file-lock): New macro. (with-machine-lock): Rewrite in terms of 'with-file-lock'.
* offload: Generalize the machine lock mechanism.Ludovic Courtès2014-03-08
| | | | | | | | * guix/scripts/offload.scm (lock-machine): Add 'hint' parameter. (unlock-machine): Remove 'machine' parameter. (with-machine-lock): Add 'hint' parameter, and pass it down. (process-request): Adjust uses of 'with-machine-lock' to pass the 'bandwidth hint.
* utils: Add a non-blocking option for 'fcntl-flock'.Ludovic Courtès2014-03-08
| | | | | | * guix/utils.scm (F_SETLK): New variable. (fcntl-flock): Add 'wait?' keyword parameter; honor it. * tests/utils.scm ("fcntl-flock non-blocking"): New test.
* store: 'export-paths' doesn't export references of the given files.Ludovic Courtès2014-03-07
| | | | | | | | | | | This fixes a regression introduced in 99fbddf9a623757e39d88bfb431f8f7d6f24b75b ("store: Change 'export-paths' to always export in topological order.") * guix/store.scm (export-paths): Define 'ordered' variable. Iterate over it. * tests/store.scm ("export/import paths, ensure topological order"): Add 'file0'. Adjust accordingly.
* utils: 'fcntl-flock' passes an errno when throwing an exception.Ludovic Courtès2014-03-06
| | | | | * guix/utils.scm (%libc-errno-pointer, errno): New procedures. (fcntl-flock): Use it as the exception's argument.
* offload: Serialize file transfers to build machines.Ludovic Courtès2014-03-06
| | | | | | | | * guix/scripts/offload.scm (machine-lock-file, lock-machine, unlock-machine): New procedures. (with-machine-lock): New macro. (process-request): Wrap 'send-files' and 'retrieve-files' calls in 'with-machine-lock'.
* download: Perform derivations locally.Ludovic Courtès2014-03-06
| | | | | | * guix/download.scm (url-fetch): Pass #:local-build? #t to 'build-expression->derivation'. * guix/git-download.scm (git-fetch): Likewise.
* guix package: Use the common build options from (guix scripts build).Ludovic Courtès2014-03-01
| | | | | | | | | | | * guix/scripts/build.scm (%standard-build-options): Change option handlers to support multiple seeds. * guix/scripts/package.scm (show-help): Remove --dry-run, --fallback, --no-substitutes, and --max-silent-time. (%options): Likewise, and add %STANDARD-BUILD-OPTIONS. (%default-options): Add 'verbosity'. (guix-package): Call 'set-build-options-from-command-line' instead of 'set-build-options'.
* substitute-binary: Gracefully handle HTTP GET errors.Ludovic Courtès2014-03-01
| | | | | | | * guix/http-client.scm (&http-get-error): New condition type. (http-fetch): Raise it instead of using 'error'. * guix/scripts/substitute-binary.scm (fetch) <http>: Wrap body into 'guard' form; gracefully handle 'http-get-error?' conditions.
* offload: Comment out attempt to set up an lsh gateway.Ludovic Courtès2014-03-01
| | | | | * guix/scripts/offload.scm (open-ssh-gateway): Comment out. (process-request): Remove call to 'open-ssh-gateway' and to 'kill'.
* offload: 'remote-pipe' uses the right SSH key.Ludovic Courtès2014-03-01
| | | | | * guix/scripts/offload.scm (remote-pipe): Pass -i when invoking %LSHG-COMMAND.
* offload: Take the target machine load into account.Ludovic Courtès2014-03-01
| | | | | | | * guix/scripts/offload.scm (machine-load, machine-less-loaded?, machine-less-loaded-or-faster?): New procedures. (choose-build-machine): Use 'machine-less-loaded-or-faster?' when sorting. Return the head of MACHINES unless it's loaded is >= 2.
* guix archive: Change '--help' to show '--authorize'.Ludovic Courtès2014-02-28
| | | | * guix/scripts/archive.scm (show-help): Add '--authorize'.
* gnu-maintenance: Adjust 'latest-release' to filter Bash's patch directories.Ludovic Courtès2014-02-28
| | | | | | * guix/gnu-maintenance.scm (latest-release)[patch-directory-name?]: New procedure. <subdirs>: Use it to filter out Bash-like patch directories.
* store: Use 'when' instead of 'if' in effectful context.Ludovic Courtès2014-02-27
| | | | * guix/store.scm (set-build-options): Use 'when' instead of 'if'.
* derivations: Remove unused 'derivation' parameter.Ludovic Courtès2014-02-21
| | | | | * guix/derivations.scm (derivation): Remove unused #:hash-mode parameter. * doc/guix.texi (Derivations): Adjust accordingly.
* Add (guix git-download).Ludovic Courtès2014-02-21
| | | | | | * guix/git-download.scm, guix/build/git.scm: New files. * Makefile.am (MODULES): Add them. * guix/packages.scm (<origin>): Fix comment for 'method' field.
* nar: Produce archives with files sorted in C collation order.Ludovic Courtès2014-02-21
| | | | | | | * guix/nar.scm (write-file) <directory>: Pass 'string<?' as the second argument to 'scandir'. * tests/nar.scm ("write-file puts file in C locale collation order"): New test.
* derivations: Add support for recursive fixed-output derivations.Ludovic Courtès2014-02-21
| | | | | | | | | | | | | | | | | | | | | * guix/derivations.scm (<derivation-output>): Add 'recursive?' field. Adjust 'make-derivation-output' callers. (%read-derivation) <fixed-output>: When HASH-ALGO starts with 'r:', set the 'recursive?' field and drop 'r:' from the hash algo name. (write-derivation)[write-output]: Write the algo as 'r:HASH-ALGO' when the RECURSIVE? field is set. (derivation-hash) <fixed-output>: Prepend "r:" when RECURSIVE? is set. (fixed-output-path): New procedure. (derivation): Add #:recursive? parameter. Use 'fixed-output-path' to compute the output file name of a fixed output derivation. (build-expression->derivation): Add #:recursive? parameter. Pass it to 'derivation'. * tests/derivations.scm ("fixed-output derivation, recursive", "build-expression->derivation produces recursive fixed-output", "build-expression->derivation uses recursive fixed-output"): New tests. * doc/guix.texi (Derivations): Document #:recursive? for 'derivation'. Add #:recursive? for 'build-expression->derivation'.
* guix hash: Add '--recursive'.Ludovic Courtès2014-02-21
| | | | | | | | | | | | * guix/scripts/hash.scm (show-help): Add --recursive. (%options): Likewise. (guix-hash)[file-hash]: New procedure. Honor --recursive. Use it. * guix/nar.scm (write-file): Add missing field to the &nar-error condition raised upon unsupported file type; change its message to be more descriptive. * tests/guix-hash.sh: Add tests with -r. * doc/guix.texi (Invoking guix hash): Document --recursive.
* ui: Handle SRFI-35 '&message' conditions.Ludovic Courtès2014-02-21
| | | | | | * guix/ui.scm (call-with-error-handling): Add case for 'message-condition?'. * po/Makevars: Fix typo in comment.
* nar: 'write-file' can write to non-file ports.Ludovic Courtès2014-02-21
| | | | | | * guix/nar.scm (write-contents): Use 'sendfile' only when P is a file port. * tests/nar.scm ("write-file supports non-file output ports"): New test.
* guix hash: Don't load the whole file in memory.Ludovic Courtès2014-02-20
| | | | | | * guix/scripts/hash.scm (guix-hash)[eof->null]: Remove. (guix-hash): Use 'port-sha256' to compute the hash instead of 'get-bytevector-all' and co.
* gnu: Introduce the (gnu services ...) modules.Ludovic Courtès2014-02-19
| | | | | | | | | | | * gnu/system/dmd.scm: Remove file. Move contents to... * gnu/services.scm, gnu/services/base.scm, gnu/services/dmd.scm, gnu/services/networking.scm, gnu/services/xorg.scm: ... here. New files. * gnu/system.scm, gnu/system/vm.scm: Adjust accordingly. * guix/scripts/system.scm (%user-module): Likewise. * doc/guix.texi (Using the Configuration System): Likewise. (Defining Services): Likewise.
* Add 'guix system'.Ludovic Courtès2014-02-18
| | | | | | | | | * guix/scripts/system.scm: New file. * Makefile.am (MODULES): Add it. * po/POTFILES.in: Likewise. * doc/guix.texi (Using the Configuration System): Link to "Invoking guix system". (Invoking guix system): New node.
* guix build: Factorize common options.Ludovic Courtès2014-02-18
| | | | | | | | | | | | | | | | | | | | | | * guix/scripts/build.scm (show-build-options-help, set-build-options-from-command-line): New procedures. (show-help): Remove description of --dry-run, --fallback, --no-substitutes, --max-silent-time, and --cores. Call 'show-build-options-help'. (%standard-build-options): New variable. (%options): Remove --dry-run, --fallback, --no-substitutes, --verbosity, --max-silent-time, and --cores. Add %STANDARD-BUILD-OPTIONS. (guix-build): Use 'set-build-options-from-command-line' instead of 'set-build-options'. * guix/scripts/archive.scm (show-help): Remove description of --dry-run, --fallback, --no-substitutes, --max-silent-time, and --cores. Call 'show-build-options-help'. (%options): Remove --dry-run, --fallback, --no-substitutes, --verbosity, --max-silent-time, and --cores. Add %STANDARD-BUILD-OPTIONS. (export-from-store): Call 'set-build-options-from-command-line' instead of 'set-build-options.
* guix build: Move 'set-build-options' call earlier.Ludovic Courtès2014-02-12
| | | | | * guix/scripts/build.scm (guix-build): Move 'set-build-options' call before 'show-what-to-build'.
* store: Add comments for the stracer.Ludovic Courtès2014-02-12
| | | | * guix/store.scm (%worker-magic-1, %worker-magic-2): Add comments.
* store: Change 'export-paths' to always export in topological order.Ludovic Courtès2014-02-10
| | | | | | | * guix/store.scm (export-paths): Pass PATHS through 'topologically-sorted' before iterating. * tests/store.scm ("export/import paths, ensure topological order"): New test.
* union: Do not compare directories upon collision.Ludovic Courtès2014-02-10
| | | | | | | * guix/build/union.scm (file=?): Return #f if FILE1 and FILE2 are not regular files. Fixes a bug whereby collisions among directories would lead to the invocation of 'file=?' and thus 'call-with-input-file' on directories. Reported by Mark H. Weaver <mhw@netris.org>.
* download: Provide a 'User-Agent' field in HTTP requests.Ludovic Courtès2014-02-10
| | | | | | | | | Fixes <http://bugs.gnu.org/16703>. Reported by Raimon Grau <raimonster@gmail.com>. * guix/build/download.scm (http-fetch)[headers]: New variable. Pass it as #:headers or #:extra-headers to 'http-get' and 'http-get*'.
* gnu: linux-initrd: When booting, chdir to the new root before calling 'chroot'.Ludovic Courtès2014-02-09
| | | | | * guix/build/linux-initrd.scm (boot-system): Add 'chdir' call right before 'chroot'.
* monads: Add 'text-file*'.Ludovic Courtès2014-02-03
| | | | | | | | * guix/monads.scm (text-file*): New procedure. * tests/monads.scm ("text-file*"): New test. * doc/guix.texi (The Store Monad): Change example since the previous one would erroneously fail to retain a reference to Coreutils. Document 'text-file*'.
* offload: Have 'build-machines' honor its argument.Ludovic Courtès2014-02-02
| | | | * guix/scripts/offload.scm (build-machines): Honor FILE.
* gnu: linux-initrd: Build /dev/input devices.Ludovic Courtès2014-02-01
| | | | | * guix/build/linux-initrd.scm (make-essential-device-nodes): Make dev/input devices.