jackhill/guix/guix.git
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'.

11 years agobuild: Build guix/scripts/download.go after guix/build/download.go.
Ludovic Courtès [Sun, 17 Feb 2013 21:18:16 +0000 (22:18 +0100)]
build: Build guix/scripts/download.go after guix/build/download.go.

* Makefile.am (guix/scripts/download.go): Add dependency on
  `guix/build/download.go'.
  Reported by Nikita Karetnikov <nikita@karetnikov.org>.

11 years agoscripts: Remove hyphen in the command name shown by `--version'.
Ludovic Courtès [Sun, 17 Feb 2013 15:25:30 +0000 (16:25 +0100)]
scripts: Remove hyphen in the command name shown by `--version'.

* guix/scripts/build.scm (%options): Remove hyphen from the name passed
  to `show-version-and-exit'.
* guix/scripts/download.scm (%options): Likewise.
* guix/scripts/gc.scm (%options): Likewise.
* guix/scripts/import.scm (%options): Likewise.
* guix/scripts/package.scm (%options): Likewise.

11 years agognu: guile-reader: Rename packages to avoid version number confusion.
Mark H Weaver [Sun, 17 Feb 2013 18:25:06 +0000 (13:25 -0500)]
gnu: guile-reader: Rename packages to avoid version number confusion.

* gnu/packages/guile.scm (guile-reader): Change the character preceding the
  guile version number from '-' to '_' so that it will not be misinterpreted
  as the package version number.

11 years agoUpdate `TODO'.
Mark H Weaver [Sun, 17 Feb 2013 18:23:45 +0000 (13:23 -0500)]
Update `TODO'.

11 years agoscripts: Remove initialization now redundant with `initialize-guix'.
Ludovic Courtès [Sun, 17 Feb 2013 14:38:02 +0000 (15:38 +0100)]
scripts: Remove initialization now redundant with `initialize-guix'.

* guix/scripts/build.scm (guix-build): Remove calls to `install-locale',
  `textdomain', etc., now redundant with `initialize-guix'.
* guix/scripts/download.scm (guix-download): Likewise.
* guix/scripts/import.scm (guix-import): Likewise.
* guix/scripts/package.scm (guix-package): Likewise.
* guix/ui.scm: Remove export of `install-locale' and `initialize-guix'.
  (initialize-guix): Add docstring.

11 years agognu: texinfo: Update to 5.0.
Ludovic Courtès [Sun, 17 Feb 2013 14:01:52 +0000 (15:01 +0100)]
gnu: texinfo: Update to 5.0.

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

11 years agoReplace individual scripts with master 'guix' script.
Mark H Weaver [Thu, 14 Feb 2013 09:15:25 +0000 (04:15 -0500)]
Replace individual scripts with master 'guix' script.

* scripts/guix.in: New script.

* Makefile.am (bin_SCRIPTS): Add 'scripts/guix'.  Remove 'guix-build',
  'guix-download', 'guix-import', 'guix-package', and 'guix-gc'.

  (MODULES): Add 'guix/scripts/build.scm', 'guix/scripts/download.scm',
  'guix/scripts/import.scm', 'guix/scripts/package.scm', and
  'guix/scripts/gc.scm'.

* configure.ac (AC_CONFIG_FILES): Add 'scripts/guix'.  Remove 'guix-build',
  'guix-download', 'guix-import', 'guix-package', and 'guix-gc'.

* guix-build.in, guix-download.in, guix-gc.in, guix-import.in,
  guix-package.in: Remove shell script boilerplate.  Move to guix-COMMAND.in
  to guix/scripts/COMMAND.scm.  Rename module from (guix-COMMAND) to
  (guix scripts COMMAND).  Change "guix-COMMAND" to "guix COMMAND" in
  usage help string.

* pre-inst-env.in: Add "@abs_top_builddir@/scripts" to the front of $PATH.
  Export $GUIX_UNINSTALLED.

* tests/guix-build.sh, tests/guix-daemon.sh, tests/guix-download.sh,
  tests/guix-gc.sh, tests/guix-package.sh: Use "guix COMMAND" instead of
  "guix-COMMAND".

* doc/guix.texi: Replace all occurrences of "guix-COMMAND" with
  "guix COMMAND".

* po/POTFILES.in: Update.

11 years agoAdd (gnu system vm).
Ludovic Courtès [Sat, 16 Feb 2013 02:28:26 +0000 (03:28 +0100)]
Add (gnu system vm).

* gnu/system/vm.scm: New file.
* Makefile.am (MODULES): Add it.

11 years agognu: Add support for Guile in Linux initrd.
Ludovic Courtès [Sat, 16 Feb 2013 02:25:59 +0000 (03:25 +0100)]
gnu: Add support for Guile in Linux initrd.

* gnu/packages/linux-initrd.scm: New file.

