jackhill/guix/guix.git
11 years agognu: automake: Restore shebangs on files that end up in user tarballs.
Ludovic Courtès [Sun, 14 Apr 2013 15:17:19 +0000 (17:17 +0200)]
gnu: automake: Restore shebangs on files that end up in user tarballs.

* gnu/packages/autotools.scm (automake): Add `unpatch-shebangs' phase.

11 years agoutils: Add `fold2'.
Ludovic Courtès [Sun, 14 Apr 2013 14:56:08 +0000 (16:56 +0200)]
utils: Add `fold2'.

* gnu/packages.scm (fold2): Remove.
* guix/utils.scm (fold2): New procedure.  Generalization of the above to
  one and two lists.
* tests/utils.scm ("fold2, 1 list", "fold2, 2 lists"): New tests.

11 years agotests: Remove temporary directory created by nar.scm.
Ludovic Courtès [Fri, 12 Apr 2013 16:40:22 +0000 (18:40 +0200)]
tests: Remove temporary directory created by nar.scm.

* tests/nar.scm ("write-file + restore-file with symlinks"): Add (rm-rf
  output).

11 years agostore: Remove unneeded and conflicting import.
Ludovic Courtès [Fri, 12 Apr 2013 16:22:41 +0000 (18:22 +0200)]
store: Remove unneeded and conflicting import.

* guix/store.scm: Remove unneeded (ice-9 rdelim) import.  In Guile 2.0.9
  that module exports `read-string', which conflicts with that of (guix
  serialization).

11 years agopackage: Being at the empty profile is not an error.
Ludovic Courtès [Fri, 12 Apr 2013 16:07:17 +0000 (18:07 +0200)]
package: Being at the empty profile is not an error.

* guix/scripts/package.scm (roll-back): Use `format', not `leave' when
  indicating "already at the empty profile".  Fixes a regression
  introduced in a2011be5dfaf2b94a1d0e3dfbcf4b512389b4711.  Reported by
  Nikita Karetnikov <nikita@karetnikov.org>.

11 years agoUpdate `TODO'.
Ludovic Courtès [Fri, 12 Apr 2013 13:59:03 +0000 (15:59 +0200)]
Update `TODO'.

11 years agoguix package: Add `--no-substitutes'.
Ludovic Courtès [Fri, 12 Apr 2013 13:43:55 +0000 (15:43 +0200)]
guix package: Add `--no-substitutes'.

* guix/scripts/package.scm (%default-options): Add `substitutes?'.
  (show-help, %options): Add and document `--no-substitutes'.
  (guix-package): Call `set-build-options' to honor `substitutes?'.

11 years agosubstitute-binary: Implement `--substitute'.
Ludovic Courtès [Fri, 12 Apr 2013 15:30:27 +0000 (17:30 +0200)]
substitute-binary: Implement `--substitute'.

This allows build outputs to be transparently downloaded from
http://hydra.gnu.org, for example.

* config-daemon.ac: Check for `gzip', `bzip2', and `xz'.
* guix/config.scm.in (%gzip, %bzip2, %xz): New variable.
* guix/scripts/substitute-binary.scm (fetch): Return SIZE as a second value.
  (<narinfo>): Change `url' to `uri'.
  (make-narinfo): Rename to...
  (narinfo-maker): ... this.  Handle relative URLs.
  (fetch-narinfo): Adjust accordingly.
  (filtered-port, decompressed-port): New procedures.
  (guix-substitute-binary): Implement the `--substitute' case.
* tests/store.scm ("substitute query"): Use (%store-prefix) instead
  of (getenv "NIX_STORE_DIR").
  ("substitute"): New test.

11 years agosubstitute-binary: Correctly handle missing narinfos in `--query' mode.
Ludovic Courtès [Fri, 12 Apr 2013 13:52:27 +0000 (15:52 +0200)]
substitute-binary: Correctly handle missing narinfos in `--query' mode.

* guix/scripts/substitute-binary.scm (guix-substitute-binary)["--query"]("have",
  "info"): Filter SUBSTITUTABLE through `narinfo?'.

11 years agonar: Add support for symlinks.
Ludovic Courtès [Fri, 12 Apr 2013 12:35:01 +0000 (14:35 +0200)]
nar: Add support for symlinks.

* guix/nar.scm (write-file): Add case for type `symlink'.
  (restore-file): Likewise.
* tests/nar.scm (random-file-size, make-file-tree, delete-file-tree,
  with-file-tree, file-tree-equal?, make-random-bytevector,
  populate-file): New procedures.
  (%test-dir): New variable.
  ("write-file + restore-file"): Use `%test-dir' and `file-tree-equal?'.
  ("write-file + restore-file with symlinks"): New test.

