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.
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.
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).
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 [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 [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 [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: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.
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.
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 [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.
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'.
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.
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.
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.
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).
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.
Ludovic Courtès [Wed, 27 Mar 2013 14:47:48 +0000 (15:47 +0100)]
gnu: Add libelf.
* gnu/packages/gcc.scm (libelf): New variable.
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.
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.
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.
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.
Ludovic Courtès [Tue, 26 Mar 2013 23:11:57 +0000 (00:11 +0100)]
Update `TODO'.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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>.
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/.
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'.
Andreas Enge [Sat, 16 Mar 2013 21:36:13 +0000 (22:36 +0100)]
gnu: Add openconnect.
* gnu/packages/vpn.scm (openconnect): New variable.
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.
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.
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>.
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.
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.
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'.
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.
Ludovic Courtès [Wed, 6 Mar 2013 23:36:14 +0000 (00:36 +0100)]
Revert "utils: Add 'wrap-program'."
This reverts commit
02065130de33e990969fe9b7cc19b9b1c24f3ff7.
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.
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.
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'.
Nikita Karetnikov [Mon, 4 Mar 2013 01:08:24 +0000 (01:08 +0000)]
licenses: Add 'x11-style'.
* guix/licenses.scm (x11-style): New variable.
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.
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.
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.