Ludovic Courtès [Wed, 26 Sep 2012 16:27:04 +0000 (18:27 +0200)]
distro: Add an `ld' wrapper, to pass missing `-rpath' flags.
* distro/ld-wrapper.scm: New file.
* Makefile.am (MODULES): Add it.
* distro/base.scm (ld-wrapper-boot3): New variable.
(%boot3-inputs): Add LD-WRAPPER-BOOT3.
(bash-final, guile-final, ld-wrapper): New final.
(%final-inputs): Use BASH-FINAL; add LD-WRAPPER.
(gcc-4.7): Remove the `-rpath' trick from the `lib' spec string.
Ludovic Courtès [Thu, 13 Sep 2012 22:49:39 +0000 (00:49 +0200)]
distro: gcc: Patch `lib' spec to add `-rpath' for each `-L'.
* distro/base.scm (gcc-4.7): Patch `LIB_SPEC' to add `-rpath' for each
`-L'. Spec string suggested by Marc Glisse <marc.glisse@inria.fr>.
(libtool): Add `libtool-skip-tests.patch'.
* distro/patches/libtool-skip-tests.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.
Ludovic Courtès [Wed, 12 Sep 2012 21:47:49 +0000 (23:47 +0200)]
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ès [Tue, 11 Sep 2012 22:07:51 +0000 (00:07 +0200)]
distro: Use our own Perl during bootstrap.
* distro/base.scm (linux-headers-boot0): Use PERL with %BOOT0-INPUTS
instead of calling out to `nixpkgs-derivation*'.
Ludovic Courtès [Tue, 11 Sep 2012 22:07:12 +0000 (00:07 +0200)]
distro: gcc: Add a RUNPATH on libc.
* distro/base.scm (gcc-4.7): Remove unnecessary "libc" input.
Add `-rpath LIBC/lib' to `LIB_SPEC'.
Ludovic Courtès [Tue, 11 Sep 2012 20:17:20 +0000 (22:17 +0200)]
distro: Add Perl.
* distro/base.scm (perl): New variable.
* distro/patches/perl-no-sys-dirs.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.
Ludovic Courtès [Tue, 11 Sep 2012 15:36:21 +0000 (17:36 +0200)]
distro: Bootstrap via a cross-toolchain.
This allows the final toolchain to be completely independent of
%BOOTSTRAP-INPUTS.
* distro/base.scm (glibc-dynamic-linker): New procedure.
(gcc-4.7): Remove #:path-exclusions argument. Check whether LIBC is
#f before using it.
(glibc): Remove "libc_cv_as_needed" hack. Patch `Makeconfig' to
remove `-lgcc_s'.
(nix-system->gnu-triplet, boot-triplet): New variables.
(binutils-boot0): Turn into a cross-Binutils targeting (boot-triplet
SYSTEM).
(gcc-boot0): Likewise. Add configure options to make a smaller
build. Remove "binutils-source" from the input, and use
BINUTILS-BOOT0 instead.
(glibc-final): Cross-build using GCC-BOOT0 and BINUTILS-BOOT0.
(gcc-boot0-wrapped): New variable.
(%boot2-inputs): Use it.
(m4-boot2, gmp-boot2, mpfr-boot2, mpc-boot2): Remove.
(binutils-final): New variable.
(gcc-final): Turn into a joint build with GMP/MPFR/MPC. Use
BINUTILS-FINAL.
(%boot3-inputs): Adjust accordingly.
(%boot4-inputs): Remove.
(%final-inputs): Use %BOOT3-INPUTS.
Ludovic Courtès [Mon, 10 Sep 2012 20:47:10 +0000 (22:47 +0200)]
Add (guix build-system trivial).
* guix/build-system/trivial.scm: New file.
* Makefile.am (MODULES): Add it.
* tests/packages.scm ("trivial"): New test.
* guix/packages.scm (package-derivation): Allow SOURCE to be #f.
Ludovic Courtès [Fri, 7 Sep 2012 13:49:48 +0000 (15:49 +0200)]
distro: Reduce the bootstrap set.
* distro/base.scm (%bootstrap-inputs): Remove `gnumake', `diffutils',
and `findutils'.
(gnu-make-boot0, diffutils-boot0, findutils-boot0, %boot0-inputs): New
variables.
(binutils-boot0, gcc-boot0, linux-headers-boot0, %boot1-inputs):
Replace %BOOTSTRAP-INPUTS by %BOOT0-INPUTS.
(final-inputs): Remove now unneeded call to
`source-properties->location'.
Ludovic Courtès [Thu, 6 Sep 2012 20:58:43 +0000 (22:58 +0200)]
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ès [Thu, 6 Sep 2012 20:57:46 +0000 (22:57 +0200)]
utils: Make `set-path-environment-variable' verbose.
* guix/build/utils.scm (set-path-environment-variable): Print ENV-VAR
and its value.
Ludovic Courtès [Wed, 5 Sep 2012 22:05:06 +0000 (00:05 +0200)]
distro: Bootstrap with a joint GCC/Binutils/GMP/MPFR/MPC build.
* distro/base.scm (%bootstrap-inputs): Remove GMP, MPFR, and MPC.
(substitute-keyword-arguments): New macro.
(gcc-boot0): Add dependency on the Binutils, GMP, MPFR, and MPC
tarballs. Add a `unpack-binutils&co' phase to unpack them and symlink
them so they get built, and to patch errors in `configure'.
(glibc-final): Use `substitute-keyword-arguments' instead of a loop.
(gcc-final): Inherit from GCC-4.7 instead of GCC-BOOT0.
Ludovic Courtès [Wed, 5 Sep 2012 22:01:41 +0000 (00:01 +0200)]
distro: gcc: Avoid retention of reference to `sed'.
* distro/base.scm (gcc-4.7)[pre-configure]: Patch fixincl.x.
Ludovic Courtès [Wed, 5 Sep 2012 22:00:34 +0000 (00:00 +0200)]
distro: glibc: Assume a recent Linux kernel.
* distro/base.scm (glibc): Pass "--enable-kernel=2.6.30".
Ludovic Courtès [Wed, 5 Sep 2012 22:00:00 +0000 (00:00 +0200)]
packages: Accept <origin> as package inputs.
* guix/packages.scm (package-derivation): Accept use of an <origin> as
an input.
Ludovic Courtès [Wed, 5 Sep 2012 21:59:23 +0000 (23:59 +0200)]
build-system/gnu: Relax location handling in `package-with-explicit-inputs'.
* guix/build-system/gnu.scm (package-with-explicit-inputs): Convert LOC
when it is a source-property list.
Ludovic Courtès [Wed, 5 Sep 2012 19:47:26 +0000 (21:47 +0200)]
distro: mpc: Upgrade to 1.0.
* distro/base.scm (mpc): Upgrade to 1.0.
Ludovic Courtès [Wed, 5 Sep 2012 17:01:47 +0000 (19:01 +0200)]
packages: Add `package-full-name'.
* guix/packages.scm (package-full-name): New procedure.
(package-derivation): Use it.
Ludovic Courtès [Tue, 4 Sep 2012 21:43:24 +0000 (23:43 +0200)]
guix-build: Add `--derivations'.
* guix-build.in (show-help): Add `--derivations'.
(%options): Likewise.
(guix-build): Handle it.
Ludovic Courtès [Tue, 4 Sep 2012 21:09:04 +0000 (23:09 +0200)]
guix-build: Add `--source'.
* guix-build.in (derivations-from-package-expressions): Add `source?'
parameter. Honor it.
(show-help): Add `--source'.
(%options): Likewise.
(guix-build): Honor `--source'.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
Move <location> to (guix utils).
* guix/packages.scm (<location>, location): Move to...
* guix/utils.scm: ... here.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
distro: bash, readline: Correctly set RUNPATH to the dependencies.
* distro/base.scm (readline): Add configure flags to set an rpath on
ncurses.
(bash): Add configure flags to set an rpath to readline and ncurses.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
distro: Add bzip2.
* distro/base.scm (bzip2): New variable.
(%final-inputs): Add bzip2.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
distro: Bootstrap standard inputs from Nixpkgs.
This is a first step towards bootstrapping from a set of pre-built,
statically-linked binaries.
* guix/build-system/gnu.scm (package-with-explicit-inputs,
standard-inputs): New procedure.
(%store): New variable.
(%standard-inputs): Remove.
(gnu-build): New `implicit-inputs?' keyword parameter. Use it to
choose whether to use `(standard-inputs SYSTEM)' or the empty list.
* distro/base.scm (guile-2.0): Remove dependency on XZ, which is now
implicit.
(%bootstrap-inputs, gcc-boot0, binutils-boot0, linux-headers-boot0,
%boot1-inputs, glibc-final, %boot2-inputs, m4-boot2, gmp-boot2,
mpfr-boot2, mpc-boot2, %boot3-inputs, gcc-final, %boot4-inputs,
%final-inputs): New variables.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
packages: Add `package-transitive-propagated-inputs'.
* guix/packages.scm (transitive-inputs): New procedure.
(package-transitive-inputs): Rewrite in terms of `transitive-inputs'.
(package-transitive-propagated-inputs): New procedure.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
packages: Cache the result of `package-derivation'.
* guix/packages.scm (%derivation-cache): New variable.
(cache, cached-derivation): New procedures.
(package-derivation): Use them.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
distro: recutils: Allow builds with glibc 2.16+.
* distro/base.scm (recutils): Apply. `diffutils-gets-undeclared.patch'.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
distro: glibc: Propagate Linux headers.
* distro/base.scm (glibc): Move LINUX-HEADERS from `native-inputs' to
`propagated-inputs'. Remove unnecessary `_' in /bin/pwd substitution.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
distro: diffutils: Allow builds with glibc 2.16+.
* distro/patches/diffutils-gets-undeclared.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.
* distro/base.scm (diffutils): Apply. `diffutils-gets-undeclared.patch'.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
distro: tar: Allow builds with glibc 2.16+.
* distro/patches/tar-gets-undeclared.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.
* distro/base.scm (tar): Apply. `tar-gets-undeclared.patch'.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
packages: Add a printer for <package>.
* guix/packages.scm (<package>): Add record printer.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
Optimize `write-derivation' and `derivation-path->output-path'.
* guix/derivations.scm (write-derivation): Explicitly use
`simple-format'.
(derivation-path->output-path): Memoize.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
Optimize `store-path?'.
* guix/store.scm (store-path?): Check with `string-prefix?' instead of a
regexp.
Ludovic Courtès [Sat, 1 Sep 2012 13:43:46 +0000 (15:43 +0200)]
build-system/gnu: Really apply patches.
* guix/build/gnu-build-system.scm (patch): Use `--input FILE', not just
`FILE'.
Ludovic Courtès [Sat, 1 Sep 2012 17:21:06 +0000 (19:21 +0200)]
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ès [Sat, 1 Sep 2012 09:52:52 +0000 (11:52 +0200)]
distro: m4: Add patch to allow builds with glibc 2.16+.
* distro/base.scm (m4): Use `m4-gets-undeclared.patch'.
* distro/patches/m4-gets-undeclared.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.
Ludovic Courtès [Sat, 1 Sep 2012 09:45:52 +0000 (11:45 +0200)]
Add a `guile-for-build' parameter to `build-expression->derivation'.
* guix/derivations.scm (%guile-for-build): Use `nixpkgs-derivation*'
instead of `nixpkgs-derivation'.
(build-expression->derivation): New `guile-for-build' keyword
parameter. Use it.
Ludovic Courtès [Sat, 1 Sep 2012 09:33:20 +0000 (11:33 +0200)]
Add an `env-vars' keyword parameter to `build-expression->derivation'.
* guix/derivations.scm (build-expression->derivation): New `env-vars'
keyword parameter; default to '(). Use it.
Ludovic Courtès [Fri, 31 Aug 2012 23:14:31 +0000 (01:14 +0200)]
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ès [Fri, 31 Aug 2012 22:35:12 +0000 (00:35 +0200)]
distro: gcc: Allow `libstdc++' to be found.
* distro/base.scm (gcc-4.7): Add `-rpath' arguments to `LIB_SPEC' to
allow `libstdc++' to be found by users.
Ludovic Courtès [Fri, 31 Aug 2012 22:33:23 +0000 (00:33 +0200)]
distro: gcc: Pass #:strip-binaries?.
* distro/base.scm (gcc-4.7): Pass #:strip-binaries?.
Ludovic Courtès [Fri, 31 Aug 2012 21:58:21 +0000 (23:58 +0200)]
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ès [Fri, 31 Aug 2012 15:05:34 +0000 (17:05 +0200)]
guix-build: Fix the "unrecognized option" error message.
* guix-build.in (guix-build): Show the option name when an unrecognized
option is passed.
Ludovic Courtès [Fri, 31 Aug 2012 15:04:53 +0000 (17:04 +0200)]
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ès [Thu, 30 Aug 2012 21:30:42 +0000 (23:30 +0200)]
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ès [Thu, 30 Aug 2012 21:03:11 +0000 (23:03 +0200)]
distro: gcc: Do not store configure flags in the resulting binaries.
* distro/base.scm (gcc-4.7): Add a `post-configure' phase to clear
`TOPLEVEL_CONFIGURE_ARGUMENTS' in the top-level `Makefile'.
Ludovic Courtès [Wed, 29 Aug 2012 22:18:50 +0000 (00:18 +0200)]
define-record-type*: Add the `inherit' syntactic constructor keyword.
* guix/utils.scm (define-record-type*)[make-syntactic-constructor]: New
`type' parameter. Add the `inherit' keyword and corresponding support
code.
* tests/utils.scm ("define-record-type* & inherit", "define-record-type*
& inherit & letrec* behavior"): New tests.
Ludovic Courtès [Tue, 28 Aug 2012 22:15:39 +0000 (00:15 +0200)]
distro: Add missing Binutils patch.
* distro/patches/binutils-ld-new-dtags.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.
Ludovic Courtès [Tue, 28 Aug 2012 21:15:13 +0000 (23:15 +0200)]
distro: Add the GNU C Library.
* distro/base.scm (glibc): New variable.
Ludovic Courtès [Tue, 28 Aug 2012 20:31:17 +0000 (22:31 +0200)]
distro: Add Linux headers.
* distro/base.scm (linux-headers): New variable.
Cyprien Nicolas (fulax) [Sun, 26 Aug 2012 11:37:37 +0000 (13:37 +0200)]
configure.ac: Make 'guild' configure check fatal, otherwise one gets 'compile: command not found' during make
Ludovic Courtès [Sat, 25 Aug 2012 11:11:13 +0000 (13:11 +0200)]
distro: Add GNU Binutils.
* distro/base.scm (binutils): New variable.
Ludovic Courtès [Fri, 24 Aug 2012 11:55:54 +0000 (13:55 +0200)]
distro: Add GCC.
* distro/base.scm (gcc-4.7): New variable.
Ludovic Courtès [Sat, 25 Aug 2012 11:12:33 +0000 (13:12 +0200)]
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ès [Thu, 23 Aug 2012 21:13:41 +0000 (23:13 +0200)]
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ès [Thu, 23 Aug 2012 21:09:13 +0000 (23:09 +0200)]
packages: Raise an error condition upon invalid input.
* guix/packages.scm (&package-error, &package-input-error): New
condition types.
(package-derivation): Raise a `&package-input-error' when no match is
made.
Ludovic Courtès [Wed, 22 Aug 2012 15:24:38 +0000 (17:24 +0200)]
distro: coreutils: Remove erroneous hack.
* distro/base.scm (coreutils)[arguments]: Remove
"FORCE_UNSAFE_CONFIGURE" setting, since in fact, this is no problem
when using Nix with separate build users.
Ludovic Courtès [Wed, 22 Aug 2012 15:24:38 +0000 (17:24 +0200)]
distro: Add GNU Coreutils.
* distro/base.scm (coreutils): New variable.
Ludovic Courtès [Wed, 22 Aug 2012 15:24:38 +0000 (17:24 +0200)]
distro: Add XZ.
* distro/base.scm (xz): New variable.
Ludovic Courtès [Wed, 22 Aug 2012 15:24:38 +0000 (17:24 +0200)]
distro: Add GNU gzip.
* distro/base.scm (gzip): New variable.
Ludovic Courtès [Wed, 22 Aug 2012 15:24:38 +0000 (17:24 +0200)]
distro: Add GNU Patch.
* distro/base.scm (patch): New variable.
Ludovic Courtès [Wed, 22 Aug 2012 15:24:38 +0000 (17:24 +0200)]
distro: Add GNU Diffutils.
* distro/base.scm (diffutils): New variable.
Ludovic Courtès [Wed, 22 Aug 2012 15:25:09 +0000 (17:25 +0200)]
build: Bump version number.
* configure.ac: Switch to version 0.1.
Ludovic Courtès [Wed, 22 Aug 2012 15:22:46 +0000 (17:22 +0200)]
Add `close-connection'.
* guix/store.scm (close-connection): New procedure.
Ludovic Courtès [Wed, 22 Aug 2012 15:24:38 +0000 (17:24 +0200)]
distro: Move patches to their own directory.
* Makefile.am (nobase_dist_guilemodule_DATA): Keep only $(MODULES).
(patchdir): New variable.
(dist_patch_DATA): New variable. Patch files formerly
in $(nobase_dist_guilemodule_DATA).
(.scm.go): Define `DISTRO_PATCH_DIRECTORY' and
`DISTRO_INSTALLED_PATCH_DIRECTORY'.
(TESTS_ENVIRONMENT): Define `DISTRO_PATCH_DIRECTORY'.
* distro.scm (%patch-directory): New variable.
(search-patch): New procedure.
* distro/base.scm: Use `search-patch' instead of `(search-path
%load-path ...)'.
* distro/findutils-absolute-paths.patch, distro/guile-1.8-cpp-4.5.patch,
distro/m4-readlink-EINVAL.patch, distro/m4-s_isdir.patch,
distro/make-impure-dirs.patch: Move to `distro/patches'.
Ludovic Courtès [Wed, 22 Aug 2012 13:51:17 +0000 (15:51 +0200)]
distro: Add GNU Findutils.
* distro/base.scm (findutils): New variable.
* distro/findutils-absolute-paths.patch: New file.
* Makefile.am (nobase_dist_guilemodule_DATA): Add it.
Ludovic Courtès [Wed, 22 Aug 2012 13:22:38 +0000 (15:22 +0200)]
distro: Add GNU grep.
* distro/base.scm (grep): New variable.
Ludovic Courtès [Wed, 22 Aug 2012 13:21:50 +0000 (15:21 +0200)]
distro: Add GNU tar.
* distro/base.scm (tar): New variable.
Ludovic Courtès [Wed, 22 Aug 2012 13:11:12 +0000 (15:11 +0200)]
distro: Add GNU sed.
* distro/base.scm (sed): New variable.
Ludovic Courtès [Tue, 21 Aug 2012 16:23:51 +0000 (18:23 +0200)]
distro: Add GNU Bash.
* distro/base.scm (bash): New variable.
Ludovic Courtès [Tue, 21 Aug 2012 16:14:57 +0000 (18:14 +0200)]
distro: Add GNU Make.
* distro/base.scm (gnu-make): New variable.
* distro/make-impure-dirs.patch: New file.
* Makefile.am (nobase_dist_guilemodule_DATA): Add it.
Ludovic Courtès [Sun, 19 Aug 2012 21:05:04 +0000 (23:05 +0200)]
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ès [Sun, 19 Aug 2012 19:50:03 +0000 (21:50 +0200)]
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ès [Sun, 19 Aug 2012 15:56:03 +0000 (17:56 +0200)]
distro: gmp: Fix typo in URL.
* distro/base.scm (gmp): Fix URL.
Ludovic Courtès [Sun, 19 Aug 2012 15:54:54 +0000 (17:54 +0200)]
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ès [Sun, 19 Aug 2012 14:44:08 +0000 (16:44 +0200)]
utils: Add `patch-shebang'.
* guix/build/utils.scm (search-path-as-string->list): New procedure.
(dump-port, patch-shebang): New procedures.
Ludovic Courtès [Fri, 17 Aug 2012 08:45:49 +0000 (10:45 +0200)]
release.nix: Add dependency on GNU libgcrypt.
* release.nix (build)[configureFlags]: Add `--with-libgcrypt-prefix'.
Ludovic Courtès [Fri, 17 Aug 2012 08:41:27 +0000 (10:41 +0200)]
build: Add `--with-libgcrypt-prefix'; capture the path to libgcrypt.
* configure.ac: Add `--with-libgcrypt-prefix'. Substitute `LIBGCRYPT'.
* Makefile.am (.scm.go): Pass $(LIBGCRYPT).
* guix/utils.scm (%libgcrypt): New variable.
(sha256): Use it.
Ludovic Courtès [Thu, 16 Aug 2012 17:00:49 +0000 (19:00 +0200)]
packages: Add all non-derivation paths to the store.
* guix/packages.scm (package-derivation): Add all non-derivation paths
to the store.
Ludovic Courtès [Thu, 16 Aug 2012 16:48:03 +0000 (18:48 +0200)]
packages: Allow store paths as inputs.
* guix/packages.scm (package-derivation): Allow non-derivation store
paths as inputs.
Ludovic Courtès [Tue, 14 Aug 2012 16:52:41 +0000 (18:52 +0200)]
release.nix: Build out of chroot.
* release.nix: Add `preConfigure' and `__noChroot' attributes.
Ludovic Courtès [Tue, 14 Aug 2012 16:50:36 +0000 (18:50 +0200)]
build: Pass the right flags for "make distcheck".
* Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): New variable.
* configure.ac: Define and substitute `NIX_PREFIX'.
Ludovic Courtès [Tue, 14 Aug 2012 16:44:52 +0000 (18:44 +0200)]
build: Add `test.drv' to the distribution.
* Makefile.am (EXTRA_DIST): Add `tests/test.drv'.
Ludovic Courtès [Tue, 14 Aug 2012 16:36:01 +0000 (18:36 +0200)]
build: Pass $(NIX_INSTANTIATE) to the build and test environments.
* Makefile.am (.scm.go): Define $NIX_INSTANTIATE.
(TESTS_ENVIRONMENT): Likewise, and define $NIX_HASH.
* guix/utils.scm (nixpkgs-derivation): Use $NIX_INSTANTIATE when
defined.
* tests/utils.scm (%nix-hash): New variable.
("sha256 & bytevector->nix-base32-string"): Use it.
Ludovic Courtès [Tue, 14 Aug 2012 16:28:04 +0000 (18:28 +0200)]
build: Add SRFI-64 to the distribution.
* Makefile.am (MODULES): Add `srfi/srfi-64.scm' and
`srfi/srfi-64.upstream.scm'.
Ludovic Courtès [Tue, 14 Aug 2012 15:37:48 +0000 (17:37 +0200)]
build: Add release.nix.
* release.nix: New file.
* Makefile.am (EXTRA_DIST): Add it.
Ludovic Courtès [Sat, 21 Jul 2012 17:17:53 +0000 (19:17 +0200)]
distro: Add GNU MPC.
* distro/base.scm (mpc): New variable.
Ludovic Courtès [Sat, 21 Jul 2012 15:20:38 +0000 (17:20 +0200)]
distro: Add GNU MPFR.
* distro/base.scm (mpfr): New variable.
Ludovic Courtès [Sat, 21 Jul 2012 15:05:27 +0000 (17:05 +0200)]
distro: Add GNU recutils.
* distro/base.scm (recutils): New variable.
Ludovic Courtès [Fri, 13 Jul 2012 10:12:34 +0000 (12:12 +0200)]
distro: Add libffi.
* distro/base.scm (libffi): New variable.
(guile-2.0): Use it.
Ludovic Courtès [Thu, 12 Jul 2012 16:02:09 +0000 (18:02 +0200)]
distro: Add GNU Ncurses.
* distro/base.scm (ncurses): New variable.
(readline): Use it.
Ludovic Courtès [Thu, 12 Jul 2012 14:53:18 +0000 (16:53 +0200)]
distro: Add GNU Readline.
* distro/base.scm (readline): New variable.
(guile-1.8, guile-2.0): Use it.
* distro/readline-link-ncurses.patch: New file.
* Makefile.am (nobase_dist_guilemodule_DATA): Add it.
Ludovic Courtès [Thu, 12 Jul 2012 14:52:52 +0000 (16:52 +0200)]
guix-build: Default the number of build cores to (current-processor-count).
* guix-build.in (guix-build): Use (current-processor-count) build cores
by default.
Ludovic Courtès [Wed, 11 Jul 2012 15:26:43 +0000 (17:26 +0200)]
Add `nixpkgs-derivation*'; use it in the distro.
* guix/utils.scm (nixpkgs-derivation*): New macro.
* distro/base.scm: Use it instead of `nixpkgs-derivation'.
Ludovic Courtès [Wed, 11 Jul 2012 15:25:12 +0000 (17:25 +0200)]
distro: Add GNU libunistring.
* distro/base.scm (libunistring): New variable.
(guile-2.0): Use it.
Ludovic Courtès [Wed, 11 Jul 2012 14:20:46 +0000 (16:20 +0200)]
distro: Add GNU Libtool.
* distro/base.scm (libtool): New variable.
(guile-1.8, guile-2.0): Use it.
Ludovic Courtès [Wed, 11 Jul 2012 13:48:11 +0000 (15:48 +0200)]
distro: Add GMP.
* distro/base.scm (gmp): New variable.
(guile-1.8, guile-2.0): Use it.
Ludovic Courtès [Wed, 11 Jul 2012 13:42:40 +0000 (15:42 +0200)]
distro: Add GNU M4.
* distro/base.scm (m4): New variable.
* distro/m4-readlink-EINVAL.patch, distro/m4-s_isdir.patch: New files.
* Makefile.am (nobase_dist_guilemodule_DATA): Add them.
Ludovic Courtès [Sat, 7 Jul 2012 20:53:01 +0000 (22:53 +0200)]
build: Use Automake's `gnu' option.
* configure.ac: Use Automake's `gnu' option.
* ChangeLog, NEWS: New files.
Ludovic Courtès [Sat, 7 Jul 2012 20:50:27 +0000 (22:50 +0200)]
build: Adjust tests to Automake 1.12.
* Makefile.am (TESTS_ENVIRONMENT): Remove `guile' invocation. Add
semicolons, and export the variables as shown in the Automake 1.12
manual.
(LOG_COMPILER): New variable, with `guile' invocation.