11 years agoui: Add a `warning' macro.
Ludovic Courtès [Thu, 11 Apr 2013 20:30:06 +0000 (22:30 +0200)]
ui: Add a `warning' macro.

* guix/ui.scm (program-name, guix-warning-port): New variables.
  (warning): New macro.
  (guix-main): Parametrize PROGRAM-NAME.
* guix/scripts/build.scm, guix/scripts/download.scm,
  guix/scripts/gc.scm, guix/scripts/package.scm: Adjust to use `leave'
  and `warning' consistently.

11 years agonar: Implement restoration from Nar.
Ludovic Courtès [Mon, 8 Apr 2013 20:54:08 +0000 (22:54 +0200)]
nar: Implement restoration from Nar.

* guix/nar.scm (&nar-error, &nar-read-error): New condition types.
  (dump): New procedure.
  (write-contents)[dump]: Remove.  Use the one above instead.
  (read-contents, write-file, restore-file): New procedures.
  (%archive-version-1): New variable.

11 years agobuild: Pass the appropriate flags when building `libstore.a'.
Ludovic Courtès [Sat, 30 Mar 2013 20:49:17 +0000 (21:49 +0100)]
build: Pass the appropriate flags when building `libstore.a'.

* daemon.am (libstore_a_CFLAGS): Rename to...
  (libstore_a_CXXFLAGS): ... this.

11 years agognu: shishi: Update to 1.0.2.
Nikita Karetnikov [Fri, 5 Apr 2013 23:08:44 +0000 (23:08 +0000)]
gnu: shishi: Update to 1.0.2.

* gnu/packages/shishi.scm (shishi): Update to 1.0.2.
* gnu/packages/patches/shishi-gets-undeclared.patch: Remove it.
* Makefile.am (dist_patch_DATA): Adjust accordingly.

11 years agognu: Python: fix the compilation of some modules from the standard library.
Cyril Roelandt [Fri, 5 Apr 2013 22:28:39 +0000 (00:28 +0200)]
gnu: Python: fix the compilation of some modules from the standard library.

This commit enables the bz2, dbm, readline, ssl and zlib modules.

* gnu/packages/gdbm.scm: Enable the compatibility mode.
* gnu/packages/python.scm: Enable a few modules from the standard library.
* gnu/packages/patches/python-fix-dbm.patch: New file.
* Makefile.am: Add it.

11 years agoAdd (guix nar) and (guix serialization).
Ludovic Courtès [Thu, 4 Apr 2013 20:29:08 +0000 (22:29 +0200)]
Add (guix nar) and (guix serialization).

* guix/store.scm (write-int, read-int, write-long-long, read-long-long,
  write-padding, write-string, read-string, read-latin1-string,
  write-string-list, read-string-list, write-store-path,
  read-store-path, write-store-path-list, read-store-path-list): Move to
  serialization.scm.
  (write-contents, write-file): Move to nar.scm.
* guix/nar.scm, guix/serialization.scm: New files.
* Makefile.am (MODULES): Add them.

11 years agosubstitute-binary: Fix communication of several store paths to the daemon.
Ludovic Courtès [Thu, 4 Apr 2013 19:47:55 +0000 (21:47 +0200)]
substitute-binary: Fix communication of several store paths to the daemon.

* guix/scripts/substitute-binary.scm (guix-substitute-binary)["--query"]:
  Emit blank lines only after the complete list of store paths has been
  returned.

11 years agoAdd preliminary binary substituter.
Ludovic Courtès [Tue, 2 Apr 2013 08:44:20 +0000 (10:44 +0200)]
Add preliminary binary substituter.

* guix/scripts/substitute-binary.scm: New file.
* Makefile.am (MODULES): Add it.
* nix/scripts/substitute-binary.in: New file.
* config-daemon.ac: Produce nix/scripts/substitute-binary.
* daemon.am (nodist_pkglibexec_SCRIPTS): Add
  nix/scripts/substitute-binary.
* guix/store.scm (substitutable-path-info): Use the
  `query-substitutable-path-infos' RPC.
* nix/nix-daemon/guix-daemon.cc (main): Honor `NIX_SUBSTITUTERS'.
* pre-inst-env.in: Set `NIX_SUBSTITUTERS'.
* test-env.in: Leave `NIX_SUBSTITUTERS' unchanged.  Set
  `GUIX_BINARY_SUBSTITUTE_URL, and create
  $NIX_STATE_DIR/substituter-data.
  Run `guix-daemon' within `./pre-inst-env'.
* tests/store.scm ("substitute query"): New test.

11 years agognu: bigloo: Add dependencies on Avahi and libphidget.
Ludovic Courtès [Wed, 3 Apr 2013 12:44:40 +0000 (14:44 +0200)]
gnu: bigloo: Add dependencies on Avahi and libphidget.