11 years agognu: qemu-kvm: Add patch to have multiple SMB shares.
Ludovic Courtès [Sat, 16 Feb 2013 01:09:10 +0000 (02:09 +0100)]
gnu: qemu-kvm: Add patch to have multiple SMB shares.

* gnu/packages/qemu.scm (qemu-kvm/smb-shares): New variable.
* gnu/packages/patches/qemu-multiple-smb-shares.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.

11 years agopackages: Add `package-output'.
Ludovic Courtès [Sat, 16 Feb 2013 00:37:26 +0000 (01:37 +0100)]
packages: Add `package-output'.

* guix/packages.scm (package-output): New procedure.
* tests/packages.scm ("package-output"): New test.

11 years agognu: guile-static: Change `name' field.
Ludovic Courtès [Fri, 15 Feb 2013 23:30:25 +0000 (00:30 +0100)]
gnu: guile-static: Change `name' field.

* gnu/packages/make-bootstrap.scm (%guile-static): Add `name' field with
  `-static' suffix.

11 years agognu: guile-static: Add bindings for `reboot'.
Ludovic Courtès [Fri, 15 Feb 2013 23:29:43 +0000 (00:29 +0100)]
gnu: guile-static: Add bindings for `reboot'.

* gnu/packages/patches/guile-linux-syscalls.patch: Add `scm_reboot'.

11 years agognu: qemu: Add dependency on Samba.
Ludovic Courtès [Fri, 15 Feb 2013 21:36:05 +0000 (22:36 +0100)]
gnu: qemu: Add dependency on Samba.

* gnu/packages/qemu.scm (qemu-kvm): Add dependency on Samba; pass
  `--smbd' to ./configure.

11 years agognu: samba: Augment the RUNPATH of executables to point to $out/lib.
Ludovic Courtès [Fri, 15 Feb 2013 21:04:51 +0000 (22:04 +0100)]
gnu: samba: Augment the RUNPATH of executables to point to $out/lib.

* gnu/packages/samba.scm (samba): Add `add-lib-to-runpath' phase, and
  PatchELF as an input.

11 years agognu: Add GNU Parted.
Nikita Karetnikov [Fri, 15 Feb 2013 10:46:29 +0000 (10:46 +0000)]
gnu: Add GNU Parted.

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

11 years agognu: guile-static: Add bindings for low-level Linux syscalls.
Ludovic Courtès [Thu, 14 Feb 2013 23:29:28 +0000 (00:29 +0100)]
gnu: guile-static: Add bindings for low-level Linux syscalls.

* gnu/packages/make-bootstrap.scm (%guile-static): Add
  `guile-linux-syscalls.patch' as an input, and use it.
* gnu/packages/patches/guile-linux-syscalls.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.

11 years agognu: linux-libre: Choose a config without debugging features.
Ludovic Courtès [Thu, 14 Feb 2013 23:26:52 +0000 (00:26 +0100)]
gnu: linux-libre: Choose a config without debugging features.

