jackhill/guix/guix.git
11 years agognu: libtool: Allow cross-compilation.
Ludovic Courtès [Sat, 25 May 2013 16:00:01 +0000 (18:00 +0200)]
gnu: libtool: Allow cross-compilation.

* gnu/packages/autotools.scm (libtool)[arguments]: Use #:phases argument
  only when building natively.

11 years agognu: gawk: Allow cross-compilation.
Ludovic Courtès [Sat, 25 May 2013 15:54:27 +0000 (17:54 +0200)]
gnu: gawk: Allow cross-compilation.

* gnu/packages/gawk.scm (gawk)[arguments]: Use `set-shell-file-name'
  phase that works when cross-compiling; use `%standard-cross-phases' as
  the base when (%current-target-system) is true.

11 years agognu: libsigsegv: Fix mips64el-linux-gnu (cross-)builds.
Ludovic Courtès [Sat, 25 May 2013 14:56:22 +0000 (16:56 +0200)]
gnu: libsigsegv: Fix mips64el-linux-gnu (cross-)builds.

* gnu/packages/libsigsegv.scm (libsigsegv): New `arguments' field.

11 years agognu: findutils: Fix cross-compilation.
Ludovic Courtès [Sat, 25 May 2013 14:36:11 +0000 (16:36 +0200)]
gnu: findutils: Fix cross-compilation.

* gnu/packages/base.scm (findutils): Reinstate cross-compilation
  #:configure-flags.

11 years agognu: sed: Allow cross-compilation.
Ludovic Courtès [Sat, 25 May 2013 14:26:16 +0000 (16:26 +0200)]
gnu: sed: Allow cross-compilation.

* gnu/packages/base.scm (sed): Keep the default phases
  when (%current-target-system) is true.

11 years agognu: coreutils: Allow cross-compilation.
Ludovic Courtès [Sat, 25 May 2013 14:24:21 +0000 (16:24 +0200)]
gnu: coreutils: Allow cross-compilation.

* gnu/packages/base.scm (coreutils): Remove Perl input
  when (%current-target-system) is true.  Use %standard-cross-phases as
  the base when (%current-target-system) is true.

11 years agognu: gettext, attr, acl: Disable `check' phase twiddling when cross building.
Ludovic Courtès [Sat, 25 May 2013 14:19:06 +0000 (16:19 +0200)]
gnu: gettext, attr, acl: Disable `check' phase twiddling when cross building.

* gnu/packages/gettext.scm (gettext)[arguments]: Disable `check' phase
  manipulations when (%current-target-system) is true.
* gnu/packages/attr.scm (attr)[arguments]: Likewise.
* gnu/packages/acl.scm (acl)[arguments]: Likewise.

11 years agopackages: Make `native-inputs' thunked.
Ludovic Courtès [Sat, 25 May 2013 14:14:57 +0000 (16:14 +0200)]
packages: Make `native-inputs' thunked.

* guix/packages.scm (<package>): Make `native-inputs' thunked.

11 years agopackages: Re-export `%current-target-system'.
Ludovic Courtès [Sat, 25 May 2013 14:14:37 +0000 (16:14 +0200)]
packages: Re-export `%current-target-system'.

* guix/packages.scm: Re-export `%current-target-system'.

11 years agobuild-system/gnu: Make sure build input variables contain pairs.
Ludovic Courtès [Sat, 25 May 2013 13:35:36 +0000 (15:35 +0200)]
build-system/gnu: Make sure build input variables contain pairs.

* guix/build-system/gnu.scm (gnu-cross-build)[builder]: Make sure
  %build-host-inputs and %build-target-inputs always contain pairs, not
  lists.

11 years agobuild: `hydra.scm' cross-builds simpler packages.
Ludovic Courtès [Fri, 24 May 2013 22:03:28 +0000 (00:03 +0200)]
build: `hydra.scm' cross-builds simpler packages.

* hydra.scm (%packages-to-cross-build): Remove things from
  make-bootstrap for now.

11 years agobuild-system/trivial: Implement the cross-build protocol.
Ludovic Courtès [Fri, 24 May 2013 21:53:06 +0000 (23:53 +0200)]
build-system/trivial: Implement the cross-build protocol.

* guix/build-system/trivial.scm (guile-for-build): New procedure.
  (trivial-build): Use it.
  (trivial-cross-build): New procedure.
  (trivial-build-system): Use it.

11 years agopackage: Fix default profile ownership check when it's just been created.
Ludovic Courtès [Fri, 24 May 2013 21:14:19 +0000 (23:14 +0200)]
package: Fix default profile ownership check when it's just been created.

