aboutsummaryrefslogtreecommitdiff
path: root/guix/build
Commit message (Expand)AuthorAge
...
* utils: Add `fold-port-matches' and `remove-store-references'.•••* guix/build/utils.scm (fold-port-matches, remove-store-references): New procedures. * tests/build-utils.scm ("fold-port-matches", "fold-port-matches, trickier", "fold-port-matches, with unmatched chars"): New tests. Ludovic Courtès2012-10-16
* utils: Add `with-atomic-file-replacement'.•••* guix/build/utils.scm (with-atomic-file-replacement): New procedure. (substitute): Use it. Ludovic Courtès2012-10-16
* Support build-cores = 0; change `guix-build' to default to 0.•••* guix/build/gnu-build-system.scm (%parallel-job-count): New variable. (build, check): Use it instead of $NIX_BUILD_CORES. * guix-build.in (guix-build): Default to 0 for the #:build-cores option. Ludovic Courtès2012-10-05
* Add (guix ftp) and companion modules.•••* guix/ftp-client.scm, guix/ftp.scm, guix/build/ftp.scm: New files. * Makefile.am (MODULES): Add them. * distro/base.scm (libffi): Use `ftp-fetch'. Ludovic Courtès2012-09-12
* build-system/gnu: Fix `#:path-exclusions' handling.•••* guix/build/gnu-build-system.scm (set-paths)[relevant-input-directories]: New procedure. Use it. This fixes #:path-exclusions handling. Ludovic Courtès2012-09-06
* utils: Make `set-path-environment-variable' verbose.•••* guix/build/utils.scm (set-path-environment-variable): Print ENV-VAR and its value. Ludovic Courtès2012-09-06
* build-system/gnu: Really apply patches.•••* guix/build/gnu-build-system.scm (patch): Use `--input FILE', not just `FILE'. Ludovic Courtès2012-09-01
* utils: Change `substitute*' to allow iteration over several matches.•••* guix/build/utils.scm (substitute): Do not pass the OUT to PROC; use `list-matches' instead of `regexp-exec' and pass a list of matches to PROC. Expect PROC to return a string, and output that. Fold over RX+PROC in order. Use `(read-line p 'concat)' to include the trailing delimiter in LINE. (substitute*): Produce code to iterate over the matches, and return a string, which includes anything from the original line that's in between matches. * distro/base.scm (gcc-4.7, glibc): Adjust accordingly: remove use of (ice-9 regex) and `regexp-substitute/global'; return a string. Ludovic Courtès2012-09-01
* build-system/gnu: Add `path-exclusions' parameter.•••* guix/build/gnu-build-system.scm (set-paths): Add new `path-exclusions' parameter; honor it. * guix/build-system/gnu.scm (gnu-build): New `path-exclusions' keyword parameter; pass it to BUILDER. * distro/base.scm (gcc-4.7): Exclude "libc" from $LIBRARY_PATH. Ludovic Courtès2012-09-01
* build-system/gnu: Honor the `patch-shebangs?' and `strip-binaries?' parameters.•••* guix/build/gnu-build-system.scm (patch-shebangs): Honor PATCH-SHEBANGS?. (strip): Honor STRIP-BINARIES?. Display a message from `strip-dir'. Ludovic Courtès2012-08-31
* build-system/gnu: Add a `strip' phase.•••* guix/build/gnu-build-system.scm (strip): New procedure. (%standard-phases): Add it. * guix/build-system/gnu.scm (gnu-build): New `strip-binaries?', `strip-flags', and `strip-directories' keyword parameters. Pass them to BUILDER. Ludovic Courtès2012-08-31
* build-system/gnu: Always invoke `configure' with a relative path.•••* guix/build/gnu-build-system.scm (configure): Change SRCDIR to always be a relative path. Ludovic Courtès2012-08-30
* utils: Change `substitute*' to accept a list of files to patch.•••* guix/build/utils.scm (substitute*): Support a list of files as the first argument. Ludovic Courtès2012-08-25
* build-system/gnu: Add `out-of-source?' keyword parameter.•••* guix/build/gnu-build-system.scm (configure): Add an `out-of-source?' keyword parameter; build out-of-source-tree when #t. * guix/build-system/gnu.scm (gnu-build): Add `out-of-source?' keyword parameter. Pass it in BUILDER. Ludovic Courtès2012-08-23
* build-system/gnu: Augment $PATH with $out for `patch-shebangs'.•••* guix/build/gnu-build-system.scm (patch-shebangs): Add BINDIRS to $PATH, and pass that to `patch-shebang'. Ludovic Courtès2012-08-19
* utils: Add a `path' argument to `patch-shebang'.•••* guix/build/utils.scm (patch-shebang): Add an optional `path' parameter. Change SHEBANG-RX to match the whole interpreter file name. Don't patch when BIN and CMD are the same. Add docstring. Ludovic Courtès2012-08-19
* build-system/gnu: Add a `patch-shebangs' phase.•••* guix/build/gnu-build-system.scm (patch-shebangs): New procedure. (%standard-phases): Add it. * guix/build-system/gnu.scm (gnu-build): New `patch-shebangs?' keyword parameter. Pass it to the builder's `gnu-build'. Ludovic Courtès2012-08-19
* utils: Add `patch-shebang'.•••* guix/build/utils.scm (search-path-as-string->list): New procedure. (dump-port, patch-shebang): New procedures. Ludovic Courtès2012-08-19
* build-system/gnu: Set $PKG_CONFIG_PATH.•••* guix/build/gnu-build-system.scm (set-paths): Add `PKG_CONFIG_PATH'. Ludovic Courtès2012-07-07
* utils: Have `substitute' restore the file's permission bits.•••* guix/build/utils.scm (substitute): Restore FILE's mode before renaming TEMPLATE. Ludovic Courtès2012-07-07
* utils: Change `substitute' and `substitute*' to work with several regexps.•••* guix/build/utils.scm (substitute): Change to accept a `pattern+procs' parameter. Iterate over it. (substitute*): Adjust accordingly. * distro/base.scm (guile-1.8): Adjust accordingly. Ludovic Courtès2012-07-07
* build-system/gnu: Support parallel builds and tests.•••* guix/build/gnu-build-system.scm (build): Add `parallel-build?' parameter; honor it and $NIX_BUILD_CORES. (check): Add `parallel-tests?' parameter; likewise. * guix/build-system/gnu.scm (gnu-build): Add `parallel-build?' and `parallel-tests?' parameters. [builder]: Inherit them. Ludovic Courtès2012-07-07
* utils: Introduce `substitute*', for easier sed-like syntax.•••* guix/build/utils.scm (let-matches, substitute*): New macros. * distro/base.scm (guile-1.8): Use `substitute*' instead of `substitute'. Remove the #:modules argument. Ludovic Courtès2012-07-07
* utils: Make sure `substitute' writes all its output.•••* guix/build/utils.scm (substitute): Close OUT before renaming it. Ludovic Courtès2012-07-06
* gnu-build-system: Dump the values of environment variables.•••* guix/build/gnu-build-system.scm (set-paths): Dump the value of environment variables in the `environment-variables' files, similar to what Nixpkgs does. Ludovic Courtès2012-07-06
* build-system/gnu: Add a `patch' phase.•••* guix/build/gnu-build-system.scm (patch): New procedure. (%standard-phases): Add `patch'. * guix/build-system/gnu.scm (gnu-build): Add `patches' and `patch-flags' parameters. Pass them on. Ludovic Courtès2012-07-05
* Add builder-side utilities for phases, stream editing, & co.•••* guix/build/utils.scm (with-directory-excursion): New macro. (alist-cons-before, alist-cons-after, alist-replace): New procedures. (substitute): New procedure. * tests/build-utils.scm: New file. * Makefile.am (TESTS): Add `tests/build-utils.scm'. Ludovic Courtès2012-07-05
* gnu-build-system: Improve the `configure' and `check' phases.•••* guix/build/gnu-build-system.scm (configure): Print the final list of flags. (check): Add `tests?' keyword parameter. Ludovic Courtès2012-07-02
* gnu-build-system: Print the `configure' flags.•••* guix/build/gnu-build-system.scm (configure): Print CONFIGURE-FLAGS. Ludovic Courtès2012-07-02
* gnu-build-system: Fix "libdir" and "includedir" for multiple-output drvs.•••* guix/build/gnu-build-system.scm (configure): Change `--libdir' and `--includedir' to LIBDIR + "/lib" and INCLUDEDIR + "/include", respectively. Ludovic Courtès2012-07-02
* gnu-build-system: Structure as a customizable sequence of phases.•••* guix/build/gnu-build-system.scm (set-paths, build, check, install): New procedures. (unpack): Make `source' a keyword arg; add `#:allow-other-keys'. (configure): Likewise. (%standard-phases): New variable. (gnu-build): Make `source', `outputs', and `inputs' keyword arguments; add `phases' keyword argument; #:allow-other-keys; add rest arguments `args'. Invoke each of PHASES in order within `every'. * guix/gnu-build-system.scm (gnu-build): Add `make-flags' and `phases' keyword arguments. Update builder's `gnu-build' call to match the new convention. Ludovic Courtès2012-06-16
* Remove leftover debugging expressions.•••* guix/build/utils.scm (directory-exists?): Remove leftover debugging expressions. Ludovic Courtès2012-06-16
* Add supporting tools for the GNU Build System.•••* guix/derivations.scm (build-expression->derivation): Add all of INPUTS as inputs to the final derivation. * guix/build/gnu-build-system.scm, guix/build/utils.scm, guix/gnu-build-system.scm: New files. * tests/builders.scm ("gnu-build"): New test. Ludovic Courtès2012-06-13
* Augment `build-expression->derivation' with #:modules; add `http-fetch'.•••* guix/derivations.scm (imported-modules): New procedure. (build-expression->derivation): New keyword argument `modules'. Use `imported-modules' when MODULES is non-empty, and pass it with `-L' to GUILE. * guix/build/http.scm, guix/http.scm, tests/builders.scm: New files. Ludovic Courtès2012-06-12