<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/guix/scripts, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/'/>
<updated>2019-06-24T15:50:08Z</updated>
<entry>
<title>publish: Work around Guile 2.2.5 (web server) bug.</title>
<updated>2019-06-24T15:50:08Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-24T14:39:25Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=bb11825f35142dbacf7aeb334ee61173dc49b572'/>
<id>urn:sha1:bb11825f35142dbacf7aeb334ee61173dc49b572</id>
<content type='text'>
* guix/scripts/publish.scm: Replace (@@ (web http) read-header-line) on
Guile 2.2.5.
</content>
</entry>
<entry>
<title>guix build: '--log-file' no longer returns several log files.</title>
<updated>2019-06-23T17:53:03Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-23T17:28:52Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=92359aed40fe76dcfb13ddf521fa8ac4c2735611'/>
<id>urn:sha1:92359aed40fe76dcfb13ddf521fa8ac4c2735611</id>
<content type='text'>
Fixes a regression introduced in
9353b199c18caca4a429f20423e1a5e7bc26a8da whereby something like:

  guix build --log-file $(guix build -d guile)

would return two log files.  This led to a failure of 'tests/guix-build.sh'.

* guix/scripts/build.scm (guix-build): Filter out derivation file names
from ITEMS.
</content>
</entry>
<entry>
<title>guix build: Use 'warning' for warnings.</title>
<updated>2019-06-23T17:53:03Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-23T17:18:32Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=0f2d9c3290c9094e036d5a160969b1690a576d14'/>
<id>urn:sha1:0f2d9c3290c9094e036d5a160969b1690a576d14</id>
<content type='text'>
* guix/scripts/build.scm (options-&gt;derivations): Use 'warning' instead
of 'format'.
</content>
</entry>
<entry>
<title>guix build: '--log-file' looks for build logs of equivalent derivations.</title>
<updated>2019-06-18T14:25:09Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-18T07:50:38Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=9353b199c18caca4a429f20423e1a5e7bc26a8da'/>
<id>urn:sha1:9353b199c18caca4a429f20423e1a5e7bc26a8da</id>
<content type='text'>
Previously, '--log-file' would look for log files only for the current
derivation, and thus wouldn't find log files of equivalent derivations
that produce the same output.

* guix/scripts/build.scm (guix-build) &lt;log-file?&gt;: Replace
'derivation-file-name' by 'derivation-&gt;output-path'.
</content>
</entry>
<entry>
<title>pack: Fix 'guix pack -f docker'.</title>
<updated>2019-06-10T21:16:47Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-10T21:16:47Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=c5f66d29311031d59424dd470ae6c3a315a79712'/>
<id>urn:sha1:c5f66d29311031d59424dd470ae6c3a315a79712</id>
<content type='text'>
Regression introduced in a0f352b30f4869a7af7017b8a5011ac7602dd115.

