<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/tests, 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-20T12:07:01Z</updated>
<entry>
<title>import: hackage: Add two expected failing test cases.</title>
<updated>2019-06-20T12:07:01Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-16T14:55:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=b46a9b9a5e833989396565c9d924cc97ce080703'/>
<id>urn:sha1:b46a9b9a5e833989396565c9d924cc97ce080703</id>
<content type='text'>
This adds failing test cases for two hackage import bugs:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25138
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35743

* tests/hackage.scm: Make comment style consistent. Add two
cabal parsing tests, marked as expected failures.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>utils: canonical-newline-port: Fix handling of carriage return at buffer end.</title>
<updated>2019-06-20T12:07:01Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-16T14:18:29Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=3149c002644b927e0245d237cdda3a6aeca00e4a'/>
<id>urn:sha1:3149c002644b927e0245d237cdda3a6aeca00e4a</id>
<content type='text'>
Prior to this change the added test fails for me locally at byte
1024. It might depend on some default buffer sizes.

Fixes &lt;https://bugs.gnu.org/35863&gt;.

* tests/utils.scm ("canonical-newline-port-1024"): Add test.
* guix/utils.scm (canonical-newline-port): Correct comments on CR/LF.
Remove CR even when they're at the end of the buffer.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>tests: Avoid 'delete-paths' calls for 'derivation-prerequisites-to-build'.</title>
<updated>2019-06-18T14:25:09Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-17T20:48:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=5c7f87881a52a6424fc6722376b990284a06de5a'/>
<id>urn:sha1:5c7f87881a52a6424fc6722376b990284a06de5a</id>
<content type='text'>
* tests/derivations.scm ("derivation-prerequisites-to-build when outputs
already present"): Insert random text in BUILDER, and remove two calls
to 'delete-paths'.  Use 'derivation-&gt;output-path' for INPUT-PATH instead
of an old idiom.
</content>
</entry>
<entry>
<title>import: hackage: Handle Hackage revisions.</title>
<updated>2019-06-14T02:18:52Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-13T19:39:14Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=ca45da9fc9b1eee399ce4344b18cbb129daeca4c'/>
<id>urn:sha1:ca45da9fc9b1eee399ce4344b18cbb129daeca4c</id>
<content type='text'>
Hackage packages can have metadata revisions (Cabal file only) that are
not reflected in the source archive.  The Haskell build system has
support for this, but until now the Hackage importer would create a
package based on the revised Cabal file which would then build using the
old Cabal file.

Fixes &lt;https://bugs.gnu.org/35750&gt;.

* guix/import/cabal.scm (&lt;cabal-package&gt;): Add 'revision' field.
(eval-cabal): Parse 'x-revision:' property.
* guix/import/hackage.scm (read-cabal-and-hash): New procedure.
(hackage-fetch-and-hash): New procedure.
(hackage-fetch): Rewrite using 'hackage-fetch-and-hash'.
(hackage-module-&gt;sexp): Add 'cabal-hash' argument and use it to populate
the '#:cabal-revision' argument.
(hackage-&gt;guix-package): Use the new '-and-hash' functions to get the
hash of the Cabal file and pass it to 'hackage-module-&gt;sexp'.
* guix/tests/hackage.scm: Test import of Cabal file revision.

Signed-off-by: Timothy Sample &lt;samplet@ngyro.com&gt;
</content>
</entry>
<entry>
<title>import: crate: Define dependencies as arguments.</title>
<updated>2019-06-12T01:05:44Z</updated>
<author>
<name>Ivan Petkov</name>
<email>ivanppetkov@gmail.com</email>
</author>
<published>2019-05-17T07:26:07Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=5a9ef8a960706a55764f5bbc67ac83dd48516016'/>
<id>urn:sha1:5a9ef8a960706a55764f5bbc67ac83dd48516016</id>
<content type='text'>
* guix/import/crate.scm:
(crate-fetch)[input-crates]: Rename to dev-crates.
[native-input-crates]: Rename to dev-dep-crates.
[inputs]: Rename to cargo-inputs.
[native-inputs]: Rename to cargo-development-inputs.
(maybe-cargo-inputs, maybe-cargo-development-inputs, maybe-arguments): Add
them.
(make-crate-sexp)[inputs]: Rename to cargo-inputs.
[native-inputs]: Rename to cargo-development-inputs.
[maybe-native-inputs, maybe-inputs]: Replace with maybe-arguments.
* guix/import/utils.scm: (package-names-&gt;package-inputs): Make public.  Add
docstring.
* tests/crate.scm (crate-&gt;guix-package): Update the match pattern.

Signed-off-by: Chris Marusich &lt;cmmarusich@gmail.com&gt;
</content>
</entry>
<entry>
<title>store: 'build-things' accepts derivation/output pairs.</title>
<updated>2019-06-10T20:42:59Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-10T20:10:21Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=f8a9f99cd602ce1dc5307cb0c21ae718ad8796bb'/>
<id>urn:sha1:f8a9f99cd602ce1dc5307cb0c21ae718ad8796bb</id>
<content type='text'>
This allows callers to request the substitution of a single derivation
output.

* guix/store.scm (build-things): Accept derivation/output pairs among
THINGS.
* guix/derivations.scm (build-derivations): Likewise.
* tests/store.scm ("substitute + build-things with specific output"):
New test.
* tests/derivations.scm ("build-derivations with specific output"):
New test.
* doc/guix.texi (The Store): Adjust accordingly.
</content>
</entry>
<entry>
<title>import: print: Honor the outputs of inputs (!).</title>
<updated>2019-06-07T20:49:47Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-07T20:49:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=c0a4db66976dc63decbd612aafb934f44629e321'/>
<id>urn:sha1:c0a4db66976dc63decbd612aafb934f44629e321</id>
<content type='text'>
Fixes &lt;http://bugs.gnu.org/35893&gt;.
Reported by Jesse Gibbons &lt;jgibbons2357@gmail.com&gt;.

* guix/import/print.scm (package-&gt;code)[package-lists-&gt;code]: Preserve
OUT in the result.
* tests/print.scm (define-with-source): New macro.
(pkg): Use it.
(pkg-source): New variable.
(pkg-with-inputs, pkg-with-inputs-source): New variables.
("simple package"): Refer to 'pkg-source'.
("package with inputs"): New test.
</content>
</entry>
<entry>
<title>import: hackage: Parse braced properties.</title>
<updated>2019-06-02T20:16:05Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-01T22:27:50Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=959c9d159da2c53b87ae0af1421aecac98b20f46'/>
<id>urn:sha1:959c9d159da2c53b87ae0af1421aecac98b20f46</id>
<content type='text'>
This adds partial support for Cabal properties that use curly
braces instead of the layout rule.  See for example
https://hackage.haskell.org/package/cassava/

* guix/import/cabal.scm (read-braced-value): New procedure.
(is-property): Remove.
(is-layout-property, is-braced-property): New variables.
(lex-property): Rename to...
(lex-layout-property): ... this.
(lex-braced-property, lex-property): New procedures.
(lex-token): Add call to 'lex-property'.
* guix/tests/hackage.scm: Test braced description import.
* tests/hackage.scm (test-cabal-multiline-desc): Rename to...
(test-cabal-multiline-layout): ... this.
("hackage-&gt;guix-package test multiline desc"): Rename to...
("hackage-&gt;guix-package test multiline desc (layout)"): ... this.
(test-cabal-multiline-braced): New variable.
("hackage-&gt;guix-package test multiline desc (braced)"): New test.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>tests: hackage: Test multiline cabal description.</title>
<updated>2019-06-02T20:12:19Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-01T22:27:49Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=64d31813577b7471f819652e3ec81abb285bb77c'/>
<id>urn:sha1:64d31813577b7471f819652e3ec81abb285bb77c</id>
<content type='text'>
* tests/hackage.scm (test-cabal-multiline-desc): New variable.
("hackage-&gt;guix-package test multiline desc"): New test.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>tests: Fix hackage tests.</title>
<updated>2019-06-02T20:07:53Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-01T22:16:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=ea35f5c599a2fe4d6ab2925b1030f64e8b21e195'/>
<id>urn:sha1:ea35f5c599a2fe4d6ab2925b1030f64e8b21e195</id>
<content type='text'>
This is a followup to 1cc12357a65e4479c2f4735e915941382ef82d94.

* tests/hackage.scm: ghc-mtl is no longer added as an input.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
</feed>
