<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix/tests/guix-package.sh, branch sysadmin-team</title>
<subtitle>Transactional package manager, declarative GNU/Linux distribution, reproducible deployment tool, and more! https://guix.gnu.org</subtitle>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/'/>
<entry>
<title>tests: Do not refer to ‘texlive’ package.</title>
<updated>2026-02-12T22:03:31+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2026-02-11T18:48:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=6e2fe68cb0b897375ee0dceaf9aa9544d8866baf'/>
<id>6e2fe68cb0b897375ee0dceaf9aa9544d8866baf</id>
<content type='text'>
This is a followup to 7f46cd4becbb82240c676d1024055eeb04efca95, which broke
this test.

* tests/guix-package.sh: Replace ‘texlive’ with ‘tzdata’.

Change-Id: Ib7fadfaa4f6a19845064ba8dd737b65a16e93064
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
Merges: #6332
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a followup to 7f46cd4becbb82240c676d1024055eeb04efca95, which broke
this test.

* tests/guix-package.sh: Replace ‘texlive’ with ‘tzdata’.

Change-Id: Ib7fadfaa4f6a19845064ba8dd737b65a16e93064
Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
Merges: #6332
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: guix-package: Fix guix package --search test.</title>
<updated>2024-12-13T23:34:28+00:00</updated>
<author>
<name>Janneke Nieuwenhuizen</name>
<email>janneke@gnu.org</email>
</author>
<published>2024-12-13T23:30:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=4a6ca998244f280958207e8ac15bae6e75943aca'/>
<id>4a6ca998244f280958207e8ac15bae6e75943aca</id>
<content type='text'>
This is a follow-up to commit
    6f8c8a86d827627f503a803381bce7fbcf8f39a0
    gnu: Fix synopsis in miscelaneous packages.

Change-Id: I5f44e07544f80973fa6b306b2dcdf42ac3b56ad6

* tests/guix-package.sh: Search for GNU hello's changed synopsis "Example GNU
package".

Change-Id: I79f606afee348cb6d57d9c0d08e15cd9267d5ceb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a follow-up to commit
    6f8c8a86d827627f503a803381bce7fbcf8f39a0
    gnu: Fix synopsis in miscelaneous packages.

Change-Id: I5f44e07544f80973fa6b306b2dcdf42ac3b56ad6

* tests/guix-package.sh: Search for GNU hello's changed synopsis "Example GNU
package".

Change-Id: I79f606afee348cb6d57d9c0d08e15cd9267d5ceb
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Fix checks for expected failures.</title>
<updated>2023-04-21T14:16:38+00:00</updated>
<author>
<name>Eric Bavier</name>
<email>bavier@posteo.net</email>
</author>
<published>2023-04-20T05:11:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=37dd69b44511dc73eb04bdebe8d82c9a0386338e'/>
<id>37dd69b44511dc73eb04bdebe8d82c9a0386338e</id>
<content type='text'>
Addresses &lt;https://issues.guix.gnu.org/62406&gt;.

With 'set -e', a return status inverted with '!' does not cause the shell to
exit immediately.  Instead use '&amp;&amp; false' to indicate an expected failure.

* tests/guix-archive.sh, tests/guix-build-branch.sh, tests/guix-build.sh,
tests/guix-daemon.sh, tests/guix-download.sh,
tests/guix-environment-container.sh, tests/guix-environment.sh,
tests/guix-gc.sh, tests/guix-git-authenticate.sh, tests/guix-graph.sh,
tests/guix-hash.sh, tests/guix-home.sh, tests/guix-pack-relocatable.sh,
tests/guix-pack.sh, tests/guix-package-aliases.sh, tests/guix-package-net.sh,
tests/guix-package.sh, tests/guix-refresh.sh, tests/guix-shell.sh,
tests/guix-style.sh, tests/guix-system.sh: Replace uses of '! ...' with
'... &amp;&amp; false' or `test ! ...` as appropriate.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Addresses &lt;https://issues.guix.gnu.org/62406&gt;.

With 'set -e', a return status inverted with '!' does not cause the shell to
exit immediately.  Instead use '&amp;&amp; false' to indicate an expected failure.