* guix/scripts/pack.scm (docker-image): Check whether ENTRY-POINT is
true before returning (string-append #$profile ...).
</content>
</entry>
<entry>
<title>pack: Add '--entry-point'.</title>
<updated>2019-06-07T07:57:19Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludovic.courtes@inria.fr</email>
</author>
<published>2019-06-04T16:43:23Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=a0f352b30f4869a7af7017b8a5011ac7602dd115'/>
<id>urn:sha1:a0f352b30f4869a7af7017b8a5011ac7602dd115</id>
<content type='text'>
* guix/scripts/pack.scm (self-contained-tarball): Add #:entry-point and
warn when it's true.
(squashfs-image): Add #:entry-point and honor it.
(docker-image): Add #:entry-point and honor it.
(%options, show-help): Add '--entry-point'.
(guix-pack): Honor '--entry-point' and pass #:entry-point to BUILD-IMAGE.
* gnu/tests/docker.scm (run-docker-test): Test 'docker run' with the
default entry point.
(build-tarball&amp;run-docker-test): Pass #:entry-point to 'docker-image'.
* doc/guix.texi (Invoking guix pack): Document it.
* gnu/tests/singularity.scm (run-singularity-test)["singularity run"]:
New test.
(build-tarball&amp;run-singularity-test): Pass #:entry-point to
'squashfs-image'.
</content>
</entry>
<entry>
<title>syscalls: Add 'with-file-lock' macro.</title>
<updated>2019-06-05T21:10:36Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-03T14:23:01Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=b7178c22bf642919345095aff9e34e02c00d5762'/>
<id>urn:sha1:b7178c22bf642919345095aff9e34e02c00d5762</id>
<content type='text'>
* guix/scripts/offload.scm (lock-file, unlock-file, with-file-lock):
Move to...
* guix/build/syscalls.scm: ... here.
</content>
</entry>
<entry>
<title>guix package: Do not list environment variables that need to be set.</title>
<updated>2019-06-05T21:10:36Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-05T15:33:37Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=bcb7c900cc9d01603fb8fa47bc52caa8e7ebd480'/>
<id>urn:sha1:bcb7c900cc9d01603fb8fa47bc52caa8e7ebd480</id>
<content type='text'>
Fixes &lt;https://bugs.gnu.org/35942&gt;.

* guix/scripts/package.scm (display-search-paths): Rename to...
(display-search-path-hint): ... this.  Adjust callers.
Remove #:kind parameter.  Replace the list of environment variables with
an invitation to source $GUIX_PROFILE/etc/profile or run 'guix package
--search-paths'.
</content>
</entry>
<entry>
<title>substitute: Select the best compression methods.</title>
<updated>2019-06-02T20:01:57Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-05-31T14:26:08Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=b90ae065b5a5fab4ed475bf2faa3a84476389a02'/>
<id>urn:sha1:b90ae065b5a5fab4ed475bf2faa3a84476389a02</id>
<content type='text'>
When a server publishes several URLs with different compression methods,
'guix substitute' can now choose the best one among the compression
methods that it supports.

* guix/scripts/substitute.scm (&lt;narinfo&gt;)[uri]: Replace with...
[uris]: ... this.
[compression]: Replace with...
[compressions]: ... this.
[file-size]: Replace with...
[file-sizes]: ... this.
[file-hash]: Replace with...
[file-hashes]: ... this.
(narinfo-maker): Adjust accordingly.  Ensure 'file-sizes' and
'file-hashes' have the right length.
(assert-valid-signature, valid-narinfo?): Use the first element of
'narinfo-uris' in error messages.
(read-narinfo): Expect "URL", "Compression", "FileSize", and "FileHash"
to occur multiple times.
(display-narinfo-data): Call 'select-uri' to determine the file size.
(%compression-methods): New variable.
(supported-compression?, compresses-better?, select-uri): New
procedures.
(process-substitution): Call 'select-uri' to select the URI and
compression.
* guix/scripts/weather.scm (report-server-coverage): Account for all the
values returned by 'narinfo-file-sizes'.
* tests/substitute.scm ("substitute, narinfo with several URLs"): New
test.
</content>
</entry>
<entry>
<title>publish: '--compression' can be repeated.</title>
<updated>2019-06-02T20:01:57Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-05-30T16:36:37Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=b8fa86adfc01205f1d942af8cb57515eb3726c52'/>
<id>urn:sha1:b8fa86adfc01205f1d942af8cb57515eb3726c52</id>
<content type='text'>
This allows 'guix publish' to compress and advertise multiple
compression methods from which users can choose.

* guix/scripts/publish.scm (actual-compression): Rename to...
(actual-compressions): ... this.  Expect REQUESTED to be a list, and
always return a list.
(%default-options): Remove 'compression.
(store-item-&gt;recutils): New procedure.
(narinfo-string): Change #:compression to #:compressions (plural).
Adjust accordingly.
(render-narinfo, render-narinfo/cached): Likewise.
(bake-narinfo+nar): Change #:compression to #:compressions.
[compressed-nar-size]: New procedure.
Call 'compress-nar' for each item returned by 'actual-compressions'.
Create a narinfo for each compression.
(effective-compression): New procedure.
(make-request-handler): Change #:compression to #:compressions.
Use 'effective-compression' to determine the applicable compression.
(guix-publish): Adjust handling of '--compression'.
Print a message for each compression that is enabled.
* tests/publish.scm ("/*.narinfo"): Adjust to new narinfo field
ordering.
("/*.narinfo with properly encoded '+' sign"): Likewise.
("/*.narinfo with lzip + gzip"): New test.
("with cache, lzip + gzip"): New test.
* doc/guix.texi (Invoking guix publish): Document it.
</content>
</entry>
</feed>
