~ruther/guix-local

ref: b200ecdeb2ba97bcaeec04a4da5e31736f00a5ea guix-local/guix d---------
026f6a42 — Ludovic Courtès 8 years ago
gnu-maintenance: Relax recursion cutoff in 'latest-ftp-release'.

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

* guix/gnu-maintenance.scm (latest-ftp-release)[contains-digit?]: Remove.
Relax test as to whether to recurse into subdirectories.
b5bfa477 — Ludovic Courtès 8 years ago
ui: 'known-variable-definition' protects against module cycles.

Fixes <https://bugs.gnu.org/29358>.
Reported by Marius Bakke <mbakke@fastmail.com>.

* guix/ui.scm (known-variable-definition): Add 'visited' set to guard
against cycles on 2.0.
cd295fbe — Ludovic Courtès 8 years ago
Revert "Add (guix self) and use it when pulling."

This reverts commit 5f93d97005897c2d859f0be1bdff34c88467ec61.

'guix pull' would fail because (guix self) needs 'scheme-files'
from (guix discovery), which was not exported until now.
5f93d970 — Ludovic Courtès 8 years ago
Add (guix self) and use it when pulling.

This mitigates <https://bugs.gnu.org/27284>.

* guix/self.scm: New file.
* Makefile.am (MODULES): Add it.
* build-aux/build-self.scm (libgcrypt, zlib, gzip, bzip2, xz)
(false-if-wrong-guile, package-for-current-guile, guile-json)
(guile-ssh, guile-git, guile-bytestructures): Remove.
(build): Rewrite to simply delegate to 'compiled-guix'.
* gnu/packages.scm (%distro-root-directory): Rewrite to try different
directories.
* guix/discovery.scm (guix): Export 'scheme-files'.
* guix/scripts/pull.scm (build-and-install): Split into...
(install-latest): ... this.  New procedure.  And...
(build-and-install): ... this, which now takes a monadic value argument.
(indirect-root-added): Remove.
(guix-pull): Call 'add-indirect-root'.  Call 'build-from-source' and
pass the result to 'build-and-install'.
fe9b3ec3 — Ludovic Courtès 8 years ago
git: Do not add '.git' to the store.

This makes 'latest-repository-commit' significantly more efficient and
reduces disk usage in the store.

* guix/git.scm (copy-to-store)[dot-git?]: New procedure.
Pass it as the #:select? argument to 'add-to-store'.
a6591381 — Ludovic Courtès 8 years ago
pull: Trim import list.

* guix/scripts/pull.scm: Remove useless imports.
de98b302 — Ludovic Courtès 8 years ago
gexp: 'directory-union' has a #:quiet? parameter.

* guix/gexp.scm (directory-union): Add #:quiet? and honor it.
59523429 — Ludovic Courtès 8 years ago
union: Parametrize the symlink procedure .

* guix/gexp.scm (directory-union): Add #:hard-links and honor it.
* guix/build/union.scm (union-build): Add #:symlink parameter.
a5792dec — Ludovic Courtès 8 years ago
compile: Put an upper bound on the number of workers.

* guix/build/compile.scm (compile-files): Don't use more than 8 workers.
bd7e136d — Ludovic Courtès 8 years ago
Add semicolon in commands that set GUIX_PROFILE.

Fixes <https://bugs.gnu.org/28223>.
Reported by Rosebud Uplink <Uplink.Introversion@outlook.com>.

* doc/guix.texi (Binary Installation): Add missing semicolon after
'GUIX_PROFILE=' line.
(Invoking guix package): Likewise.
* gnu/system.scm (operating-system-etc-service)[profile]: Likewise.
* guix/build/profiles.scm (build-etc/profile): Likewise.
85f4f7b7 — Ludovic Courtès 8 years ago
zlib: Fix race condition when closing gzip ports.

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

* guix/zlib.scm (close-procedure): Remove.
(make-gzip-input-port): Do (dup (fileno port)) to get a file descriptor
for 'gzdopen'.  Close PORT before returning.  Use 'gzclose' as the
'close' procedure of the returned port.
(make-gzip-output-port): Likewise.
52d174d6 — Ludovic Courtès 8 years ago
ssh: Use (guix i18n).

* guix/ssh.scm: Use (guix i18n) instead of (guix ui).
965ba54b — Julien Lepiller 8 years ago
licenses: Add cddl1.1.

* guix/licenses.scm (cddl1.1): New variable.
82af2c2f — Ricardo Wurmus 8 years ago
build-system: texlive: Only make a union of directories.

* guix/build/texlive-build-system.scm (configure): Filter the input
directories to ensure that source tarballs are excluded.
d8e25711 — Leo Famulari 8 years ago
build-system/go: Don't let Go executables refer to the Go compiler.

* guix/build/go-build-system.scm (remove-store-reference, remove-go-references):
New procedures.
(%standard-phases): Add 'remove-go-references' phase.
* guix/build-system/go.scm (go-build): Add allow-go-reference? key.
d5ce7bcf — Ludovic Courtès 8 years ago
workers: Display backtrace in pre-unwind handler.

* guix/workers.scm (worker-thunk): Add (const #f) as the 'catch'
handler, and move previous handler as pre-unwind handler.  Protect
against 'make-stack' returning #f.
232b3d31 — Ludovic Courtès 8 years ago
workers: 'pool-idle?' returns true only if the workers are idle.

Fixes <https://bugs.gnu.org/28779>.
Reported by Eric Bavier <bavier@cray.com>.

* guix/workers.scm (<pool>)[busy]: New field.
(worker-thunk): Add #:idle and #:busy and use them.
(make-pool): Pass #:busy and #:idle to 'worker-thunk'.  Pass a 'busy'
value to '%make-pool'.
* guix/workers.scm (pool-idle?): Check whether 'pool-busy' returns zero
and adjust docstring.
304a53f6 — Ludovic Courtès 8 years ago
ui: Add source file name to the package search metrics.

* guix/ui.scm (%package-metrics): Include 'package-location'.  Increase
score of the other fields.
7482b981 — Ludovic Courtès 8 years ago
cve: Use 'http-fetch/cached' instead of having custom caching.

That way CVE fetching benefits from 'If-Modified-Since' handling.

* guix/http-client.scm (http-fetch/cached): Add #:write-cache and
 #:cache-miss parameters and honor them.
* guix/cve.scm (%current-year-ttl, %past-year-ttl): Reduce.
(call-with-cve-port): Remove.
(write-cache): New procedure.
(fetch-vulnerabilities): Rewrite in terms of 'http-fetch/cached'.
866f37fb — Ludovic Courtès 8 years ago
download: Improve efficiency of 'write-request' over TLS.

This is another instance of <https://bugs.gnu.org/22966>.
The Microsoft-IIS/7.5 server at static.nvd.nist.gov would sometimes hang
when receiving our requests byte by byte.

* guix/build/download.scm (tls-wrap) [!guile-2.0]: Add 'setvbuf' call.
Next