* gnu/packages/linux.scm (linux-libre): Choose "defconfig" instead of
  "allmodconfig" since the latter enables all debugging features.  Add
  `CONFIG_CIFS=m'.

11 years agognu: Add vim.
Cyril Roelandt [Wed, 13 Feb 2013 22:20:11 +0000 (23:20 +0100)]
gnu: Add vim.

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

11 years agoBuild newest versions unless specified, and implement upgrades.
Mark H Weaver [Tue, 12 Feb 2013 06:24:21 +0000 (01:24 -0500)]
Build newest versions unless specified, and implement upgrades.

* gnu/packages.scm (find-newest-available-packages):
  New exported procedure.

* guix-build.in (newest-available-packages, find-best-packages-by-name):
  New procedures.
  (find-package): Use find-best-packages-by-name, to guarantee that
  if a version number is not specified, only the newest versions will
  be considered.

* guix-package.in (%options): Add --upgrade/-u option.
  (newest-available-packages, find-best-packages-by-name, upgradeable?):
  New procedures.
  (find-package): Use find-best-packages-by-name, to guarantee that
  if a version number is not specified, only the newest versions will
  be considered.
  (process-actions): Implement upgrade option.

* doc/guix.texi (Invoking guix-package): In the description of --install,
  mention that if no version number is specified, the newest available
  version will be selected.

11 years agoInhibit duplicates in fold-packages.
Mark H Weaver [Wed, 13 Feb 2013 01:29:30 +0000 (20:29 -0500)]
Inhibit duplicates in fold-packages.

* gnu/packages.scm (fold2): New procedure.
  (fold-packages): Rework to suppress duplicates.

11 years agobuild-system/gnu: Make the strip behavior of `static-package' configurable.
Ludovic Courtès [Wed, 13 Feb 2013 23:14:29 +0000 (00:14 +0100)]
build-system/gnu: Make the strip behavior of `static-package' configurable.

* guix/build-system/gnu.scm (static-package): Add #:strip-all? keyword
  parameter.

11 years agognu: guile-static: Use libgc build with `USE_LIBC_PRIVATES'.
Ludovic Courtès [Wed, 13 Feb 2013 20:42:34 +0000 (21:42 +0100)]
gnu: guile-static: Use libgc build with `USE_LIBC_PRIVATES'.

* gnu/packages/make-bootstrap.scm (%guile-static): Use libgc build with
  CPPFLAGS=-DUSE_LIBC_PRIVATES.
* gnu/packages/bdw-gc.scm (libgc): Add TODO to always do it.

11 years agognu: Add missing patch for mcron.
Ludovic Courtès [Wed, 13 Feb 2013 15:09:29 +0000 (16:09 +0100)]
gnu: Add missing patch for mcron.

* gnu/packages/patches/mcron-install.patch: New file.
* Makefile.am (dist_patch_DATA): Add it.

11 years agognu: Add GNU Wdiff.
Nikita Karetnikov [Wed, 13 Feb 2013 02:18:46 +0000 (02:18 +0000)]
gnu: Add GNU Wdiff.

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

11 years agoAdd version-compare and version>? to utils.scm.
Mark H Weaver [Tue, 12 Feb 2013 17:02:15 +0000 (12:02 -0500)]
Add version-compare and version>? to utils.scm.

* guix/utils.scm (version-compare, version>?): New exported procedures,
  based on version-string>?, which was formerly in gnu-maintenance.scm.

* guix/gnu-maintenance.scm (version-string>?): Removed procedure.
  (latest-release): Use 'version>?' instead of 'version-string>?'.

11 years agognu: Add signing-party.
Andreas Enge [Tue, 12 Feb 2013 23:41:05 +0000 (00:41 +0100)]
gnu: Add signing-party.

* gnu/packages/gnupg.scm (signing-party): New variable.

11 years agoAdd pre-inst-env and test-env to nodist_noinst_SCRIPTS in Makefile.am.
Mark H Weaver [Tue, 12 Feb 2013 00:23:20 +0000 (19:23 -0500)]
Add pre-inst-env and test-env to nodist_noinst_SCRIPTS in Makefile.am.

* Makefile.am: Add nodist_noinst_SCRIPTS = pre-inst-env test-env.

11 years agognu: Add Samba and iniparser.
Ludovic Courtès [Tue, 12 Feb 2013 18:35:54 +0000 (19:35 +0100)]
gnu: Add Samba and iniparser.

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

11 years agognu: bigloo: Install Emacs modes.
Ludovic Courtès [Tue, 12 Feb 2013 11:16:45 +0000 (12:16 +0100)]
gnu: bigloo: Install Emacs modes.

* gnu/packages/scheme.scm (bigloo): Add `install-emacs-modes' phase.

11 years agognu: gnupg: Add optional inputs curl and openldap.
Andreas Enge [Tue, 12 Feb 2013 14:15:18 +0000 (15:15 +0100)]
gnu: gnupg: Add optional inputs curl and openldap.

* gnu/packages/gnupg.scm (gnupg): Add inputs.

11 years agognu: gnupg: Patch out /bin/sh in generated file.
Andreas Enge [Mon, 11 Feb 2013 22:17:07 +0000 (23:17 +0100)]
gnu: gnupg: Patch out /bin/sh in generated file.

* gnu/packages/gnupg.scm (gnupg): Modify configure phase.

11 years agognu: Rename module 'freetype' to the more general 'fontutils'.
Andreas Enge [Tue, 12 Feb 2013 12:19:26 +0000 (13:19 +0100)]
gnu: Rename module 'freetype' to the more general 'fontutils'.

* gnu/packages/freetype.scm: Rename file to...
* gnu/packages/fontutils.scm: ...this.
* Makefile.am (MODULES): Rename module.
* gnu/packages/{ghostscript,grub,pdf,texlive}.scm: Rename dependency.

11 years agodoc: Add the commit policy to HACKING.
Ludovic Courtès [Mon, 11 Feb 2013 23:14:20 +0000 (00:14 +0100)]
doc: Add the commit policy to HACKING.

* HACKING (Commit Access): New section.

11 years agobuild: Export `NIX_ROOT_FINDER' and `NIX_SETUID_HELPER' from `pre-inst-env'.
Ludovic Courtès [Mon, 11 Feb 2013 22:26:00 +0000 (23:26 +0100)]
build: Export `NIX_ROOT_FINDER' and `NIX_SETUID_HELPER' from `pre-inst-env'.

* pre-inst-env.in (NIX_ROOT_FINDER, NIX_SETUID_HELPER): New variables.
  Reported by Cyril Roelandt <tipecaml@gmail.com>.