* gnu/packages/scheme.scm (bigloo): Add Avahi and libphidget as inputs,
  and pkg-config as a native input.

11 years agognu: Add libphidget.
Ludovic Courtès [Tue, 2 Apr 2013 08:59:27 +0000 (10:59 +0200)]
gnu: Add libphidget.

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

11 years agostore: Add `store-path-hash-part'.
Ludovic Courtès [Mon, 1 Apr 2013 14:08:31 +0000 (16:08 +0200)]
store: Add `store-path-hash-part'.

* guix/store.scm (store-path-hash-part): New procedure.
* tests/store.scm ("store-path-hash-part", "store-path-hash-part #f"):
  New tests.

11 years agognu-maintenance: Adjust `http-fetch' to the various Guile versions.
Ludovic Courtès [Sun, 31 Mar 2013 22:41:55 +0000 (00:41 +0200)]
gnu-maintenance: Adjust `http-fetch' to the various Guile versions.

* guix/gnu-maintenance.scm (http-fetch): Try #:streaming? #t, or
  'http-get*', or 'http-get' as a last resort.  Check whether DATA is
  #f, a string, or an input port.

11 years agopull: Switch to the cgit URL.
Ludovic Courtès [Sun, 31 Mar 2013 10:46:28 +0000 (12:46 +0200)]
pull: Switch to the cgit URL.

* guix/scripts/pull.scm (%snapshot-url): Switch to the cgit URL, given
  that the Hydra one is not currently available.

11 years agognu: perl-xml-parser: Fix URL.
Ludovic Courtès [Sun, 31 Mar 2013 10:39:25 +0000 (12:39 +0200)]
gnu: perl-xml-parser: Fix URL.

* gnu/packages/xml.scm (perl-xml-parser): Fix URL.

11 years agosnix: Adjust import to current Nixpkgs input attribute names.
Ludovic Courtès [Thu, 28 Mar 2013 14:30:27 +0000 (15:30 +0100)]
snix: Adjust import to current Nixpkgs input attribute names.

* guix/snix.scm (snix-derivation->guix-package): Use the new names
  `nativeBuildInputs' and `propagatedNativeBuildInputs'.

11 years agognu-maintenance: Improve 'official-gnu-packages'; add related procedures.
Nikita Karetnikov [Thu, 28 Mar 2013 21:40:41 +0000 (21:40 +0000)]
gnu-maintenance: Improve 'official-gnu-packages'; add related procedures.

* guix/gnu-maintenance.scm (http-fetch): Return an input port.
  (<gnu-package-descriptor>): Add it.
  (official-gnu-packages): Use <gnu-package-descriptor>.
  (find-packages): Add it.
  (gnu-package?): Adjust accordingly.

11 years agoAdd (guix build-system cmake).
Cyril Roelandt [Tue, 26 Mar 2013 21:14:24 +0000 (22:14 +0100)]
Add (guix build-system cmake).

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

11 years agobuild: Set `%fresh-auto-compile' in `hydra.scm'.
Ludovic Courtès [Wed, 27 Mar 2013 23:14:38 +0000 (00:14 +0100)]
build: Set `%fresh-auto-compile' in `hydra.scm'.

* hydra.scm: Set `%fresh-auto-compile' to #t.

11 years agognu: make-bootstrap: Import (gnu packages gcc).
Ludovic Courtès [Wed, 27 Mar 2013 22:47:54 +0000 (23:47 +0100)]
gnu: make-bootstrap: Import (gnu packages gcc).

* gnu/packages/make-bootstrap.scm: Import (gnu packages gcc).

11 years agodownload: Remove unreliable GNU mirror.
Ludovic Courtès [Wed, 27 Mar 2013 14:50:18 +0000 (15:50 +0100)]
download: Remove unreliable GNU mirror.

* guix/download.scm (%mirrors)[gnu]: Remove ftp.chg.ru.

11 years agognu: Add libelf.
Ludovic Courtès [Wed, 27 Mar 2013 14:47:48 +0000 (15:47 +0100)]
gnu: Add libelf.

* gnu/packages/gcc.scm (libelf): New variable.

11 years agognu: Add ISL and CLooG.
Ludovic Courtès [Wed, 27 Mar 2013 14:37:27 +0000 (15:37 +0100)]
gnu: Add ISL and CLooG.

* gnu/packages/gcc.scm (%gcc-infrastructure, isl, cloog): New variables.

11 years agognu: Move GCC to its own module.
Ludovic Courtès [Wed, 27 Mar 2013 14:13:25 +0000 (15:13 +0100)]
gnu: Move GCC to its own module.

* gnu/packages/base.scm (gcc-4.7): Move to...
* gnu/packages/gcc.scm: ... here.  New file.
* Makefile.am (MODULES): Add it.

11 years agoglib: Patch around prlimit(2) failure.
Ludovic Courtès [Wed, 27 Mar 2013 14:01:30 +0000 (15:01 +0100)]
glib: Patch around prlimit(2) failure.

* gnu/packages/glib.scm (glib)[source]: Switch to mirror://gnome.
  [inputs]: Add `patch/tests-prlimit'.
  [arguments]: Add it.