* guix/scripts/package.scm (guix-package)[ensure-default-profile]: Check
  whether S is true before checking its owner.  Fixes the case where we
  built %PROFILE-DIRECTORY just above.

11 years agobuild: `hydra.scm' adds cross-build jobs.
Ludovic Courtès [Fri, 24 May 2013 21:12:56 +0000 (23:12 +0200)]
build: `hydra.scm' adds cross-build jobs.

* hydra.scm (package->alist): Add `package-derivation' argument.
  (package-cross-job): New procedure.
  (%packages-to-cross-build, %cross-targets): New variables.
  (hydra-jobs): Add cross jobs.

11 years agobuild: Add `--target' option.
Ludovic Courtès [Fri, 24 May 2013 20:52:52 +0000 (22:52 +0200)]
build: Add `--target' option.

* guix/scripts/build.scm (derivations-from-package-expressions): Add
  `package-derivation' parameter.
  (show-help, %options): Add `--target'.
  (guix-build): Use `package-cross-derivation' when `--target' is
  passed.
* tests/guix-build.sh: Add dry-run test with `--target'.
* doc/guix.texi (Invoking guix build): Document `--target'.

11 years agobuild-system/gnu: Implement cross build.
Ludovic Courtès [Fri, 24 May 2013 20:44:15 +0000 (22:44 +0200)]
build-system/gnu: Implement cross build.

* guix/build-system/gnu.scm (inputs-search-paths): New procedure.
  (standard-search-paths): Use it.
  (expand-inputs): New procedure.
  (standard-inputs): Use it.
  (standard-cross-packages, standard-cross-inputs,
  standard-cross-search-paths, gnu-cross-build): New procedures.
  (gnu-build-system): Set `cross-build' field to `gnu-cross-build'.
* gnu/packages/cross-base.scm: Export `cross-gcc', `cross-binutils', and
  `cross-libc'.
* guix/build/gnu-cross-build.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agopackages: Implement `package-cross-derivation'.
Ludovic Courtès [Fri, 24 May 2013 20:21:24 +0000 (22:21 +0200)]
packages: Implement `package-cross-derivation'.

* guix/packages.scm (package-transitive-target-inputs,
  package-transitive-native-inputs): New procedures.
  (package-derivation): Parametrize `%current-target-system'.
  (package-cross-derivation): Implement.
* guix/utils.scm (%current-target-system): New variable.
* tests/packages.scm ("package-cross-derivation"): New test.
* doc/guix.texi (Defining Packages): Document
  `package-cross-derivation'.

11 years agognu: cross-gcc: Set the right search paths.
Ludovic Courtès [Fri, 24 May 2013 19:55:52 +0000 (21:55 +0200)]
gnu: cross-gcc: Set the right search paths.

* gnu/packages/cross-base.scm (cross-gcc): Override `search-paths' and
  `native-search-paths'.

11 years agognu: cross-gcc: Change patch so that `CROSS_LIBRARY_PATH' is honored.
Ludovic Courtès [Fri, 24 May 2013 19:54:44 +0000 (21:54 +0200)]
gnu: cross-gcc: Change patch so that `CROSS_LIBRARY_PATH' is honored.

* gnu/packages/patches/gcc-cross-environment-variables.patch: Add two
  hunks, most notably one that changes GCC to honor LIBRARY_PATH_ENV
  when cross-compiling.

11 years agopackages: Factorize things common to `package-{,cross-}derivation'.
Ludovic Courtès [Mon, 20 May 2013 21:00:47 +0000 (23:00 +0200)]
packages: Factorize things common to `package-{,cross-}derivation'.

* guix/packages.scm (expand-input): New procedure, moved out of...
  (package-derivation): ... here.  Adjust accordingly.
  (package-cross-derivation): Add `cross-system' and `system'
  parameters.

11 years agonls: Add Esperanto translation.
Ludovic Courtès [Thu, 23 May 2013 22:22:57 +0000 (00:22 +0200)]
nls: Add Esperanto translation.

* po/eo.po, po/LINGUAS: New files.

11 years agognu: Add UnRTF.
Ludovic Courtès [Thu, 23 May 2013 22:03:57 +0000 (00:03 +0200)]
gnu: Add UnRTF.

* gnu/packages/unrtf.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agognu: libgc: Add 7.2d.
Ludovic Courtès [Wed, 22 May 2013 22:11:38 +0000 (00:11 +0200)]
gnu: libgc: Add 7.2d.

* gnu/packages/bdw-gc.scm (libgc-7.2): New variable.

