~ruther/guix-local

ref: d0c1a402dbfb8be82a7d91bfc792d9c433ed35ea guix-local/guix d---------
618f0582 — Ludovic Courtès 8 years ago
upstream: Reject bogus archive type guesses.

This would crash 'guix refresh -u' with source URLs ending in
"…/v1.2.3".

* guix/upstream.scm (package-update): Be stricter when determining
ARCHIVE-TYPE.
3caab236 — Ludovic Courtès 8 years ago
guix gc: '--verify=foo' is reported as an error.

Fixes <https://bugs.gnu.org/29761>.
Reported by Martin Castillo <castilma@uni-bremen.de>.

* guix/scripts/gc.scm (argument->verify-options): New procedure.
(%options) ["verify"]: Adjust to use it.
* tests/guix-gc.sh: Add test.
ab25eb7c — Ludovic Courtès 8 years ago
gexp: 'computed-file' has a new #:guile parameter.

* guix/gexp.scm (<computed-file>)[guile]: New field.
(computed-file): Add #:guile.
(computed-file-compiler): Honor 'guile'.
399993f8 — Ludovic Courtès 8 years ago
ui: Non-zero exit for compound '&message' and '&error-location' conditions.

* guix/ui.scm (call-with-error-handling): When both 'message?' and
'error-location?' are true, add call to 'exit'.
16613d23 — Ludovic Courtès 8 years ago
man-db: Autoload (gdbm).

Fixes 'guix pull'.
Reported by ofosos on #guix.

* guix/man-db.scm: Use 'module-autoload!' instead of 'module-use!'.
so that (gdbm) is not loaded until we need it.
58d9e71b — Ludovic Courtès 8 years ago
gnu-maintenance: 'latest-ftp-release' ignores "unstable" directories.

* guix/gnu-maintenance.scm (latest-ftp-release): Filter out "unstable"
directories.
b8396f96 — Ludovic Courtès 8 years ago
profiles: Use (guix man-db) to create the manual database.

Fixes <https://bugs.gnu.org/29654>.
Reported by Ruud van Asseldonk <dev+guix@veniogames.com>.

This also speeds up database creation compared to "man-db
--create" (less than half the time, on a warm cache, for 19k pages.)

* guix/man-db.scm: New file.
* Makefile.am (MODULES_NOT_COMPILED): Add it.
* guix/profiles.scm (manual-database): Rewrite to use (guix man-db).
dafc3daf — Ricardo Wurmus 8 years ago
guix: offload: Add "status" sub-command.

* guix/scripts/offload.scm (check-machine-status): New procedure.
(guix-offload): Call it when the argument is "status".
* doc/guix.texi (Daemon Offload Setup): Document it.
5a72ddf1 — Mathieu Othacehe 8 years ago
scripts: system: Add --expression option.

* guix/scripts/system.scm (show-help): Add expression option.
(%options): Ditto.
(guix-system): Allow commands taking a file as an argument to use an
expression instead.
(process-action): Read operating-system from expression or file.
* doc/guix.texi (Invoking guix system): Introduce the expression option.
3e0a4297 — Ludovic Courtès 8 years ago
progress: Rename 'erase-in-line' to 'erase-current-line'.

Suggested by Danny Milosavljevic <dannym@scratchpost.org>.

* guix/progress.scm (erase-in-line): Rename to...
(erase-current-line): ... this.  Adjust callers.
e2248203 — Mathieu Othacehe 8 years ago
bootloader: Factorize write-file-on-device.

* gnu/bootloader/extlinux.scm (install-extlinux): Factorize bootloader
writing in a new procedure write-file-on-device defined in (gnu build
bootloader).
* gnu/build/bootloader.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add new file.
* gnu/system/vm.scm (qemu-img): Adapt to import and use (gnu build bootloader)
module during derivation building.
* gnu/scripts/system.scm (bootloader-installer-derivation): Ditto.
1bc147d6 — Ricardo Wurmus 8 years ago
guix: ant-build-system: Do not compress jars.

Fixes <https://bugs.gnu.org/29700>.

* guix/build/ant-build-system.scm (strip-jar-timestamps): Do not compress jar
when repacking.
34797d8a — Ludovic Courtès 8 years ago
hydra: Invalidate derivation caches after each architecture evaluation.

This reduces max RSS from 1.3G to 1.0G.

* guix/derivations.scm (invalidate-derivation-caches!): New procedure.
* build-aux/hydra/gnu-system.scm (hydra-jobs): Use it.  Add 'format'
call.
d1f01e48 — Ludovic Courtès 8 years ago
memoization: Add 'invalidate-memoization!.

* guix/memoization.scm (%make-hash-table*): When not profiling, add the
new table to %MEMOIZATION-TABLES.
(invalidate-memoization!): New procedure.
90354e34 — Ludovic Courtès 8 years ago
derivations: Don't memoize 'derivation-hash'.

This has little or no run-time impact and slightly reduces the memory
footprint.

* guix/derivations.scm (derivation-hash): Replace 'mlambda' with
'lambda'.
eb1150c2 — Ludovic Courtès 8 years ago
derivations: Split 'derivation-hash' in two procedures.

* guix/derivations.scm (derivation/masked-inputs): New procedure.
(derivation-hash): Use it instead of the inline code.
22358bdb — Ludovic Courtès 8 years ago
Revert "derivations: 'derivation-hash' assumes inputs are coalesced."

This reverts commit 1d008d9f8c44dfdb808235d451b72f255e72f103.
Reported by Rutger Helling <rhelling@mykolab.com>.
Fixes <https://bugs.gnu.org/29689>.
1d008d9f — Ludovic Courtès 8 years ago
derivations: 'derivation-hash' assumes inputs are coalesced.

* guix/derivations.scm (derivation-hash): Remove
redundant 'coalesce-duplicate-inputs' call.
3d19b7fb — Ludovic Courtès 8 years ago
derivations: Use 'define-immutable-record-type' as appropriate.

This is a followup to dc673fa1131fb5d1e5ca29acb4a693cfb906986f.

* guix/derivations.scm (<derivation-output>, <derivation-input>): Use
'define-immutable-record-type'.
6c80641d — Ludovic Courtès 8 years ago
memoization: Profiling support keeps track of lookups and hits.

* guix/memoization.scm (<cache>): New record type.
(define-lookup-procedure, define-update-procedure): New macros.
(cache-ref, cacheq-ref, cache-set!, cacheq-set!): New procedures.
(cached/mv, cachedq/mv, cached, cachedq): Use them instead of 'hash-ref'
and 'hash-set!'.
(%make-hash-table*): When 'profiled?' returns true, return a <cache>
object.
(define-cache-procedure): Adjust to show cache lookups and hits.
Next