* gnu/packages/patches/glib-tests-prlimit.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.

11 years agobuild: `hydra.scm' changes %load-path to refer to itself.
Ludovic Courtès [Tue, 26 Mar 2013 23:24:54 +0000 (00:24 +0100)]
build: `hydra.scm' changes %load-path to refer to itself.

* hydra.scm: Add `eval-when' clause.

11 years agoUpdate `TODO'.
Ludovic Courtès [Tue, 26 Mar 2013 23:11:57 +0000 (00:11 +0100)]
Update `TODO'.

11 years agognu: Add GNU cflow.
Ludovic Courtès [Tue, 26 Mar 2013 21:43:41 +0000 (22:43 +0100)]
gnu: Add GNU cflow.

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

11 years agognu: Add GNU cppi.
Ludovic Courtès [Tue, 26 Mar 2013 21:32:18 +0000 (22:32 +0100)]
gnu: Add GNU cppi.

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

11 years agostore: Really disable file name canonicalization for derivation inputs.
Ludovic Courtès [Fri, 22 Mar 2013 21:58:19 +0000 (22:58 +0100)]
store: Really disable file name canonicalization for derivation inputs.

* guix/store.scm (write-contents)[call-with-binary-input-file]: Set
  %FILE-PORT-NAME-CANONICALIZATION to #f.
* gnu/packages.scm (search-patch, search-bootstrap-binary): Leave
  %FILE-PORT-NAME-CANONICALIZATION unchanged.  This reverts 9776ebb.

11 years agostore: Use `sendfile' when available.
Ludovic Courtès [Fri, 22 Mar 2013 21:51:41 +0000 (22:51 +0100)]
store: Use `sendfile' when available.

* guix/store.scm (write-contents)[call-with-binary-input-file]: New
  procedure.
  Use `sendfile' instead of `dump' when available.  Add `size'
  parameter.
  (write-file): Update caller.

11 years agognu: Add cmake.
Cyril Roelandt [Tue, 12 Mar 2013 03:40:00 +0000 (04:40 +0100)]
gnu: Add cmake.

* gnu/packages/cmake.scm: New file.
* gnu/packages/patches/cmake-fix-tests.patch: New file.
* Makefile.am: Add them.

11 years agognu: Disable file name canonicalization in `search-*'.
Ludovic Courtès [Wed, 20 Mar 2013 23:32:26 +0000 (00:32 +0100)]
gnu: Disable file name canonicalization in `search-*'.

* gnu/packages.scm (search-patch, search-bootstrap-binary): Make sure no
  canonicalization occurs.  This reduces the number of 'stat' system
  calls.

11 years agognu: Add lua.
Cyril Roelandt [Fri, 15 Mar 2013 04:41:12 +0000 (05:41 +0100)]
gnu: Add lua.

* gnu/packages/lua.scm: New file.
* Makefile.am: add it.

11 years agognu: libgcrypt: Upgrade to 1.5.1.
Ludovic Courtès [Tue, 19 Mar 2013 16:24:55 +0000 (17:24 +0100)]
gnu: libgcrypt: Upgrade to 1.5.1.

* gnu/packages/gnupg.scm (libgcrypt): Upgrade to 1.5.1.

11 years agoWork around <http://bugs.gnu.org/13095> in build-aux/download.scm.
Ludovic Courtès [Tue, 19 Mar 2013 15:57:46 +0000 (16:57 +0100)]
Work around <bugs.gnu.org/13095> in build-aux/download.scm.

* build-aux/download.scm: Annihilate `shutdown' in (web client).
  Reported by Aljosha Papsch.

11 years agorelease.nix: Hack to unchroot more stuff.
Ludovic Courtès [Mon, 18 Mar 2013 22:17:28 +0000 (23:17 +0100)]
release.nix: Hack to unchroot more stuff.

* release.nix (unchrootedNixpkgs): New function.
  (jobs)[tarball, build, build_disable_daemon, distro): Use it.
  Should fix <http://hydra.gnu.org:3000/build/7279>.

11 years agorelease.nix: Adjust to current Nixpkgs.
Ludovic Courtès [Mon, 18 Mar 2013 22:07:42 +0000 (23:07 +0100)]
release.nix: Adjust to current Nixpkgs.

* release.nix: s/buildNativeInputs/nativeBuildInputs/.

