Ludovic Courtès [Fri, 26 Apr 2013 22:23:45 +0000 (00:23 +0200)]
gnu: gawk: Update to 4.0.2.
* gnu/packages/gawk.scm (gawk): Update to 4.0.2.
Ludovic Courtès [Fri, 26 Apr 2013 22:23:19 +0000 (00:23 +0200)]
gnu: patch: Update to 2.7.1.
* gnu/packages/base.scm (patch): Update to 2.7.1.
Ludovic Courtès [Fri, 26 Apr 2013 20:51:07 +0000 (22:51 +0200)]
gnu: Binutils 2.23.2 and GCC 4.7.3.
* gnu/packages/base.scm (binutils): Update to 2.23.2.
(binutils-2.23, ld-wrapper-2.23): Remove.
(gcc-4.8): Move to...
* gnu/packages/gcc.scm (gcc-4.8): ... here.
(gcc-4.7): Update to 4.7.3. Add dependencies on ISL, CLooG, libelf,
and zlib.
Ludovic Courtès [Fri, 26 Apr 2013 20:48:17 +0000 (22:48 +0200)]
gnu: guile: Default to 2.0.9.
* gnu/packages/guile.scm (guile-2.0/fixed): Switch to `guile-2.0'.
Ludovic Courtès [Fri, 26 Apr 2013 20:13:14 +0000 (22:13 +0200)]
gnu: diffutils: Update to 3.3.
* gnu/packages/base.scm (diffutils): Update to 3.3.
Ludovic Courtès [Fri, 26 Apr 2013 14:43:08 +0000 (16:43 +0200)]
Merge branch 'master' into core-updates
Conflicts:
Makefile.am
gnu/packages/autotools.scm
gnu/packages/guile.scm
gnu/packages/python.scm
gnu/packages/shishi.scm
guix/gnu-maintenance.scm
guix/scripts/build.scm
guix/scripts/gc.scm
guix/scripts/package.scm
guix/scripts/substitute-binary.scm
guix/ui.scm
nix/nix-daemon/guix-daemon.cc
test-env.in
tests/nar.scm
tests/store.scm
Ludovic Courtès [Thu, 25 Apr 2013 21:21:49 +0000 (23:21 +0200)]
gnu: libgcrypt: Update to 1.5.2.
* gnu/packages/gnupg.scm (libgcrypt): Update to 1.5.2.
Ludovic Courtès [Thu, 25 Apr 2013 21:19:52 +0000 (23:19 +0200)]
gnu: dejagnu: Update to 1.5.1.
* gnu/packages/dejagnu.scm (dejagnu): Update to 1.5.1.
Ludovic Courtès [Thu, 25 Apr 2013 21:18:20 +0000 (23:18 +0200)]
gnu: nano: Update to 2.3.2.
* gnu/packages/nano.scm (nano): Update to 2.3.2.
Ludovic Courtès [Thu, 25 Apr 2013 21:07:59 +0000 (23:07 +0200)]
gnu: ed: Update to 1.8.
* gnu/packages/ed.scm (ed): Update to 1.8.
Ludovic Courtès [Thu, 25 Apr 2013 21:07:24 +0000 (23:07 +0200)]
gnu-maintenance: Add newline in warning messages.
* guix/gnu-maintenance.scm (download-tarball): Add newline in warning
messages.
Ludovic Courtès [Thu, 25 Apr 2013 21:01:05 +0000 (23:01 +0200)]
doc: Add note on installing Guix from Guix.
* README (Installing Guix from Guix): New section.
Suggested by Alex Sassmannshausen <alex.sassmannshausen@gmail.com>.
Ludovic Courtès [Thu, 25 Apr 2013 20:56:25 +0000 (22:56 +0200)]
refresh: Add `--select'.
* guix/scripts/refresh.scm (%options): Add `--select'.
(show-help): Likewise. Augment initial help text.
(guix-refresh)[core-package?]: New procedure.
Use it when selecting packages.
Ludovic Courtès [Thu, 25 Apr 2013 20:06:48 +0000 (22:06 +0200)]
web: Factorize `http-get' hackery.
This should fix `substitute-binary --query' on Guile 2.0.5.
* guix/web.scm: New file.
* Makefile.am (MODULES): Add it.
* po/POTFILES.in: Add it.
* guix/gnu-maintenance.scm (http-fetch): Remove.
(%package-list-url): Turn into a URI.
(official-gnu-packages): Add #:text? #t to `http-fetch' call.
* guix/scripts/substitute-binary.scm (fetch): Remove `http' case, and
use `http-fetch' instead.
Ludovic Courtès [Wed, 24 Apr 2013 22:10:15 +0000 (00:10 +0200)]
gnu: wdiff: Update to 1.2.1.
* gnu/packages/wdiff.scm (wdiff): Update to 1.2.1. Add Texinfo as an input.
Ludovic Courtès [Wed, 24 Apr 2013 22:06:39 +0000 (00:06 +0200)]
gnu: nettle: Update to 2.7.
* gnu/packages/nettle.scm (nettle): Update to 2.7.
Ludovic Courtès [Wed, 24 Apr 2013 22:06:19 +0000 (00:06 +0200)]
gnu: libtasn1: Update to 3.3.
* gnu/packages/gnutls.scm (libtasn1): Update to 3.3.
Ludovic Courtès [Wed, 24 Apr 2013 21:49:05 +0000 (23:49 +0200)]
gnu-maintenance: Optimize `gnu-package?'.
* guix/gnu-maintenance.scm (gnu-package?): Capture a memoizing version
of `gnu-package?'.
Ludovic Courtès [Wed, 24 Apr 2013 21:37:14 +0000 (23:37 +0200)]
gnu-maintenance: Optimize `release-file'.
* guix/gnu-maintenance.scm (tarball-regexp): Remove.
(%tarball-rx): New variable.
(release-file): Adjust to use %TARBALL-RX.
Ludovic Courtès [Wed, 24 Apr 2013 21:17:31 +0000 (23:17 +0200)]
gnu-maintenance: Optimize `latest-release'.
* guix/gnu-maintenance.scm (tarball-regexp, sans-extension,
release-file): New procedures.
(%alpha-tarball-rx): New variable.
(releases): Use them instead of local copies.
(latest-release): Rewrite to not do a recursive search of all
versions and instead jump directly to the latest.
Ludovic Courtès [Wed, 24 Apr 2013 21:48:36 +0000 (23:48 +0200)]
Add `guix refresh' and related auto-update tools.
* guix/gnu-maintenance.scm (ftp-server/directory)[quirks]: Add glib.
(package-update-path, download-tarball, package-update,
update-package-source): New procedures.
* guix/gnupg.scm, guix/scripts/refresh.scm: New files.
* Makefile.am (MODULES): Add them.
* guix/utils.scm (file-extension): New procedure.
Ludovic Courtès [Wed, 24 Apr 2013 12:43:31 +0000 (14:43 +0200)]
packages: Use `read' and source properties for `package-field-location'.
* guix/packages.scm (package-field-location): Rewrite using `read' and
source properties. Change to return #f upon failure.
* tests/packages.scm ("package-field-location"): Check for #f upon failure.
* build-aux/sync-synopses.scm: Adjust accordingly.
Ludovic Courtès [Wed, 24 Apr 2013 12:44:33 +0000 (14:44 +0200)]
utils: Fix column number returned by `source-properties->location'.
* guix/utils.scm (source-properties->location): Use COL, not COL + 1.
Mark H Weaver [Wed, 24 Apr 2013 21:13:21 +0000 (17:13 -0400)]
gnu: hop: Update hash to match hop-2.4.0.tar.gz, which was modified in place.
* gnu/packages/scheme.scm (hop): Update the hash.
Ludovic Courtès [Mon, 22 Apr 2013 21:07:13 +0000 (23:07 +0200)]
packages: Add `package-field-location'.
* guix/packages.scm (package-field-location): New procedure.
* build-aux/sync-synopses.scm: Use it instead of `package-location'.
* tests/packages.scm ("package-field-location"): New test.
Ludovic Courtès [Mon, 22 Apr 2013 11:24:16 +0000 (13:24 +0200)]
ui: Move macro definitions before any use.
* guix/ui.scm (define-diagnostic, warning, report-error, leave): Move
definitions before any use. Reported by Nikita Karetnikov.
(install-locale): Move back close to `initialize-guix'.
Mark H Weaver [Mon, 22 Apr 2013 02:56:01 +0000 (22:56 -0400)]
gnu: xorriso: Update to 1.2.8.
* gnu/packages/cdrom.scm (xorriso): Update to 1.2.8.
Mark H Weaver [Mon, 22 Apr 2013 02:52:35 +0000 (22:52 -0400)]
gnu: smalltalk: Update to 3.2.5.
* gnu/packages/smalltalk.scm (smalltalk): Update to 3.2.5.
Mark H Weaver [Mon, 22 Apr 2013 02:41:17 +0000 (22:41 -0400)]
gnu: groff: Update to 1.22.2.
* gnu/packages/groff.scm (groff): Update to 1.22.2.
Mark H Weaver [Sun, 21 Apr 2013 06:54:56 +0000 (02:54 -0400)]
gnu: gprolog: Update to 1.4.3 and download from GNU mirrors
* gnu/packages/gprolog.scm (gprolog): Update to 1.4.3.
Download from GNU mirrors.
Ludovic Courtès [Sun, 21 Apr 2013 20:40:23 +0000 (22:40 +0200)]
Factorize `download-and-store'.
* guix/download.scm (download-to-store): New procedure.
* guix/scripts/download.scm (fetch-and-store): Remove.
(guix-download): Use `download-to-store' instead.
* guix/ui.scm (call-with-temporary-output-file): Move to...
* guix/utils.scm (call-with-temporary-output-file): ... here.
Nikita Karetnikov [Sun, 21 Apr 2013 17:20:00 +0000 (17:20 +0000)]
Add 'guix hash'.
* guix/scripts/hash.scm: New file.
* Makefile.am (MODULES): Add it.
* po/POTFILES.in: Add it.
* doc/guix.texi (Invoking guix hash): New node.
(Defining Packages): Add a cross-reference to the 'Invoking guix
hash' node.
Ludovic Courtès [Sun, 21 Apr 2013 19:09:49 +0000 (21:09 +0200)]
gnu: intltool: Fix typo.
* gnu/packages/glib.scm (intltool): Fix typo.
Nikita Karetnikov [Sun, 21 Apr 2013 18:41:30 +0000 (18:41 +0000)]
guix download: Add supported formats to '--help'.
* guix/scripts/download.scm (show-help): Add supported formats.
Ludovic Courtès [Sun, 21 Apr 2013 09:53:06 +0000 (11:53 +0200)]
ui: Move definition of `install-locale' after that of the `warning' macro.
* guix/ui.scm (install-locale): Move definition after that of `warning'.
Ludovic Courtès [Sun, 21 Apr 2013 09:18:22 +0000 (11:18 +0200)]
gnu: guile: Update to 2.0.9.
* gnu/packages/guile.scm (guile-2.0): Update to 2.0.9.
(guile-2.0/fixed): Keep at 2.0.7.
Ludovic Courtès [Sun, 21 Apr 2013 09:27:37 +0000 (11:27 +0200)]
gnu: intltool: Propagate gettext.
* gnu/packages/glib.scm (intltool): Propagate gettext.
Nikita Karetnikov [Sun, 21 Apr 2013 08:08:40 +0000 (08:08 +0000)]
ui: Add a 'define-diagnostic' macro.
* guix/ui.scm (define-diagnostic): New macro, which is based on the
previous version of 'warning'.
(warning, leave): Redefine using 'define-diagnostic'.
(report-error): New macro.
(install-locale): Use 'warning' instead of 'format'.
(call-with-error-handling): Adjust 'leave'.
* gnu/packages.scm (package-files): Use 'warning' instead of 'format'.
* guix/gnu-maintenance.scm (http-fetch): Use 'warning' and 'leave'.
* guix/scripts/build.scm (derivations-from-package-expressions, guix-build):
Adjust 'leave'.
* guix/scripts/download.scm (guix-download): Adjust 'leave'.
* guix/scripts/gc.scm (size->number, %options): Adjust 'leave'.
* guix/scripts/package.scm (roll-back, guix-package): Adjust 'leave'.
* po/POTFILES.in: Add 'guix/gnu-maintenance.scm'.
Ludovic Courtès [Sat, 20 Apr 2013 15:47:59 +0000 (17:47 +0200)]
gnu: Add GCC 4.8.0 and Binutils 2.23.2.
* gnu/packages/base.scm (binutils-2.23, ld-wrapper-2.23, gcc-4.8): New
variables.
Ludovic Courtès [Sat, 20 Apr 2013 13:12:24 +0000 (15:12 +0200)]
substitute-binary: Remove expired cache entries once in a while.
* guix/scripts/substitute-binary.scm (%narinfo-expired-cache-entry-removal-delay):
New variable.
(obsolete?): New procedure, formerly in `lookup-narinfo'.
(lookup-narinfo): Adjust accordingly.
(remove-expired-cached-narinfos, maybe-remove-expired-cached-narinfo):
New procedures.
(guix-substitute-binary): Call `maybe-remove-expired-cached-narinfo'.
Ludovic Courtès [Sat, 20 Apr 2013 09:52:50 +0000 (11:52 +0200)]
snix: Prefer synopses from the Womb rather than from Nixpkgs.
* guix/snix.scm (snix-derivation->guix-package): When NAME is
in (official-gnu-packages), use this synopsis instead of the one from
Nixpkgs.
Ludovic Courtès [Sat, 20 Apr 2013 09:44:42 +0000 (11:44 +0200)]
gnu: gdbm, nano: Synchronize synopses.
* gnu/packages/gdbm.scm, gnu/packages/nano.scm: Synchronize synopses
with the Womb.
Ludovic Courtès [Sat, 20 Apr 2013 08:53:31 +0000 (10:53 +0200)]
daemon: Gracefully handle cases where the daemon does not return a status code.
* guix/store.scm (process-stderr): Check for EOF before doing (read-int p).
Andreas Enge [Fri, 19 Apr 2013 17:41:05 +0000 (19:41 +0200)]
gnu: Unify the two intltool packages.
* gnu/packages/xml.scm (intltool): Delete variable.
* gnu/packages/glib.scm (intltool): Update to version 0.50.2.
Ludovic Courtès [Thu, 18 Apr 2013 20:46:34 +0000 (22:46 +0200)]
daemon: Add `--no-substitutes'.
Suggested by Mark H. Weaver.
* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_NO_SUBSTITUTES): New macro.
(options): Add `--no-substitutes'.
(parse_opt): Add `GUIX_OPT_NO_SUBSTITUTES' case.
(main): Leave `settings.substituters' empty when
`settings.useSubstitutes' is false.
Ludovic Courtès [Thu, 18 Apr 2013 20:22:30 +0000 (22:22 +0200)]
daemon: Really enable the substituter by default.
* nix/nix-daemon/guix-daemon.cc (main): Really enable the substituter by
default. Reported by Mark H. Weaver.
Ludovic Courtès [Thu, 18 Apr 2013 20:03:04 +0000 (22:03 +0200)]
doc: Mention the home page.
* doc/guix.texi (Installation): Add a sentence pointing to the home
page. Suggested by Arne Babenhauserheide.
Nikita Karetnikov [Thu, 18 Apr 2013 15:22:40 +0000 (15:22 +0000)]
tests: Use a new synopsis of GNU Hello.
* tests/guix-package.sh: Use a new synopsis of GNU Hello, which was
added in
f50d2669e3e624365221cc81918ba55fdce94107.
Ludovic Courtès [Wed, 17 Apr 2013 20:44:19 +0000 (22:44 +0200)]
doc: Transparent binary deployment is implemented.
* doc/guix.texi (Features): Remove footnote saying that transparent
binary deployment is not implemented.
Ludovic Courtès [Wed, 17 Apr 2013 20:43:14 +0000 (22:43 +0200)]
guix package: Allow the search of the latest release to be interrupted.
* guix/scripts/package.scm (%sigint-prompt): New variable.
(call-with-sigint-handler): New procedure.
(waiting): Use it.
Ludovic Courtès [Wed, 17 Apr 2013 16:09:43 +0000 (18:09 +0200)]
build: Add `sync-synopses.scm'.
* build-aux/sync-synopses.scm: New file.
* Makefile.am (EXTRA_DIST): Add it.
(dist-hook): New target.
Ludovic Courtès [Wed, 17 Apr 2013 16:04:25 +0000 (18:04 +0200)]
gnu: Use synopses from the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/gawk.scm,
gnu/packages/gcc.scm,
packages/gcc.scm, b/gnu/packages/gcc.scm,
4b982 100644
s/gcc.scm,
s/gcc.scm,
@@
%standard-phases)))))
`((gcc-libc . ,(assoc-ref inputs "libc"))))
The GNU Compiler Collection")
GNU Compiler Collection")
n
ompiler Collection includes compiler front ends for C, C++,
tran, OpenMP for C/C++/Fortran, Java, and Ada, as well as
gnu/packages/gdb.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/glib.scm,
gnu/packages/global.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mailutils.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm: Use synopses from the Womb.
Ludovic Courtès [Wed, 17 Apr 2013 16:02:48 +0000 (18:02 +0200)]
ui: Fix format string in `warning'.
* guix/ui.scm (warning)[augmented-format-string]: Add missing ~*.
Ludovic Courtès [Wed, 17 Apr 2013 12:59:19 +0000 (14:59 +0200)]
gnu: Add missing import in (gnu packages cross-base).
* gnu/packages/cross-base.scm: Use (gnu packages gcc).
Reported by Nikita Karetnikov <nikita@karetnikov.org>.
Ludovic Courtès [Tue, 16 Apr 2013 22:06:59 +0000 (00:06 +0200)]
scripts: Report what will be substituted.
* guix/derivations.scm (derivation-input-output-paths): New procedure.
(derivation-prerequisites-to-build): New `use-substitutes?' keyword
argument. Change two return the list of substitutable paths as a
second argument.
* guix/ui.scm (show-what-to-build): Turn `dry-run?' into a keyword
argument. New `use-substitutes?' keyword argument. Use `fold2' and
adjust to use both return values of
`derivation-prerequisites-to-build'. Display what will/would be
downloaded.
* guix/scripts/build.scm (guix-build): Adjust accordingly.
* guix/scripts/package.scm (guix-package): Likewise.
* tests/derivations.scm ("derivation-prerequisites-to-build and
substitutes"): New test.
Cyril Roelandt [Mon, 15 Apr 2013 21:23:27 +0000 (23:23 +0200)]
package: allow users to upgrade the whole system by not providing a regexp.
* guix/scripts/packages.scm (guix-package) [process-actions]: When upgrading,
use "" when REGEXP is #f.
* doc/guix.texi: update the documentation accordingly.
Cyril Roelandt [Mon, 15 Apr 2013 20:02:47 +0000 (22:02 +0200)]
gnu: Python: bump to version 2.7.4.
* gnu/packages/python.scm: bump to version 2.7.4, remove references to
python-fix-dbm.patch.
* Makefile.am: remove references to python-fix-dbm.patch
* gnu/packages/patches/python-fix-dbm.patch: remove it.
Ludovic Courtès [Tue, 16 Apr 2013 12:05:00 +0000 (14:05 +0200)]
build-system/{perl,cmake}: Keep the standard search paths of gnu-build-system.
Reported by Andreas Enge <andreas@enge.fr>.
* guix/build-system/gnu.scm (standard-search-paths): New procedure.
(gnu-build): Use it.
* guix/build-system/perl.scm (perl-build):
Append (standard-search-paths) to the search paths of PERL.
* guix/build-system/cmake.scm (cmake-build):
Append (standard-search-paths) to SEARCH-PATHS.
Ludovic Courtès [Mon, 15 Apr 2013 21:27:04 +0000 (23:27 +0200)]
substitute-binary: Skip servers that use a different store prefix.
* guix/scripts/substitute-binary.scm (fetch-narinfo): Return #f when
CACHE uses a store directory different from (%store-prefix).
Ludovic Courtès [Mon, 15 Apr 2013 21:42:42 +0000 (23:42 +0200)]
substitute-binary: Call `open-cache' only when needed.
* guix/scripts/substitute-binary.scm (lookup-narinfo): Force CACHE when
passing it to `fetch-narinfo'.
(guix-substitute-binary): Delay calls to `open-cache'.
Ludovic Courtès [Mon, 15 Apr 2013 21:42:27 +0000 (23:42 +0200)]
substitute-binary: Add a local cache.
* guix/scripts/substitute-binary.scm (%narinfo-cache-directory,
%narinfo-ttl, %narinfo-negative-ttl): New variables.
(with-atomic-file-output, object->fields, read-narinfo,
write-narinfo, narinfo->string, string->narinfo, lookup-narinfo): New
procedures.
(fetch-narinfo): Adjust to use `read-narinfo'.
(guix-substitute-binary): Ensure the existence of
%NARINFO-CACHE-DIRECTORY. Use `lookup-narinfo' instead of
`fetch-narinfo'.
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.
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.
Ludovic Courtès [Sat, 13 Apr 2013 20:08:09 +0000 (22:08 +0200)]
gnu: emacs: Build the GUI with libXaw.
* gnu/packages/emacs.scm (emacs): Add inputs: libX11, libXaw, libXt,
libtiff, libjpeg, libpng, zlib, libXpm, libxml2, and D-Bus.
Ludovic Courtès [Sat, 13 Apr 2013 20:06:47 +0000 (22:06 +0200)]
gnu: libXaw: Propagate libXt.
* gnu/packages/xorg.scm (libxaw): Propagate libXt.
Ludovic Courtès [Fri, 12 Apr 2013 19:26:41 +0000 (21:26 +0200)]
gnu: Add Ratpoison.
* gnu/packages/ratpoison.scm: New file.
* Makefile.am (MODULES): Add it.
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).
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>.
Ludovic Courtès [Fri, 12 Apr 2013 13:59:03 +0000 (15:59 +0200)]
Update `TODO'.
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?'.
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.
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?'.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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).
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>.
Ludovic Courtès [Fri, 12 Apr 2013 13:59:03 +0000 (15:59 +0200)]
Update `TODO'.
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?'.
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.
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?'.
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.
Ludovic Courtès [Thu, 11 Apr 2013 20:54:52 +0000 (22:54 +0200)]
tests: Adjust `gnu-build' test to search path mechanism.
Fixes a regression introduced in
a18eda2.
Reported by Nikita Karetnikov <nikita@karetnikov.org>.
* tests/builders.scm (%bootstrap-search-paths): New variable.
("gnu-build"): Pass #:search-paths.
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.
Cyril Roelandt [Sun, 31 Mar 2013 22:23:42 +0000 (00:23 +0200)]
gnu: Add dwm.
* gnu/packages/dwm.scm: New file.
* Makefile.am: Add it.
Ludovic Courtès [Tue, 9 Apr 2013 17:01:21 +0000 (19:01 +0200)]
build-system/gnu: Fix search path computation with implicit inputs.
Reported by Andreas Enge <andreas@enge.fr>.
* guix/build-system/gnu.scm (standard-packages): New procedure.
(standard-inputs): Use it instead of resolving things locally.
(gnu-build)[implicit-search-paths]: Map over (standard-packages), not
over STANDARD-INPUTS.
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.
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.
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.