11 years agognu: Add GNU Plotutils.
Ludovic Courtès [Tue, 21 May 2013 22:33:14 +0000 (00:33 +0200)]
gnu: Add GNU Plotutils.

* gnu/packages/plotutils.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agoUpdate `NEWS'.
Ludovic Courtès [Mon, 20 May 2013 16:30:55 +0000 (18:30 +0200)]
Update `NEWS'.

11 years agognu: Add CVS.
Ludovic Courtès [Mon, 20 May 2013 16:29:43 +0000 (18:29 +0200)]
gnu: Add CVS.

* gnu/packages/version-control.scm (cvs): New variable.

11 years agoAdd `--max-silent-time' to `guix build' and `guix package'.
Ludovic Courtès [Mon, 20 May 2013 16:14:55 +0000 (18:14 +0200)]
Add `--max-silent-time' to `guix build' and `guix package'.

* guix/scripts/build.scm (%default-options): Add default
  `max-silent-time' value.
  (show-help, %options):  Add `--max-silent-time'.
  (guix-build): Pass `max-silent-time' to `set-build-options'.
* guix/scripts/package.scm (%default-options): Add default
  `max-silent-time' value.
  (show-help, %options):  Add `--max-silent-time'.
  (guix-package): Pass `max-silent-time' to `set-build-options'.