11 years agoguix package: Report packages to be removed/installed.
Ludovic Courtès [Mon, 18 Mar 2013 22:04:07 +0000 (23:04 +0100)]
guix package: Report packages to be removed/installed.

* guix/scripts/package.scm (guix-package)[process-actions](show-what-to-remove/install):
  New procedure.
  Call it before `show-what-to-build'.

11 years agognu: Add openconnect.
Andreas Enge [Sat, 16 Mar 2013 21:36:13 +0000 (22:36 +0100)]
gnu: Add openconnect.

* gnu/packages/vpn.scm (openconnect): New variable.

11 years agoderivations: Optimize `build-expression->derivation'.
Ludovic Courtès [Sat, 16 Mar 2013 16:22:20 +0000 (17:22 +0100)]
derivations: Optimize `build-expression->derivation'.

This reduces the execution time of
"guix build -e '(@ (gnu packages emacs) emacs)' -d" by 6%, from
1.15s to 1.08s.

* guix/derivations.scm (build-expression->derivation): Write the builder
  as UTF-8.

11 years agoderivations: Optimize `write-derivation'.
Ludovic Courtès [Sat, 16 Mar 2013 15:46:46 +0000 (16:46 +0100)]
derivations: Optimize `write-derivation'.

This reduces the execution time of
"guix build -e '(@ (gnu packages emacs) emacs)' -d" by 25%, from
1.54 s. to 1.15s.

* guix/derivations.scm (write-sequence, write-list, write-tuple): New
  procedures.
  (write-derivation)[list->string, write-list]: Remove.
  [write-string-list, write-output, write-input, write-env-var]: New helpers.
  Rewrite in terms of these new helpers.

11 years agoguix package: Gracefully handle `official-gnu-packages' failure.
Ludovic Courtès [Fri, 15 Mar 2013 23:59:19 +0000 (00:59 +0100)]
guix package: Gracefully handle `official-gnu-packages' failure.

* guix/gnu-maintenance.scm (http-fetch): Error out when DATA is #f.
* guix/scripts/package.scm (check-package-freshness): Wrap
  `gnu-package?' call in `false-if-exception'.
  Reported by Cyril Roelandt <tipecaml@gmail.com>.

11 years agognu: emacs: Update to 24.3.
Ludovic Courtès [Thu, 14 Mar 2013 16:47:26 +0000 (17:47 +0100)]
gnu: emacs: Update to 24.3.

* gnu/packages/emacs.scm (emacs): Update to 24.3.  Use the .xz tarball.
* gnu/packages/patches/emacs-configure-sh.patch: Adjust.

11 years agognu: texinfo: Update to 5.1.
Ludovic Courtès [Thu, 14 Mar 2013 16:32:25 +0000 (17:32 +0100)]
gnu: texinfo: Update to 5.1.

* gnu/packages/texinfo.scm (texinfo): Update to 5.1.

11 years agoui: Gracefully report failures to connect to the daemon.
Ludovic Courtès [Thu, 7 Mar 2013 18:29:12 +0000 (19:29 +0100)]
ui: Gracefully report failures to connect to the daemon.

* guix/store.scm (&nix-connection-error): New condition type.
  (open-connection): Translate `system-error' during the `connect' call
  into `&nix-connection-error'.
* guix/ui.scm (call-with-error-handling): Add case for `nix-connection-error?'.
* guix/scripts/package.scm (guix-package): Move `open-connection' call
  within `with-error-handling'.
* guix/scripts/pull.scm (guix-pull): Likewise.
* guix/scripts/download.scm (guix-download): Move body within
  `with-error-handling'.

11 years agopackages: Remove the default value for `license'.
Ludovic Courtès [Wed, 6 Mar 2013 23:42:18 +0000 (00:42 +0100)]
packages: Remove the default value for `license'.

* guix/packages.scm (<package>): Remove the default value for `license'.
* gnu/packages/bootstrap.scm (package-from-tarball,
  %bootstrap-glibc, %bootstrap-gcc): Initialize `license'.
* tests/packages.scm (dummy-package): Likewise.

11 years agoRevert "utils: Add 'wrap-program'."
Ludovic Courtès [Wed, 6 Mar 2013 23:36:14 +0000 (00:36 +0100)]
Revert "utils: Add 'wrap-program'."

This reverts commit 02065130de33e990969fe9b7cc19b9b1c24f3ff7.

11 years agoutils: Add 'wrap-program'.
Nikita Karetnikov [Sun, 3 Mar 2013 23:20:28 +0000 (23:20 +0000)]
utils: Add 'wrap-program'.

* guix/build/utils.scm (wrap-program): New procedure.

11 years agognu: Add GNU Fdisk.
Nikita Karetnikov [Wed, 6 Mar 2013 20:58:48 +0000 (20:58 +0000)]
gnu: Add GNU Fdisk.

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

11 years agognu: Add w3m.
Nikita Karetnikov [Mon, 4 Mar 2013 01:34:13 +0000 (01:34 +0000)]
gnu: Add w3m.

* gnu/packages/w3m.scm,
  gnu/packages/patches/w3m-fix-compile.patch: New files.
* Makefile.am (MODULES): Add 'w3m.scm'.
  (dist_patch_DATA): Add 'w3m-fix-compile.patch'.

11 years agolicenses: Add 'x11-style'.
Nikita Karetnikov [Mon, 4 Mar 2013 01:08:24 +0000 (01:08 +0000)]
licenses: Add 'x11-style'.

* guix/licenses.scm (x11-style): New variable.

11 years agognu-maintenance: Clarify `releases'.
Ludovic Courtès [Tue, 5 Mar 2013 21:31:19 +0000 (22:31 +0100)]
gnu-maintenance: Clarify `releases'.

* guix/gnu-maintenance.scm (releases): Change to use `match' and
  `match-lambda'.  Add `release-file' auxiliary function.