* tests/guix-archive.sh, tests/guix-build-branch.sh, tests/guix-build.sh,
tests/guix-daemon.sh, tests/guix-download.sh,
tests/guix-environment-container.sh, tests/guix-environment.sh,
tests/guix-gc.sh, tests/guix-git-authenticate.sh, tests/guix-graph.sh,
tests/guix-hash.sh, tests/guix-home.sh, tests/guix-pack-relocatable.sh,
tests/guix-pack.sh, tests/guix-package-aliases.sh, tests/guix-package-net.sh,
tests/guix-package.sh, tests/guix-refresh.sh, tests/guix-shell.sh,
tests/guix-style.sh, tests/guix-system.sh: Replace uses of '! ...' with
'... &amp;&amp; false' or `test ! ...` as appropriate.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Adjust 'guix package' test to latest package search metrics.</title>
<updated>2022-12-20T15:56:03+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2022-12-20T09:26:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=680970490c556ae0029aa1ba2b0faba162118186'/>
<id>680970490c556ae0029aa1ba2b0faba162118186</id>
<content type='text'>
With commit bbcd06e56c06376e640a7ac81a7109e7135a20f2, the command
"guix package -s '^fileutils$'" would match the 'ocaml-fileutils'
package, because its 'package-upstream-name*' is "fileutils".  Work
around it.

Reported by Vagrant Cascadian.

* tests/guix-package.sh: Change "fileutils" example to use a different
package name.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With commit bbcd06e56c06376e640a7ac81a7109e7135a20f2, the command
"guix package -s '^fileutils$'" would match the 'ocaml-fileutils'
package, because its 'package-upstream-name*' is "fileutils".  Work
around it.

Reported by Vagrant Cascadian.

* tests/guix-package.sh: Change "fileutils" example to use a different
package name.
</pre>
</div>
</content>
</entry>
<entry>
<title>scripts: package: Transform before creating manifest entries.</title>
<updated>2022-05-23T14:24:46+00:00</updated>
<author>
<name>Josselin Poiret</name>
<email>dev@jpoiret.xyz</email>
</author>
<published>2022-05-09T14:54:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=aaf547824e389b68c028c9b3fd4d15fd2991dc31'/>
<id>aaf547824e389b68c028c9b3fd4d15fd2991dc31</id>
<content type='text'>
* guix/scripts/package.scm (options-&gt;installable): Add TRANSFORM
argument, to be able to directly transform the new packages before
creating their manifest entries.
(process-actions): Remove transform-entry, and step3, transforming
directly in step2.
* tests/guix-package.sh: Add test.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/scripts/package.scm (options-&gt;installable): Add TRANSFORM
argument, to be able to directly transform the new packages before
creating their manifest entries.
(process-actions): Remove transform-entry, and step3, transforming
directly in step2.
* tests/guix-package.sh: Add test.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>profiles: 'profile-derivation' rejects unsupported packages.</title>
<updated>2022-02-18T13:14:38+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2022-02-17T15:06:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=5a57313918a5c1bd5cf8238c2dcae64a03523952'/>
<id>5a57313918a5c1bd5cf8238c2dcae64a03523952</id>
<content type='text'>
Previously user-facing commands would happily start building packages
even if they do not support that system.  With this change, all the
user-facing commands reject unsupported packages without going further.

* guix/profiles.scm (profile-derivation): Add #:allow-unsupported-packages?.
Define 'check-supported-packages' and honor #:allow-unsupported-packages?.
* tests/guix-pack.sh, tests/guix-package.sh, tests/guix-shell.sh: Ensure
that unsupported packages are rejected.
* tests/guix-system.sh: Pass "--system=armhf-linux" when attempting to
build gnu/system/examples/asus-c201.tmpl.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously user-facing commands would happily start building packages
even if they do not support that system.  With this change, all the
user-facing commands reject unsupported packages without going further.

* guix/profiles.scm (profile-derivation): Add #:allow-unsupported-packages?.
Define 'check-supported-packages' and honor #:allow-unsupported-packages?.
* tests/guix-pack.sh, tests/guix-package.sh, tests/guix-shell.sh: Ensure
that unsupported packages are rejected.
* tests/guix-system.sh: Pass "--system=armhf-linux" when attempting to
build gnu/system/examples/asus-c201.tmpl.
</pre>
</div>
</content>
</entry>
<entry>
<title>diagnostics, ui: Adjust to 'read-error' and 'syntax-error' in Guile 3.0.6.</title>
<updated>2021-04-28T23:22:04+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2021-04-28T22:38:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=524c9800afb433cc474132185d8e37f72004adb3'/>
<id>524c9800afb433cc474132185d8e37f72004adb3</id>
<content type='text'>
* guix/diagnostics.scm (source-properties-&gt;location): Add clause for
vectors.
* guix/ui.scm (report-load-error): Tweak 'read-error' handling for 3.0.6.
* tests/guix-package.sh: Relax regexp for the "unbound variable"
diagnostic check.
* tests/guix-system.sh: Adjust "missing closing paren" check for 3.0.6.
* tests/records.scm (location-alist): New procedure.
("define-record-type* &amp; wrong field specifier")
("define-record-type* &amp; wrong field specifier, identifier")
("define-record-type* &amp; duplicate initializers"): Use it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/diagnostics.scm (source-properties-&gt;location): Add clause for
vectors.
* guix/ui.scm (report-load-error): Tweak 'read-error' handling for 3.0.6.
* tests/guix-package.sh: Relax regexp for the "unbound variable"
diagnostic check.
* tests/guix-system.sh: Adjust "missing closing paren" check for 3.0.6.
* tests/records.scm (location-alist): New procedure.
("define-record-type* &amp; wrong field specifier")
("define-record-type* &amp; wrong field specifier, identifier")
("define-record-type* &amp; duplicate initializers"): Use it.
</pre>
</div>
</content>
</entry>
<entry>
<title>profiles: 'package-&gt;manifest-entry' preserves transformations by default.</title>
<updated>2021-03-05T11:49:27+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2021-03-04T09:57:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=90ea8b16eb519a88d8f739fea5a416c0b99de19f'/>
<id>90ea8b16eb519a88d8f739fea5a416c0b99de19f</id>
<content type='text'>
Previously, transformations applied from a manifest (rather than via
"guix install") would be lost.  This change fixes that and simplifies
things.

