summaryrefslogtreecommitdiff
path: root/guix/build
Commit message (Collapse)AuthorAge
* download: Keep only one slash when concatenating URIs.Ludovic Courtès2012-11-27
| | | | | * guix/build/download.scm (url-fetch)[uri-vicinity]: New procedure. [maybe-expand-mirrors]: Use it.
* download: Add support for mirror:// URLs.Ludovic Courtès2012-11-13
| | | | | | | | | | | * guix/download.scm (%mirrors): New variable. Mirror lists taken from Nixpkgs. (url-fetch): New `mirrors' keyword parameter. [builder]: Pass it. * guix/build/download.scm (url-fetch): New `mirrors' keyword parameter. [maybe-expand-mirrors]: New procedure. [uri]: Use it.
* download: Follow HTTP redirections.Ludovic Courtès2012-11-13
| | | | | * guix/build/download.scm (http-fetch): Follow the redirection when CODE is 302.
* Remove (guix http) and (guix ftp).Ludovic Courtès2012-11-13
| | | | | | | | | | | | | | | | | | | | | | * guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm: Remove. * Makefile.am (MODULES): Likewise. * tests/builders.scm, distro/packages/base.scm, distro/packages/bash.scm, distro/packages/bdw-gc.scm, distro/packages/compression.scm, distro/packages/gawk.scm, distro/packages/gnupg.scm, distro/packages/gperf.scm, distro/packages/guile.scm, distro/packages/libffi.scm, distro/packages/libsigsegv.scm, distro/packages/libtool.scm, distro/packages/libunistring.scm, distro/packages/lout.scm, distro/packages/m4.scm, distro/packages/multiprecision.scm, distro/packages/ncurses.scm, distro/packages/perl.scm, distro/packages/pkg-config.scm, distro/packages/pth.scm, distro/packages/readline.scm, distro/packages/recutils.scm: Use `url-fetch' instead of `http-fetch' and `ftp-fetch'. * distro/packages/bootstrap.scm: Likewise (bootstrap-origin): Remove references to `http-fetch' and `ftp-fetch'. * guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
* Add (guix download) and (guix build download).Ludovic Courtès2012-11-12
| | | | | | | | | | * guix/download.scm, guix/build/download.scm: New files. * Makefile.am (MODULES): Add them. * tests/builders.scm ("url-fetch"): New test. * distro/packages/bootstrap.scm (bootstrap-origin): Support `url-fetch'. * guix/snix.scm (snix-derivation->guix-package): Use `url-fetch' instead of `http-fetch'.
* http: Add informative output.Ludovic Courtès2012-11-09
| | | | | * guix/build/http.scm (http-fetch): Emit message indicating the download.
* http: Check the HTTP response code, and bail if not 200.Ludovic Courtès2012-11-09
| | | | | * guix/build/http.scm (http-fetch): Check RESP's code; error out when it's not 200.
* Add (guix build union).Ludovic Courtès2012-10-29
| | | | | | * guix/build/union.scm, tests/union.scm: New files. * Makefile.am (MODULES): Add `guix/build/union.scm'. (TESTS): Add `tests/union.scm'.
* utils: Remove special `substitute*' syntax for lists of files.Ludovic Courtès2012-10-26
| | | | | | | | * guix/build/utils.scm (substitute*): Remove special syntax for list-of-files; instead, check whether FILE is `list?' at run time. * distro/packages/base.scm (gcc-4.7, %binutils-static): Adjust accordingly.
* http/ftp: Tweak to avoid depending on libc's NSS.Ludovic Courtès2012-10-18
| | | | | | | | | | | * guix/build/http.scm (open-connection-for-uri): New procedure. (http-fetch): Use it. Pass the result as a #:port argument to `http-get'. Add hack to modify the `set-port-encoding!' binding in (web response). * guix/ftp-client.scm (ftp-open): Add optional `port' parameter, defaulting to 21. When calling `getaddrinfo', convert PORT to a string and pass AI_NUMERICSERV when PORT is a number.
* utils: Add `find-files'.Ludovic Courtès2012-10-17
| | | | * guix/build/utils.scm (find-files): New procedure.
* utils: Add `copy-recursively'; use it.Ludovic Courtès2012-10-17
| | | | | | * guix/build/utils.scm (copy-recursively): New procedure. * distro/packages/base.scm (%guile-static-stripped): Use it.
* utils: Add `mkdir-p'; use it.Ludovic Courtès2012-10-17
| | | | | | | | * guix/build/utils.scm (mkdir-p): New procedure. * distro/packages/base.scm (gnu-make-boot0, gcc-boot0-wrapped, ld-wrapper-boot3, %static-binaries, %guile-static-stripped): Use it. * distro/packages/typesetting.scm (lout): Likewise.
* utils: Add `fold-port-matches' and `remove-store-references'.Ludovic Courtès2012-10-16
| | | | | | | | * 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.
* utils: Add `with-atomic-file-replacement'.Ludovic Courtès2012-10-16
| | | | | * guix/build/utils.scm (with-atomic-file-replacement): New procedure. (substitute): Use it.
* Support build-cores = 0; change `guix-build' to default to 0.Ludovic Courtès2012-10-05
| | | | | | | * 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.
* Add (guix ftp) and companion modules.Ludovic Courtès2012-09-12
| | | | | | | * 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'.
* build-system/gnu: Fix `#:path-exclusions' handling.Ludovic Courtès2012-09-06
| | | | | * guix/build/gnu-build-system.scm (set-paths)[relevant-input-directories]: New procedure. Use it. This fixes #:path-exclusions handling.
* utils: Make `set-path-environment-variable' verbose.Ludovic Courtès2012-09-06
| | | | | * guix/build/utils.scm (set-path-environment-variable): Print ENV-VAR and its value.
* build-system/gnu: Really apply patches.Ludovic Courtès2012-09-01
| | | | | * guix/build/gnu-build-system.scm (patch): Use `--input FILE', not just `FILE'.
* utils: Change `substitute*' to allow iteration over several matches.Ludovic Courtès2012-09-01
| | | | | | | | | | | | | | * 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.
* build-system/gnu: Add `path-exclusions' parameter.Ludovic Courtès2012-09-01
| | | | | | | | | * 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.
* build-system/gnu: Honor the `patch-shebangs?' and `strip-binaries?' parameters.Ludovic Courtès2012-08-31
| | | | | | * guix/build/gnu-build-system.scm (patch-shebangs): Honor PATCH-SHEBANGS?. (strip): Honor STRIP-BINARIES?. Display a message from `strip-dir'.
* build-system/gnu: Add a `strip' phase.Ludovic Courtès2012-08-31
| | | | | | | | | * 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.
* build-system/gnu: Always invoke `configure' with a relative path.Ludovic Courtès2012-08-30
| | | | | * guix/build/gnu-build-system.scm (configure): Change SRCDIR to always be a relative path.
* utils: Change `substitute*' to accept a list of files to patch.Ludovic Courtès2012-08-25
| | | | | * guix/build/utils.scm (substitute*): Support a list of files as the first argument.
* build-system/gnu: Add `out-of-source?' keyword parameter.Ludovic Courtès2012-08-23
| | | | | | | * 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.
* build-system/gnu: Augment $PATH with $out for `patch-shebangs'.Ludovic Courtès2012-08-19
| | | | | * guix/build/gnu-build-system.scm (patch-shebangs): Add BINDIRS to $PATH, and pass that to `patch-shebang'.
* utils: Add a `path' argument to `patch-shebang'.Ludovic Courtès2012-08-19
| | | | | | * 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.
* build-system/gnu: Add a `patch-shebangs' phase.Ludovic Courtès2012-08-19
| | | | | | | | * 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'.
* utils: Add `patch-shebang'.Ludovic Courtès2012-08-19
| | | | | * guix/build/utils.scm (search-path-as-string->list): New procedure. (dump-port, patch-shebang): New procedures.
* build-system/gnu: Set $PKG_CONFIG_PATH.Ludovic Courtès2012-07-07
| | | | * guix/build/gnu-build-system.scm (set-paths): Add `PKG_CONFIG_PATH'.
* utils: Have `substitute' restore the file's permission bits.Ludovic Courtès2012-07-07
| | | | | * guix/build/utils.scm (substitute): Restore FILE's mode before renaming TEMPLATE.
* utils: Change `substitute' and `substitute*' to work with several regexps.Ludovic Courtès2012-07-07
| | | | | | | | * 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.
* build-system/gnu: Support parallel builds and tests.Ludovic Courtès2012-07-07
| | | | | | | | | | * 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.
* utils: Introduce `substitute*', for easier sed-like syntax.Ludovic Courtès2012-07-07
| | | | | | | * guix/build/utils.scm (let-matches, substitute*): New macros. * distro/base.scm (guile-1.8): Use `substitute*' instead of `substitute'. Remove the #:modules argument.
* utils: Make sure `substitute' writes all its output.Ludovic Courtès2012-07-06
| | | | * guix/build/utils.scm (substitute): Close OUT before renaming it.
* gnu-build-system: Dump the values of environment variables.Ludovic Courtès2012-07-06
| | | | | | * guix/build/gnu-build-system.scm (set-paths): Dump the value of environment variables in the `environment-variables' files, similar to what Nixpkgs does.
* build-system/gnu: Add a `patch' phase.Ludovic Courtès2012-07-05
| | | | | | | | * 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.
* Add builder-side utilities for phases, stream editing, & co.Ludovic Courtès2012-07-05
| | | | | | | | | | * 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'.
* gnu-build-system: Improve the `configure' and `check' phases.Ludovic Courtès2012-07-02
| | | | | | * guix/build/gnu-build-system.scm (configure): Print the final list of flags. (check): Add `tests?' keyword parameter.
* gnu-build-system: Print the `configure' flags.Ludovic Courtès2012-07-02
| | | | * guix/build/gnu-build-system.scm (configure): Print CONFIGURE-FLAGS.
* gnu-build-system: Fix "libdir" and "includedir" for multiple-output drvs.Ludovic Courtès2012-07-02
| | | | | | * guix/build/gnu-build-system.scm (configure): Change `--libdir' and `--includedir' to LIBDIR + "/lib" and INCLUDEDIR + "/include", respectively.
* gnu-build-system: Structure as a customizable sequence of phases.Ludovic Courtès2012-06-16
| | | | | | | | | | | | | | | * 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.
* Remove leftover debugging expressions.Ludovic Courtès2012-06-16
| | | | | * guix/build/utils.scm (directory-exists?): Remove leftover debugging expressions.
* Add supporting tools for the GNU Build System.Ludovic Courtès2012-06-13
| | | | | | | | | | * 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.
* Augment `build-expression->derivation' with #:modules; add `http-fetch'.Ludovic Courtès2012-06-12
* 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.