* guix/ui.scm (string->number*): New procedure.
* tests/derivations.scm ("build-expression->derivation and
  max-silent-time"): New test.
* doc/guix.texi (Invoking guix package, Invoking guix build): Document
  `--max-silent-time'.

11 years agognu: Add strace.
Ludovic Courtès [Sat, 18 May 2013 21:31:14 +0000 (23:31 +0200)]
gnu: Add strace.

* gnu/packages/linux.scm (strace): New variable.

11 years agognu: Improve synopses for Linux-related packages.
Ludovic Courtès [Sat, 18 May 2013 21:02:25 +0000 (23:02 +0200)]
gnu: Improve synopses for Linux-related packages.

* gnu/packages/linux.scm (util-linux, procps, e2fsprogs): Clarify and
  shrink synopses.

11 years agobuild: Switch to 0.3.
Ludovic Courtès [Sat, 18 May 2013 21:01:28 +0000 (23:01 +0200)]
build: Switch to 0.3.

* configure.ac: Bump to 0.3.  Use the full URL.

11 years agoUpdate `TODO'.
Ludovic Courtès [Fri, 17 May 2013 21:15:49 +0000 (23:15 +0200)]
Update `TODO'.

11 years agognu: automake: Update to 1.13.2.
Ludovic Courtès [Fri, 17 May 2013 21:10:47 +0000 (23:10 +0200)]
gnu: automake: Update to 1.13.2.

* gnu/packages/autotools.scm (autoconf-wrapper): Wrap `configure' files
  regardless of the exit code of `autoconf'.  Triggered by Automake's
  `t/am-prog-cc-stdc.sh'.
  (automake): Update to 1.13.2.

11 years agopackage: Make sure the profile directory is owned by the user.
Ludovic Courtès [Thu, 16 May 2013 18:04:13 +0000 (20:04 +0200)]
package: Make sure the profile directory is owned by the user.

* guix/scripts/package.scm (guix-package)[ensure-default-profile]: Check
  the owner of %PROFILE-DIRECTORY.  Report an error when the owner is
  not the current user.  Add `rtfm' procedure.
* doc/guix.texi (Invoking guix package): Mention the ownership test.

11 years agosubstitute-binary: Pass `filtered-port' an unbuffered port.
Ludovic Courtès [Wed, 15 May 2013 21:40:09 +0000 (23:40 +0200)]
substitute-binary: Pass `filtered-port' an unbuffered port.

This fixes a bug whereby `read-response' would read more than just the
response, with the extra data going into the port's buffer; the
"bzip2 -dc" process spawned by `filtered-port' would not see the those
buffered data, which are definitely lost, and would bail out with
"bzip2: (stdin) is not a bzip2 file."

* guix/utils.scm (filtered-port): Document that INPUT must be
  unbuffered.
* guix/web.scm (http-fetch): Add `buffered?' parameter.  Call
  `open-socket-for-uri' explicitly, and call `setvbuf' when BUFFERED? is
  false.  Pass the port to `http-get'.  Close it upon 301/302.
* guix/scripts/substitute-binary.scm (fetch): Add `buffered?'
  parameter.  Pass it to `http-fetch'; honor it for `file' URIs.
  (guix-substitute-binary): Call `fetch' with #:buffered? #f for port RAW.
* tests/utils.scm ("filtered-port, file"): Open FILE as unbuffered.

11 years agognu: texinfo: Don't propagate Perl.
Ludovic Courtès [Tue, 14 May 2013 22:15:25 +0000 (00:15 +0200)]
gnu: texinfo: Don't propagate Perl.

* gnu/packages/texinfo.scm (texinfo): Don't propagate Perl.

11 years agosubstitute-binary: Work around thread-unsafe `regexp-exec'.
Ludovic Courtès [Tue, 14 May 2013 21:53:38 +0000 (23:53 +0200)]
substitute-binary: Work around thread-unsafe `regexp-exec'.

* guix/scripts/substitute-binary.scm (%regexp-exec-mutex): New variable.
  (string->uri): New procedure.
  (fields->alist): Wrap `regexp-exec' call in `with-mutex'.

11 years agopackage: Always clear the SIGINT handler.
Ludovic Courtès [Tue, 14 May 2013 21:52:13 +0000 (23:52 +0200)]
package: Always clear the SIGINT handler.

* guix/scripts/package.scm (call-with-sigint-handler): Wrap THUNK in
  `dynamic-wind' so that the SIGINT handler is always cleared.

11 years agoftp-client: Let callers handle `ftp-open' exceptions.
Ludovic Courtès [Tue, 14 May 2013 21:51:36 +0000 (23:51 +0200)]
ftp-client: Let callers handle `ftp-open' exceptions.

* guix/ftp-client.scm (ftp-open): Let exceptions through.
* guix/scripts/package.scm (waiting): Wrap EXP in a `dynamic-wind', so
  the line is always cleared.

11 years agoSort commands alphabetically in "guix --help".
Ludovic Courtès [Tue, 14 May 2013 11:37:53 +0000 (13:37 +0200)]
Sort commands alphabetically in "guix --help".

* guix/ui.scm (show-guix-help): Sort commands.

11 years agoFix "guix --help" on Guile 2.0.5.
Ludovic Courtès [Tue, 14 May 2013 11:37:21 +0000 (13:37 +0200)]
Fix "guix --help" on Guile 2.0.5.

Reported at <http://linuxfr.org/news/sortie-de-gnu-guix-0-2>.

* guix/ui.scm (command-files): Filter the result of `scandir' to make
  sure only `.scm' files are present.

11 years agobuild: Use separate `AC_CONFIG_FILES' invocations for executable files.
Ludovic Courtès [Sun, 12 May 2013 21:26:46 +0000 (23:26 +0200)]
build: Use separate `AC_CONFIG_FILES' invocations for executable files.

* configure.ac: Use separate AC_CONFIG_FILES invocations for files that
  need to be made executable.
* config-daemon.ac: Likewise.

11 years agobuild: Add `gitlog-to-changelog'.
Ludovic Courtès [Sun, 12 May 2013 20:41:11 +0000 (22:41 +0200)]
build: Add `gitlog-to-changelog'.

* build-aux/gitlog-to-changelog: New file, from Gnulib.

11 years agoUpdate `NEWS'.
Ludovic Courtès [Sun, 12 May 2013 14:35:08 +0000 (16:35 +0200)]
Update `NEWS'.

11 years agobuild: Make sure the distribution doesn't embed store file names.
Ludovic Courtès [Sun, 12 May 2013 14:26:12 +0000 (16:26 +0200)]
build: Make sure the distribution doesn't embed store file names.

* Makefile.am (assert-no-store-file-names): New target.
  (dist-hook): Depend on it.

11 years agobuild: Generate a ChangeLog file upon "make dist".
Ludovic Courtès [Sun, 12 May 2013 14:14:25 +0000 (16:14 +0200)]
build: Generate a ChangeLog file upon "make dist".

* Makefile.am (sync-synopses): New rule, formerly `dist-hook.
  (gen-ChangeLog): New rule.
  (dist-hook): Depend on these two targets.

11 years agoMove record utilities to (guix records).
Ludovic Courtès [Sun, 12 May 2013 13:46:16 +0000 (15:46 +0200)]
Move record utilities to (guix records).

* guix/utils.scm (define-record-type*): Move to...
* guix/records.scm: ... here.  New file.
* guix/build-system.scm, guix/packages.scm: Use it.
* guix/gnu-maintenance.scm: Likewise.
  (official-gnu-packages)[alist->record]: Remove.
* guix/scripts/substitute-binary.scm: Likewise.
  (alist->record, object->fields): Remove.
* tests/utils.scm ("define-record-type*", "define-record-type* with
  letrec* behavior", "define-record-type* & inherit",
  "define-record-type* & inherit & letrec* behavior",
  "define-record-type* & thunked", "define-record-type* & thunked &
  default", "define-record-type* & thunked & inherited"): Move to...
* tests/records.scm: ... here.  New file.

11 years agorelease.nix: Revert back to before unchroot experiments.
Ludovic Courtès [Sun, 12 May 2013 13:18:17 +0000 (15:18 +0200)]
release.nix: Revert back to before unchroot experiments.

* release.nix: Revert to commit 4050e5d6cfe8f7af29f10b2f1b3c7febdc10946a.

11 years agognu: guile-reader: Install modules in the right place.
Ludovic Courtès [Sun, 12 May 2013 10:37:21 +0000 (12:37 +0200)]
gnu: guile-reader: Install modules in the right place.

* gnu/packages/guile.scm (guile-reader): Add `arguments' field.

11 years agoUpdate `NEWS'.
Ludovic Courtès [Sat, 11 May 2013 20:50:01 +0000 (22:50 +0200)]
Update `NEWS'.

11 years agognu: Add GNU RCS.
Ludovic Courtès [Sat, 11 May 2013 20:49:39 +0000 (22:49 +0200)]
gnu: Add GNU RCS.

* gnu/packages/bazaar.scm: Rename to...
* gnu/packages/version-control.scm: ... this.
  (rcs): New variable.
* Makefile.am (MODULES): Adjust accordingly.

11 years agobuild: Really clean .log files from SRFI-64.
Ludovic Courtès [Sat, 11 May 2013 20:42:38 +0000 (22:42 +0200)]
build: Really clean .log files from SRFI-64.

* Makefile.am (CLEANFILES): Really catch .log files from SRFI-64.

11 years agobuild: Run `tests/guix-gc.sh' last to avoid test failures.
Ludovic Courtès [Sat, 11 May 2013 20:37:33 +0000 (22:37 +0200)]
build: Run `tests/guix-gc.sh' last to avoid test failures.

* Makefile.am (tests/guix-gc.log): New target.  This should fix failures
  that occurred with "make check -j" the first time.

11 years agognu: Add Scheme48.
Ludovic Courtès [Sat, 11 May 2013 20:13:59 +0000 (22:13 +0200)]
gnu: Add Scheme48.

* gnu/packages/scheme.scm (scheme48): New variable.
* gnu/packages/patches/scheme48-tests.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.

11 years agognu: gnupg: Update to 2.0.20.
Ludovic Courtès [Sat, 11 May 2013 19:28:16 +0000 (21:28 +0200)]
gnu: gnupg: Update to 2.0.20.

* gnu/packages/gnupg.scm (gnupg): Update to 2.0.20.

11 years agognu: chicken: Clear description.
Ludovic Courtès [Sat, 11 May 2013 18:00:48 +0000 (20:00 +0200)]
gnu: chicken: Clear description.

* gnu/packages/scheme.scm (chicken): Remove unneeded part of the
  description.

11 years agodoc: Document "guix download".
Ludovic Courtès [Sat, 11 May 2013 14:18:15 +0000 (16:18 +0200)]
doc: Document "guix download".

* doc/guix.texi (Defining Packages): Linke to "Invoking guix download".
  (Utilities): Add an overview paragraph.
  (Invoking guix download): New node.

11 years agognu: Sync synopses with the Womb.
Ludovic Courtès [Sat, 11 May 2013 13:58:20 +0000 (15:58 +0200)]
gnu: Sync synopses with the Womb.

* gnu/packages/bazaar.scm (bazaar): Use synopsis from the Womb.
* gnu/packages/gv.scm (gv): Likewise.

11 years agotests: Fix out-of-source builds.
Ludovic Courtès [Sat, 11 May 2013 13:43:33 +0000 (15:43 +0200)]
tests: Fix out-of-source builds.

* tests/nar.scm (%test-dir): Compute relative to `pre-inst-env', which
  is in $top_builddir.

11 years agotests: Add `guix hash' test.
Ludovic Courtès [Sat, 11 May 2013 13:09:56 +0000 (15:09 +0200)]
tests: Add `guix hash' test.

* guix/scripts/hash.scm (guix-hash)[eof->null]: New procedure.
  Use it to convert the EOF object to the empty bytevector.
* tests/guix-hash.sh: New file.
* Makefile.am (SH_TESTS): Add it.

11 years agoUpdate Nix sub-module.
Ludovic Courtès [Sat, 11 May 2013 12:49:12 +0000 (14:49 +0200)]
Update Nix sub-module.

* nix-upstream: Update to 3a0cc43ac89ae8f778764c9f5e27b361e4986913
  (Nix ~1.5.2).

11 years agorefresh: Add `--key-server' and `--gpg'.
Ludovic Courtès [Sat, 11 May 2013 12:36:58 +0000 (14:36 +0200)]
refresh: Add `--key-server' and `--gpg'.

* guix/scripts/refresh.scm (%options): Add `--key-server' and `--gpg'.
  (show-help): Update accordingly.
  (update-package): New procedure, formerly in `guix-refresh'.
  (guix-refresh): Use it.  Parameterize `%openpgp-key-server' and
  `%gpg-command'.

11 years agognupg: Turn the GPG command name and keyserver into parameters.
Ludovic Courtès [Sat, 11 May 2013 10:44:19 +0000 (12:44 +0200)]
gnupg: Turn the GPG command name and keyserver into parameters.

* guix/gnupg.scm (%gpg-command): Turn into a SRFI-39 parameter.
  (%openpgp-key-server): Likewise.  Default to pgp.mit.edu, as
  keys.gnupg.net is unreliable.
  Update users.

11 years agognu: Add CHICKEN.
Ludovic Courtès [Sat, 11 May 2013 09:38:38 +0000 (11:38 +0200)]
gnu: Add CHICKEN.

* gnu/packages/scheme.scm (chicken): New variable.

11 years agoui: Invite users to try `--help' in the error message.
Ludovic Courtès [Fri, 10 May 2013 21:14:26 +0000 (23:14 +0200)]
ui: Invite users to try `--help' in the error message.

* guix/ui.scm (show-guix-usage): Mention `guix --help'.
  Suggested by Mark H. Weaver.
  (run-guix-command): Invoke it when a command is not found.
  (guix-main): Adjust accordingly.

11 years agoUpdate `NEWS'.
Ludovic Courtès [Fri, 10 May 2013 21:05:00 +0000 (23:05 +0200)]
Update `NEWS'.

11 years agopackage: Store the output path of packages installed with `-e'.
Ludovic Courtès [Fri, 10 May 2013 21:04:39 +0000 (23:04 +0200)]
package: Store the output path of packages installed with `-e'.

* guix/scripts/package.scm (guix-package)[process-actions](package->tuple):
  Put the output path in the tuple, not the derivation path.
* tests/guix-package.sh: Add test.

11 years agopackage: Make sure the dependencies get built along with the manifest.
Ludovic Courtès [Fri, 10 May 2013 20:46:19 +0000 (22:46 +0200)]
package: Make sure the dependencies get built along with the manifest.

Before this, something like "guix package -i glibc" could fail because
glibc lists linux-libre-headers as a propagated input (which would be
added as a dependency in the manifest) but the linux-libre-headers
output could be unavailable, leading to an error like this:

  path `/nix/store/4v2bk8sx5cm166gks3fi3q7d9zchibnk-linux-libre-headers-3.3.8' is not valid

This patch adds such dependencies as inputs of the profile derivation.

* guix/scripts/package.scm (profile-derivation): Accept package objects
  in the `deps' field of an element of PACKAGES.  Convert them to their
  output path for BUILDER, and add them to the inputs of the
  `build-expression->derivation' call.
  (input->name+path): When INPUT doesn't contain a package object,
  return it as is.
  (guix-package)[process-actions](canonicalize-deps): Expect DEPS to
  contain package objects, and leave them as is.

11 years agoUpdate `TODO'.
Ludovic Courtès [Fri, 10 May 2013 19:08:01 +0000 (21:08 +0200)]
Update `TODO'.

11 years agorefresh: Gracefully handle failure to download a tarball.
Ludovic Courtès [Fri, 10 May 2013 13:07:00 +0000 (15:07 +0200)]
refresh: Gracefully handle failure to download a tarball.

* guix/scripts/refresh.scm (guix-refresh): When updating a source file,
  gracefully handle the case where TARBALL is #f.
  Reported by Nikita Karetnikov <nikita@karetnikov.org>.

11 years agoui: Implement `guix --help'.
Ludovic Courtès [Fri, 10 May 2013 10:33:18 +0000 (12:33 +0200)]
ui: Implement `guix --help'.

* guix/ui.scm (command-files, commands, show-guix-help): New procedures.
  (guix-main): Invoke `show-guix-help' when passed `--help'.

11 years agoui: Gracefully report "command not found" errors.
Ludovic Courtès [Fri, 10 May 2013 10:14:01 +0000 (12:14 +0200)]
ui: Gracefully report "command not found" errors.

* guix/ui.scm (run-guix-command): Can `resolve-interface' errors and
  report them with `leave'.  Parameterize `program-name' from here.
  (guix-main): Remove parameterization of `program-name'.

11 years agognu-maintenance: Add GnuTLS FTP server.
Ludovic Courtès [Thu, 9 May 2013 23:15:04 +0000 (01:15 +0200)]
gnu-maintenance: Add GnuTLS FTP server.

* guix/gnu-maintenance.scm (ftp-server/directory)[quirks]: Add GnuTLS.

11 years agodownload: Fix premature socket close on TLS connections.
Ludovic Courtès [Thu, 9 May 2013 23:14:25 +0000 (01:14 +0200)]
download: Fix premature socket close on TLS connections.

This would manifest when downloading a large file such as the Bazaar
tarball, leading to an "Error in the pull function" GnuTLS exception.

* guix/build/download.scm (add-weak-reference): New procedure.
  (tls-wrap): Add (add-weak-reference record port).

11 years agopackage: Use ~/.guix-profile as the default for --search-paths.
Ludovic Courtès [Thu, 9 May 2013 20:58:23 +0000 (22:58 +0200)]
package: Use ~/.guix-profile as the default for --search-paths.

* guix/scripts/package.scm (search-path-environment-variables): Prefer
  %USER-ENVIRONMENT-DIRECTORY when it points to PROFILE.
  (display-search-paths): Use 3 spaces for indentation.

11 years agobuild: Make sure the user's Guile has all the required features.
Ludovic Courtès [Thu, 9 May 2013 20:26:51 +0000 (22:26 +0200)]
build: Make sure the user's Guile has all the required features.

* m4/guix.m4 (GUIX_ASSERT_GUILE_FEATURES): New macro.
* configure.ac: Use it.

11 years agognu: geiser: Update to 0.4.
Ludovic Courtès [Wed, 8 May 2013 22:16:53 +0000 (00:16 +0200)]
gnu: geiser: Update to 0.4.

* gnu/packages/emacs.scm (geiser): Update to 0.4.

11 years agognu: Add GNU Bazaar.
Nikita Karetnikov [Wed, 8 May 2013 20:46:13 +0000 (20:46 +0000)]
gnu: Add GNU Bazaar.

* gnu/packages/bazaar.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agoAdd 'python-build-system'.
Nikita Karetnikov [Wed, 8 May 2013 22:44:28 +0000 (22:44 +0000)]
Add 'python-build-system'.

* guix/build-system/python.scm, guix/build/python-build-system.scm: New files.
* Makefile.am (MODULES): Add them.

11 years agoAdd (guix build rpath).
Ludovic Courtès [Wed, 8 May 2013 21:24:05 +0000 (23:24 +0200)]
Add (guix build rpath).

* guix/build/rpath.scm: New file.
* Makefile.am (MODULES): Add it.
* gnu/packages/python.scm (python): Use it; remove local copy of
  the *rpath* procedures.
* gnu/packages/samba.scm (samba): Likewise.

11 years agognu: Add tzdata.
Ludovic Courtès [Wed, 8 May 2013 20:44:21 +0000 (22:44 +0200)]
gnu: Add tzdata.

* gnu/packages/base.scm (tzdata): New variable.

11 years agognu: Add cryptsetup.
Andreas Enge [Wed, 8 May 2013 14:35:34 +0000 (16:35 +0200)]
gnu: Add cryptsetup.

* gnu/packages/cryptsetup.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agognu: Add lvm2.
Andreas Enge [Wed, 8 May 2013 14:24:03 +0000 (16:24 +0200)]
gnu: Add lvm2.

* gnu/packages/lvm.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agodoc: Update `NEWS'.
Ludovic Courtès [Wed, 8 May 2013 14:08:25 +0000 (16:08 +0200)]
doc: Update `NEWS'.

* NEWS: Update.

11 years agodoc: Document `guix refresh'.
Ludovic Courtès [Wed, 8 May 2013 14:07:50 +0000 (16:07 +0200)]
doc: Document `guix refresh'.

* doc/guix.texi (Defining Packages): Add cross-reference to "Invoking
  guix refresh".
  (Invoking guix refresh): New node.

11 years agopackage: Display the output of packages to be installed/removed.
Ludovic Courtès [Wed, 8 May 2013 13:21:47 +0000 (15:21 +0200)]
package: Display the output of packages to be installed/removed.

* guix/scripts/package.scm (guix-package)[show-what-to-remove/install]:
  Display the output name.

11 years agopackage: Preserve the installed package output when upgrading.
Ludovic Courtès [Wed, 8 May 2013 13:11:20 +0000 (15:11 +0200)]
package: Preserve the installed package output when upgrading.

* guix/scripts/package.scm (guix-package)[find-package]: Add optional
  parameter `output'.  Use it.
  [process-actions]: When computing UPGRADE, pass OUTPUT to
  `find-package'.

11 years agognu: python: Build the shared library.
Ludovic Courtès [Tue, 7 May 2013 23:50:21 +0000 (01:50 +0200)]
gnu: python: Build the shared library.

* gnu/packages/python.scm (python): Add `--enable-shared'.  Add
  #:modules and #:phases.  Add PatchELF as an input.

11 years agognu: gsasl: Propagate GnuTLS.
Ludovic Courtès [Tue, 7 May 2013 23:47:38 +0000 (01:47 +0200)]
gnu: gsasl: Propagate GnuTLS.

* gnu/packages/gsasl.scm (gsasl): Move GnuTLS to `propagated-inputs'.

11 years agognu: Add Hugs.
Nikita Karetnikov [Tue, 7 May 2013 20:07:52 +0000 (20:07 +0000)]
gnu: Add Hugs.

* gnu/packages/hugs.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agoui: Capitalize informative messages.
Ludovic Courtès [Tue, 7 May 2013 11:28:11 +0000 (13:28 +0200)]
ui: Capitalize informative messages.

* guix/ui.scm (show-what-to-build): Capitalize user messages, as per the
  GCS (info "(standards) Errors").

11 years agopackage: Fix spacing in user messages.
Ludovic Courtès [Tue, 7 May 2013 11:23:30 +0000 (13:23 +0200)]
package: Fix spacing in user messages.

* guix/scripts/package.scm (guix-package)[process-actions]: Fix spacing.

11 years agognu: help2man: Update to 1.41.2.
Ludovic Courtès [Mon, 6 May 2013 22:21:18 +0000 (00:21 +0200)]
gnu: help2man: Update to 1.41.2.

* gnu/packages/help2man.scm (help2man): Update to 1.41.2.

11 years agognu: guile-ncurses: Update to 1.4.
Ludovic Courtès [Mon, 6 May 2013 22:13:28 +0000 (00:13 +0200)]
gnu: guile-ncurses: Update to 1.4.

* gnu/packages/guile.scm (guile-ncurses): Update to 1.4.

11 years agognu: Add GNU FreeIPMI.
Ludovic Courtès [Mon, 6 May 2013 22:12:18 +0000 (00:12 +0200)]
gnu: Add GNU FreeIPMI.

* gnu/packages/freeipmi.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agognu: gv: Move to a separate file.
Ludovic Courtès [Mon, 6 May 2013 21:50:30 +0000 (23:50 +0200)]
gnu: gv: Move to a separate file.

* gnu/packages/ghostscript.scm (ghostscript): Remove libxext and libxt
  as inputs.
  (gv): Move to...
* gnu/packages/gv.scm (gv): ... here.  New file.
  (ghostscript/x): Variant of GHOSTSCRIPT with libxt and libxext as
  inputs.

11 years agognu: freetype: Use mirror:// URL.
Ludovic Courtès [Mon, 6 May 2013 21:48:36 +0000 (23:48 +0200)]
gnu: freetype: Use mirror:// URL.

* gnu/packages/fontutils.scm (freetype): Use mirror://savannah URL.

11 years agorefresh: Change default to not update source files.
Ludovic Courtès [Mon, 6 May 2013 20:31:22 +0000 (22:31 +0200)]
refresh: Change default to not update source files.

* guix/scripts/refresh.scm (%options): Change `--dry-run' to `--update'.
  (show-help): Adjust accordingly.
  (guix-refresh): Likewise.

11 years agognu: Add GNU gv.
Andreas Enge [Sun, 5 May 2013 09:23:13 +0000 (11:23 +0200)]
gnu: Add GNU gv.

* gnu/packages/ghostscript.scm (gv): New variable.

11 years agognu: ghostscript: Add X support.
Andreas Enge [Sun, 5 May 2013 09:19:26 +0000 (11:19 +0200)]
gnu: ghostscript: Add X support.

* gnu/packages/ghostscript.scm (ghostscript): Add X related inputs.

11 years agognu: Add libxaw3d.
Andreas Enge [Sun, 5 May 2013 08:45:55 +0000 (10:45 +0200)]
gnu: Add libxaw3d.

* gnu/packages/xorg.scm (libxaw3d): New variable.