Reported by zimoun at
&lt;https://lists.gnu.org/archive/html/guix-devel/2021-02/msg00153.html&gt;.

* guix/profiles.scm (default-properties): New procedure.
(package-&gt;manifest-entry): Use it for #:properties.
* guix/scripts/pack.scm (guix-pack)[with-transformations]: Remove.
Remove caller.
* guix/scripts/package.scm (transaction-upgrade-entry): Remove calls to
'manifest-entry-with-transformations'.
* tests/guix-package.sh: Add test.
* tests/transformations.scm ("options-&gt;transformation + package-&gt;manifest-entry"):
New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, transformations applied from a manifest (rather than via
"guix install") would be lost.  This change fixes that and simplifies
things.

Reported by zimoun at
&lt;https://lists.gnu.org/archive/html/guix-devel/2021-02/msg00153.html&gt;.

* guix/profiles.scm (default-properties): New procedure.
(package-&gt;manifest-entry): Use it for #:properties.
* guix/scripts/pack.scm (guix-pack)[with-transformations]: Remove.
Remove caller.
* guix/scripts/package.scm (transaction-upgrade-entry): Remove calls to
'manifest-entry-with-transformations'.
* tests/guix-package.sh: Add test.
* tests/transformations.scm ("options-&gt;transformation + package-&gt;manifest-entry"):
New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>guix package: Add '--export-manifest'.</title>
<updated>2021-02-01T16:32:35+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2021-01-10T14:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=9fd7b050e2198c89f0763fe79f5c541b77b8e5c9'/>
<id>9fd7b050e2198c89f0763fe79f5c541b77b8e5c9</id>
<content type='text'>
* guix/scripts/package.scm (export-manifest): New procedure.
(show-help, %options): Add '--export-manifest'.
(process-query): Honor it.
* guix/build/profiles.scm (build-profile): Mention it.
* tests/guix-package.sh: Test it.
* doc/guix.texi (Invoking guix package): Document it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/scripts/package.scm (export-manifest): New procedure.
(show-help, %options): Add '--export-manifest'.
(process-query): Honor it.
* guix/build/profiles.scm (build-profile): Mention it.
* tests/guix-package.sh: Test it.
* doc/guix.texi (Invoking guix package): Document it.
</pre>
</div>
</content>
</entry>
<entry>
<title>guix package: Re-apply package transformation when upgrading.</title>
<updated>2020-10-02T21:28:09+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2020-09-25T15:16:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=8e1907a72430aa989125b053573ef0897c480697'/>
<id>8e1907a72430aa989125b053573ef0897c480697</id>
<content type='text'>
* guix/scripts/package.scm (transaction-upgrade-entry)[upgrade]: Add
'transform' parameter.  Pass PKG through it.  Use
'manifest-entry-with-transformations'.
Call 'options-&gt;transformation' to get the transformation procedure.
* tests/guix-package.sh: Add 'guix package -u' test.
* tests/packages.scm ("transaction-upgrade-entry, transformation options preserved"):
New test.
* doc/guix.texi (Invoking guix package): Mention that transformations
are preserved across upgrades.
(Package Transformation Options): Likewise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/scripts/package.scm (transaction-upgrade-entry)[upgrade]: Add
'transform' parameter.  Pass PKG through it.  Use
'manifest-entry-with-transformations'.
Call 'options-&gt;transformation' to get the transformation procedure.
* tests/guix-package.sh: Add 'guix package -u' test.
* tests/packages.scm ("transaction-upgrade-entry, transformation options preserved"):
New test.
* doc/guix.texi (Invoking guix package): Mention that transformations
are preserved across upgrades.
(Package Transformation Options): Likewise.
</pre>
</div>
</content>
</entry>
</feed>
