~ruther/guix-local

ref: 1cd5f1776da210b1d2dc0594de3597881d0e0231 guix-local/guix d---------
cc294bce — Mark H Weaver 8 years ago
Merge branch 'master' into core-updates
df851f5a — Leo Famulari 8 years ago
download: Add the canonical GnuPG download site.

* guix/download.scm (%mirrors)<gnupg>: Add https://gnupg.org.
32b7506c — Ricardo Wurmus 8 years ago
profiles: Only check file contents if the file exists.

* guix/profiles.scm (fonts-dir-file): Check that files exist before using
"empty-file?".
f167595b — Mark H Weaver 8 years ago
Merge branch 'master' into core-updates
88c8f247 — Ricardo Wurmus 8 years ago
build: Add minify build system.

* guix/build-system/minify.scm: New file.
* guix/build/minify-build-system: New file.
* Makefile.am (MODULES): Add new files.
* doc/guix.texi (Build Systems): Document minify-build-system.
c53fc481 — Ludovic Courtès 8 years ago
pull: Honor '--no-grafts'.

* guix/scripts/pull.scm (guix-pull): Parameterize %GRAFT? as a function
of OPTS.
3085b502 — Ludovic Courtès 8 years ago
pull: Use the commit ID as the version string.

* guix/scripts/pull.scm (build-from-source): Add #:commit parameter.
Pass it to BUILD.
(build-and-install): Add #:commit and pass it to 'build-from-source'.
(guix-pull): Pass #:commit to 'build-and-install'.
59a16275 — Ludovic Courtès 8 years ago
pull: Fetch source code from Git.

* guix/scripts/pull.scm (%snapshot-url, with-environment-variable)
(with-PATH): Remove.
(ensure-guile-git!): New procedure.
(%repository-url): New variable.
(%default-options): Add 'repository-url' and 'ref'.
(show-help, %options): Add '--commit' and '--url'.
(temporary-directory, first-directory, interned-then-deleted)
(unpack): Remove.
(build-from-source): Rename 'tarball' to 'source'.  Remove call to
'unpack'.
(build-and-install): Rename 'tarball' to 'source'.
(honor-lets-encrypt-certificates!, report-git-error): New procedures.
(with-git-error-handling): New macro.
(guix-pull)[fetch-tarball]: Remove.
Wrap body in 'with-git-error-handling'.  Rewrite to use
'latest-repository-commit'.
* build-aux/build-self.scm (build): Print an error message and exit when
GUILE-GIT is #f.
* doc/guix.texi (Invoking guix pull): Mention Git.  Document '--commit'
and '--branch'.
aa9780da — Marius Bakke 8 years ago
Merge branch 'master' into core-updates
5d7e8543 — Roel Janssen 8 years ago
graph: Provide access to the package record in the emit functions.

* guix/graph.scm (export-graph): Pass the node to the emit functions, instead
  of the node's label.
a6066724 — Efraim Flashner 8 years ago
guix package: Allow `guix package -u' to fuction as before.

This is a follow up to 6ddf97f81bb99a73f00e30ad5fc19577872b5b49

* guix/scripts/package.scm (%options) <"-u">: Only check for a flag when
there is an ARG after '-u'.
9081a776 — Ludovic Courtès 8 years ago
lint: formatting: Detect sexp boundaries.

* guix/scripts/lint.scm (report-formatting-issues)[last-line]: Remove.
[sexp-last-line]: New procedure.
Use it.
6ddf97f8 — Ludovic Courtès 8 years ago
guix package: Warn when invoked with '-u -something'.

Fixes <https://bugs.gnu.org/27820>.
Reported by Hartmut Goebel <h.goebel@crazy-compilers.com>.

* guix/scripts/package.scm (%options) <"-u">: Emit a warning when ARG
starts with "-".
228a3982 — Ludovic Courtès 8 years ago
git-download: Remove call to 'canonicalize-path'.

* guix/git-download.scm (git-predicate): Remove call to
'canonicalize-path' since this could lead to discrepancies.  For
instance it broke 'make update-guix-package' since it passes a
non-canonical directory name.
1975c754 — Danny Milosavljevic 8 years ago
bootloader: Use <menu-entry> for the bootloader side.

* gnu/bootloader.scm (menu-entry-device-mount-point): New variable.  Export it.
(<menu-entry>: New field "device".
* gnu/bootloader/grub.scm (grub-confgiuration-file): Handle <menu-entry>
entries.
* gnu/bootloader/extlinux.scm (extlinux-configuration-file): Handle
<menu-entry> entries.
* gnu/system.scm (menu->entry->boot-parameters): Delete variable.
(boot-parameters->menu-entry): New variable.  Export it.
(operating-system-bootcfg): Make OLD-ENTRIES a list of <menu-entry>.
* guix/script/system.scm (reinstall-bootloader): Fix bootcfg usage.
(perform-action): Fix bootcfg usage.
f0e492f0 — Ludovic Courtès 8 years ago
utils: Factorize XDG directory handling.

* guix/ui.scm (config-directory): Remove.
* guix/utils.scm (xdg-directory, config-directory): New procedures.
(cache-directory): Rewrite in terms of 'xdg-directory'.
* guix/scripts/substitute.scm (%narinfo-cache-directory): Pass #:ensure?
 #f to 'cache-directory'.
e0b9e377 — Marius Bakke 8 years ago
Merge branch 'master' into core-updates
952cf67c — Ludovic Courtès 8 years ago
weather: Show "-m" option in help message.

Reported by Alex Kost <alezost@gmail.com>.

* guix/scripts/weather.scm (show-help): Show "-m".
f135b4ae — Christopher Baines 8 years ago
git-download: Speed up 'git-predicate'.

Adjust 'git-predicate' to use data structures that perform better when used
with git repositories with a large number of files.

Previously when matching either a regular file or directory, 'git-predicate'
would search a list with a length equal to the number of files in the
repository. As a search operation happens for roughly every file in the
repository, this meant that the time taken to use 'git-predicate' to traverse
all the files in a repository was roughly exponential with respect to the
number of files in the repository.

Now, for matching regular files or symlinks, 'git-predicate' uses a vhash
using the inode value as the key. This should perform roughly in constant
amount of time, instead of linear with respect to the number of files in the
repository.

For matching directories, 'git-predicate' now uses a tree structure stored in
association lists. To check if a directory is in the tree, the tree is
traversed from the root. The time complexity of this depends on the shape of
the tree, but it should be an improvement on searching through the list of all
files.

* guix/git-download.scm (files->directory-tree, directory-in-tree?): New
procedures.
(git-predicate): Compute DIRECTORY-TREE.  Turn INODES into a vhash.
Adjust body of lambda accordingly.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
84620dd0 — Ludovic Courtès 8 years ago
offload: Fix potential file descriptor and memory leak.

The '%slots' list could grow indefinitely; in practice though,
guix-daemon is likely to restart 'guix offload' often enough.

* guix/scripts/offload.scm (%slots): Remove.
(choose-build-machine): Don't 'set!' %SLOTS.  Return the acquired slot
as a second value.
(process-request): Adjust accordingly.  Release the returned slot after
'transfer-and-offload'.
Next