11 years agognu-maintenance: Fix `gnu-package?' for packages lacking a `source'.
Ludovic Courtès [Tue, 5 Mar 2013 21:25:40 +0000 (22:25 +0100)]
gnu-maintenance: Fix `gnu-package?' for packages lacking a `source'.

* guix/gnu-maintenance.scm (gnu-package?): Support PACKAGE when its
  source is #f.

11 years agoguix package: Recover from freshness check transient errors.
Ludovic Courtès [Tue, 5 Mar 2013 21:24:19 +0000 (22:24 +0100)]
guix package: Recover from freshness check transient errors.

* guix/scripts/package.scm (check-package-freshness): Ignore
  `getaddrinfo-error' and `ftp-error' exceptions.

11 years agoguix package: Inform about new upstream versions of GNU packages.
Ludovic Courtès [Tue, 5 Mar 2013 19:30:27 +0000 (20:30 +0100)]
guix package: Inform about new upstream versions of GNU packages.

* guix/gnu-maintenance.scm (gnu-package?): New procedure.
* guix/scripts/package.scm (waiting): New macro.
  (check-package-freshness): New procedure.
  (guix-package)[process-actions]: Use it.
* doc/guix.texi (Invoking guix package): Mention the feature.

11 years agognu: Add Avahi.
Ludovic Courtès [Tue, 5 Mar 2013 19:26:24 +0000 (20:26 +0100)]
gnu: Add Avahi.

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

11 years agognu: Update GnuTLS to 3.1.9.1.
Ludovic Courtès [Tue, 5 Mar 2013 13:40:09 +0000 (14:40 +0100)]
gnu: Update GnuTLS to 3.1.9.1.

* gnu/packages/gnutls.scm (gnutls): Update to 3.1.9.1.

11 years agognu: Add intltool.
Ludovic Courtès [Tue, 5 Mar 2013 09:16:17 +0000 (10:16 +0100)]
gnu: Add intltool.

