<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/guix/scripts/build.scm, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://www.git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://www.git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/'/>
<updated>2019-06-23T17:53:03Z</updated>
<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://www.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://www.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://www.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>guix build: Gracefully handle invalid '--with-git-url' specs.</title>
<updated>2019-05-14T10:11:05Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-05-14T10:08:03Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=45d41c035ec23d68f67b69255a5ab8f02b42a5ed'/>
<id>urn:sha1:45d41c035ec23d68f67b69255a5ab8f02b42a5ed</id>
<content type='text'>
* guix/scripts/build.scm (transform-package-source-git-url): Add case
for when 'string-split' does not return exactly two elements.
</content>
</entry>
<entry>
<title>build: Change default substitute server to "ci.guix.gnu.org".</title>
<updated>2019-05-01T09:05:47Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-05-01T09:05:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=757e633d57a7b994759d69e41dd759a39f1a34ae'/>
<id>urn:sha1:757e633d57a7b994759d69e41dd759a39f1a34ae</id>
<content type='text'>
* config-daemon.ac: Replace "ci.guix.info" with "ci.guix.gnu.org".
* doc/guix.texi (SUBSTITUTE-SERVER): Likewise.
* etc/substitutes/ci.guix.gnu.org.pub: New file.
* Makefile.am (dist_pkgdata_DATA): Add it.
* guix/scripts/build.scm (%default-log-urls): Update.
* guix/scripts/substitute.scm (%default-substitute-urls): Likewise.
* guix/store.scm (%default-substitute-urls): Likewise.
* guix/self.scm (miscellaneous-files): Add "ci.guix.gnu.org".
</content>
</entry>
<entry>
<title>guix build: Accept multiple '-s' options.</title>
<updated>2019-04-19T15:46:40Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-04-19T13:18:20Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=ea261dea0c581771b4cf297e983f7addc6807051'/>
<id>urn:sha1:ea261dea0c581771b4cf297e983f7addc6807051</id>
<content type='text'>
* guix/scripts/build.scm (%default-options): Remove 'system'.
(%options) &lt;--system&gt;: Keep previous occurrences of 'system in RESULT.
(options-&gt;derivations)[system]: Remove.
[systems, things-to-build]: New variables.
[compute-derivation]: New procedure.
Iterate on all of SYSTEMS to compute the derivations of THINGS-TO-BUILD.
* tests/guix-build.sh: Add test for one and multiple '-s' flags.
* doc/guix.texi (Additional Build Options): Document this behavior.
</content>
</entry>
<entry>
<title>guix build: Fix relative file name canonicalization for '--root'.</title>
<updated>2019-04-15T14:57:12Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-04-15T14:57:12Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=4aea820f0954fce4d076718072faf211f62f3f9d'/>
<id>urn:sha1:4aea820f0954fce4d076718072faf211f62f3f9d</id>
<content type='text'>
Fixes &lt;https://bugs.gnu.org/35271&gt;.
Reported by rendaw &lt;7e9wc56emjakcm@s.rendaw.me&gt;.

* guix/scripts/build.scm (register-root): When ROOT is a relative file
name, append the basename of ROOT, not ROOT itself.
* tests/guix-build.sh: Add test.
</content>
</entry>
<entry>
<title>guix build: '--with-branch' strips slashes from the version string.</title>
<updated>2019-03-17T21:55:01Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-03-13T09:33:17Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=d831b1907900ea39c93cef7671acdbf9e04fafc1'/>
<id>urn:sha1:d831b1907900ea39c93cef7671acdbf9e04fafc1</id>
<content type='text'>
This fixes things like:

  guix build glibc \
    --with-git-url=glibc=git://sourceware.org/git/glibc.git \
    --with-branch=glibc=release/2.25/master

whereby slashes would before go straight to the 'version' field, leading
to an invalid store file name.

* guix/scripts/build.scm (transform-package-source-branch)[replace]:
Replace slashes with hyphens in BRANCH when building the version
string.
</content>
</entry>
<entry>
<title>guix build: '--with-commit' makes recursive checkouts.</title>
<updated>2019-03-17T21:55:01Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludovic.courtes@inria.fr</email>
</author>
<published>2019-03-13T09:26:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=845c44012c2a05436dc0a5316ff3c2a9e5bd725f'/>
<id>urn:sha1:845c44012c2a05436dc0a5316ff3c2a9e5bd725f</id>
<content type='text'>
This was an omission from commit
024a6bfba906742c136a47b4099f06880f1d3f15.

* guix/scripts/build.scm (transform-package-source-commit): Add
'recursive?' field to SOURCE.
* tests/scripts-build.scm ("options-&gt;transformation, with-branch")
("options-&gt;transformation, with-commit"): New tests.
</content>
</entry>
<entry>
<title>guix build: Transformation options match packages by spec.</title>
<updated>2019-03-17T21:55:01Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludovic.courtes@inria.fr</email>
</author>
<published>2019-03-13T09:11:54Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=14328b81a224b726f39dd030886ba8d332027427'/>
<id>urn:sha1:14328b81a224b726f39dd030886ba8d332027427</id>
<content type='text'>
This allows us to combine several transformations on a given package, in
particular '--with-git-url' and '--with-branch'.

Previously transformations would ignore each other since they would all
take (specification-&gt;package SOURCE) as their replacement source,
compare it by identity, which doesn't work if a previous transformation
has already changed SOURCE.

* guix/scripts/build.scm (evaluate-replacement-specs): Adjust to produce
an alist as expected by 'package-input-rewriting/spec', with a package
spec as the first element of each pair.
(evaluate-git-replacement-specs): Likewise.
(transform-package-inputs):  Adjust accordingly and use
'package-input-rewriting/spec'.
(transform-package-inputs/graft): Likewise.
(transform-package-source-branch, transform-package-source-commit): Use
'package-input-rewriting/spec'.
(transform-package-source-git-url): Likewise, and adjust the
REPLACEMENTS alist accordingly.
(options-&gt;transformation): Iterate over OPTS instead of over
%TRANSFORMATIONS.  Invoke transformations one by one.
* tests/scripts-build.scm ("options-&gt;transformation, with-input"):
Adjust test to compare packages by name rather than by identity.
("options-&gt;transformation, with-git-url + with-branch"): New test.
</content>
</entry>
</feed>