* guix/download.scm (%mirrors): Add `gnome' mirrors.
* gnu/packages/glib.scm (intltool): New variable.

11 years agognu: Add lsof.
Andreas Enge [Mon, 4 Mar 2013 23:14:44 +0000 (00:14 +0100)]
gnu: Add lsof.

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

11 years agognu: Add Perl XML::Parser.
Ludovic Courtès [Sun, 3 Mar 2013 23:46:44 +0000 (00:46 +0100)]
gnu: Add Perl XML::Parser.

* gnu/packages/xml.scm (perl-xml-parser): New variable.

11 years agoAdd (guix build-system perl).
Ludovic Courtès [Sun, 3 Mar 2013 23:41:46 +0000 (00:41 +0100)]
Add (guix build-system perl).

* guix/build-system/perl.scm, guix/build/perl-build-system.scm: New files.
* Makefile.am (MODULES): Add them.
* guix/build-system/gnu.scm (standard-inputs): Make public.

11 years agodownload: Add CPAN mirrors.
Ludovic Courtès [Sun, 3 Mar 2013 23:46:27 +0000 (00:46 +0100)]
download: Add CPAN mirrors.

* guix/download.scm (%mirrors)[cpan]: New URLs.

11 years agognu: Add vpnc.
Andreas Enge [Sun, 3 Mar 2013 13:10:57 +0000 (14:10 +0100)]
gnu: Add vpnc.

* gnu/packages/vpn.scm: New file.
* Makefile.am (MODULES): Add it.
* gnu/packages/patches/vpnc-script.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.

11 years agorelease.nix: Reduce the number of dependencies.
Ludovic Courtès [Sat, 2 Mar 2013 21:56:30 +0000 (22:56 +0100)]
release.nix: Reduce the number of dependencies.

* release.nix (tarball): Use a minimal Git.

11 years agognu: Add libdaemon.
Ludovic Courtès [Sat, 2 Mar 2013 16:00:33 +0000 (17:00 +0100)]
gnu: Add libdaemon.

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

11 years agorelease.nix: Unchroot recursively.
Ludovic Courtès [Sat, 2 Mar 2013 14:25:04 +0000 (15:25 +0100)]
release.nix: Unchroot recursively.

* release.nix (unchroot): Operate recursively on build inputs.

11 years agorelease.nix: Build outside of a chroot.
Ludovic Courtès [Sat, 2 Mar 2013 14:14:22 +0000 (15:14 +0100)]
release.nix: Build outside of a chroot.

* release.nix (unchroot): New function.
  (jobs)[tarball, build, build_disable_daemon]: Use it.

11 years agoui: Factorize `read/eval-package-expression'.
Ludovic Courtès [Fri, 1 Mar 2013 20:55:42 +0000 (21:55 +0100)]
ui: Factorize `read/eval-package-expression'.

* guix/scripts/package.scm (read/eval-package-expression): Move to...
* guix/ui.scm (read/eval-package-expression): ... here.
* guix/scripts/build.scm (derivations-from-package-expressions): Use it.

11 years agoguix package: Add `--install-from-expression'.
Ludovic Courtès [Fri, 1 Mar 2013 20:12:32 +0000 (21:12 +0100)]
guix package: Add `--install-from-expression'.

* guix/scripts/package.scm (read/eval-package-expression): New
  procedure.
  (show-help): Add `-e'.
  (%options): Likewise.
  (guix-package)[process-actions]: Handle ('install . p) pairs, where P
  is a package.
* tests/guix-package.sh: Add `boot_make_drv'.  Use `-i $boot_make_drv'
  once, and then use `-e $boot_make'.
* doc/guix.texi (Invoking guix package): Document `-e'.

11 years agognu: global: Update to 6.2.8.
Ludovic Courtès [Fri, 1 Mar 2013 17:34:33 +0000 (18:34 +0100)]
gnu: global: Update to 6.2.8.

* gnu/packages/global.scm (global): Update to 6.2.8.

11 years agoguix gc: Add `--references' and `--referrers'.
Ludovic Courtès [Wed, 27 Feb 2013 22:16:00 +0000 (23:16 +0100)]
guix gc: Add `--references' and `--referrers'.

* guix/scripts/gc.scm (show-help): Update.
  (%options): Add `--references' and `--referrers'.
  (guix-gc)[symlink-target, store-directory]: New procedures.
  Handle the `list-references' and `list-referrers' actions.
* tests/guix-gc.sh: Add tests for `--references'.
* doc/guix.texi (Invoking guix gc): Document `--references' and
  `--referrers'.

11 years agostore: Add queries for references & co.
Ludovic Courtès [Wed, 27 Feb 2013 21:40:35 +0000 (22:40 +0100)]
store: Add queries for references & co.

* guix/store.scm (operation-id)[query-valid-derivers]: New value.
  (references, referrers, valid-derivers, query-derivation-outputs): New
  procedures.
* tests/store.scm ("references", "derivers"): New tests.

11 years agodownload: Add X.org mirrors.
Andreas Enge [Sat, 23 Feb 2013 17:59:43 +0000 (18:59 +0100)]
download: Add X.org mirrors.

* guix/download.scm (%mirrors): Add `xorg'.

11 years agognu: screen: Use GNU mirror.
Andreas Enge [Sat, 23 Feb 2013 17:39:49 +0000 (18:39 +0100)]
gnu: screen: Use GNU mirror.

* gnu/packages/screen.scm (screen): Use GNU mirror.

11 years agognu: Update libpng to 1.5.14.
Andreas Enge [Sat, 23 Feb 2013 15:30:03 +0000 (16:30 +0100)]
gnu: Update libpng to 1.5.14.

* gnu/packages/libpng.scm (libpng): Switch to version 1.5.14.

11 years agopull: Distinguish "already up to date" from "updated".
Ludovic Courtès [Fri, 22 Feb 2013 20:08:06 +0000 (21:08 +0100)]
pull: Distinguish "already up to date" from "updated".

* guix/ui.scm (show-what-to-build): Return (length req*).
* guix/scripts/pull.scm (guix-pull): Print an "already up to date"
  message when there's nothing to build.

11 years agopull: Build (guix build download) first, because of the (gnutls) autoload.
Ludovic Courtès [Fri, 22 Feb 2013 19:01:29 +0000 (20:01 +0100)]
pull: Build (guix build download) first, because of the (gnutls) autoload.

* guix/scripts/pull.scm (unpack): Build (guix build download) first, as
  done in 855a8ad71def2ebc594ed32c57bda0ca4e13d91c.
  Reported by Andreas Enge <andreas@enge.fr>.

11 years agoguix: Make sure UPDATES-DIR is valid.
Ludovic Courtès [Thu, 21 Feb 2013 09:27:34 +0000 (10:27 +0100)]
guix: Make sure UPDATES-DIR is valid.

* scripts/guix.in: Make sure UPDATES-DIR is not #f.

11 years agoAdd "guix pull".
Ludovic Courtès [Wed, 20 Feb 2013 22:46:38 +0000 (23:46 +0100)]
Add "guix pull".

* guix/scripts/pull.scm: New file.
* Makefile.am (MODULES): Add it.
* doc/guix.texi (Invoking guix pull): New node.
  (Invoking guix package): Add cross-ref to it.
* guix/ui.scm (config-directory): New procedure.
* scripts/guix.in: When `GUIX_UNINSTALLED' is undefined, add
  $XDG_CONFIG_HOME/guix/latest to the search path.
* po/POTFILES.in: Add guix/scripts/pull.scm.

11 years agoui: Factorize `show-what-to-build'.
Ludovic Courtès [Wed, 20 Feb 2013 22:41:24 +0000 (23:41 +0100)]
ui: Factorize `show-what-to-build'.

* guix/scripts/package.scm (guix-package)[show-what-to-build]: Move to..
* guix/ui.scm (show-what-to-build): ... here.  Add a `store'
  parameter'.  Adjust callers.
* guix/scripts/build.scm (guix-build): Use it.  Remove `req' and `req*'
  variables.

11 years agobuild: Adjust guix.texi to Texinfo 5.0.
Ludovic Courtès [Wed, 20 Feb 2013 22:32:15 +0000 (23:32 +0100)]
build: Adjust guix.texi to Texinfo 5.0.

* doc/guix.texi: Change @title and @subtitle syntax to please Texinfo 5.0.

11 years agoui: Add temporary file handling and atomic symlink switch.
Ludovic Courtès [Wed, 20 Feb 2013 22:03:24 +0000 (23:03 +0100)]
ui: Add temporary file handling and atomic symlink switch.

* guix/scripts/download.scm (call-with-temporary-output-file): Move to
  ui.scm.
* guix/scripts/package.scm (switch-symlinks): Likewise.
* guix/ui.scm (call-with-temporary-output-file, switch-symlinks): New
  procedures.

11 years agodownload: Adjust to `http-get*' deprecation.
Ludovic Courtès [Wed, 20 Feb 2013 21:59:35 +0000 (22:59 +0100)]
download: Adjust to `http-get*' deprecation.

* guix/build/download.scm (http-fetch): Adjust to use #:streaming? when
  using Guile 2.0.8+.

11 years agoderivations: Add a search path parameter for module derivations.
Ludovic Courtès [Wed, 20 Feb 2013 20:08:09 +0000 (21:08 +0100)]
derivations: Add a search path parameter for module derivations.

* guix/derivations.scm (imported-modules, compiled-modules): Add a
  `module-path' parameter.  Use it instead of %LOAD-PATH.

11 years agognu: texinfo: Make Perl a propagated input.
Ludovic Courtès [Wed, 20 Feb 2013 20:06:57 +0000 (21:06 +0100)]
gnu: texinfo: Make Perl a propagated input.

* gnu/packages/texinfo.scm (texinfo): Make PERL a propagated input.

11 years agobuild: Add missing -I flag for the daemon.
Ludovic Courtès [Tue, 19 Feb 2013 21:58:56 +0000 (22:58 +0100)]
build: Add missing -I flag for the daemon.

* daemon.am (libstore_a_CPPFLAGS): Add missing -I, for schema.sql.hh.

11 years agodaemon: Add `--listen'.
Ludovic Courtès [Tue, 19 Feb 2013 21:48:13 +0000 (22:48 +0100)]
daemon: Add `--listen'.

* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_LISTEN): New macro.
  (options): Add `--listen'.
  (parse_opt): Handle it.
* doc/guix.texi (Invoking guix-daemon): Mention it.

11 years agoUpdate from upstream Nix.
Ludovic Courtès [Tue, 19 Feb 2013 21:43:07 +0000 (22:43 +0100)]
Update from upstream Nix.

11 years agostore: Add the `%daemon-socket-file' parameter.
Ludovic Courtès [Mon, 18 Feb 2013 20:53:59 +0000 (21:53 +0100)]
store: Add the `%daemon-socket-file' parameter.

* guix/store.scm (%daemon-socket-file): New variable.
  (open-connection): Use it as the default value for FILE.

11 years agoAdd Mark to `AUTHORS'.
Ludovic Courtès [Sun, 17 Feb 2013 21:19:11 +0000 (22:19 +0100)]
Add Mark to `AUTHORS'.