<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix/tests/modules.scm, branch python-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>build-systems: gnu: Export %default-gnu-imported-modules and %default-gnu-modules.</title>
<updated>2024-08-31T08:42:16+00:00</updated>
<author>
<name>Maxim Cournoyer</name>
<email>maxim.cournoyer@gmail.com</email>
</author>
<published>2023-10-09T15:10:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=f59df1aa3c104aabff3291f6b8b155fb01aebc06'/>
<id>f59df1aa3c104aabff3291f6b8b155fb01aebc06</id>
<content type='text'>
Until now users would have to cargo cult or inspect the private
%default-modules variable of (guix build-systems gnu) to discover which
modules to include when extending the used modules via the #:modules argument.

The renaming was automated via the command:

  $ git grep -l %gnu-build-system-modules
    | xargs sed 's/%gnu-build-system-modules/%default-gnu-imported-modules/' -i

* guix/build-system/gnu.scm (%gnu-build-system-modules): Rename to...
(%default-gnu-imported-modules): ... this.
(%default-modules): Rename to...
(%default-gnu-modules): ... this.  Export.
(dist-package, gnu-build, gnu-cross-build): Adjust accordingly.

Change-Id: Idef307fff13cb76f3182d782b26e1cd3a5c757ee
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Until now users would have to cargo cult or inspect the private
%default-modules variable of (guix build-systems gnu) to discover which
modules to include when extending the used modules via the #:modules argument.

The renaming was automated via the command:

  $ git grep -l %gnu-build-system-modules
    | xargs sed 's/%gnu-build-system-modules/%default-gnu-imported-modules/' -i

* guix/build-system/gnu.scm (%gnu-build-system-modules): Rename to...
(%default-gnu-imported-modules): ... this.
(%default-modules): Rename to...
(%default-gnu-modules): ... this.  Export.
(dist-package, gnu-build, gnu-cross-build): Adjust accordingly.

Change-Id: Idef307fff13cb76f3182d782b26e1cd3a5c757ee
</pre>
</div>
</content>
</entry>
<entry>
<title>modules: ‘file-name-&gt;module-name’ strips leading “./”.</title>
<updated>2024-07-18T15:31:19+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2024-07-18T15:30:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=e3dfed59d39ac60dd2e2b9ef9f4ef63a2a081f41'/>
<id>e3dfed59d39ac60dd2e2b9ef9f4ef63a2a081f41</id>
<content type='text'>
Fixes &lt;https://issues.guix.gnu.org/71979&gt;.

* guix/modules.scm (file-name-&gt;module-name): Strip leading “.” component
from FILE.
* tests/modules.scm ("file-name-&gt;module-name")
("file-name-&gt;module-name, leading dot"): New tests.

Reported-by: Tomas Volf &lt;~@wolfsden.cz&gt;
Change-Id: I3d1b9f3f21448050cac4f3b1aed5f8f03758d4c9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes &lt;https://issues.guix.gnu.org/71979&gt;.

* guix/modules.scm (file-name-&gt;module-name): Strip leading “.” component
from FILE.
* tests/modules.scm ("file-name-&gt;module-name")
("file-name-&gt;module-name, leading dot"): New tests.

Reported-by: Tomas Volf &lt;~@wolfsden.cz&gt;
Change-Id: I3d1b9f3f21448050cac4f3b1aed5f8f03758d4c9
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove VM generation dead-code.</title>
<updated>2021-12-23T09:54:00+00:00</updated>
<author>
<name>Mathieu Othacehe</name>
<email>othacehe@gnu.org</email>
</author>
<published>2021-12-16T12:32:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=05a9d1f378e2e13e8f759be926ea368358afc27c'/>
<id>05a9d1f378e2e13e8f759be926ea368358afc27c</id>
<content type='text'>
This code duplicates the (gnu system image) and (gnu build image) code. Using
VM for image generation is not needed, not portable and really slow. Remove
all the VM image generation code to make sure that only the image API is used.

* gnu/build/vm.scm: Remove it. Move the qemu-command procedure to ...
* gnu/build/marionette.scm: ... here.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adapt it.
* tests/modules.scm: Ditto.
* gnu/tests/install.scm: Ditto.
* gnu/system/vm.scm: Adapt it and remove expression-&gt;derivation-in-linux-vm,
qemu-img, system-qemu-image/shared-store and system-docker-image procedures.
* doc/guix.texi (G-Expressions): Adapt it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This code duplicates the (gnu system image) and (gnu build image) code. Using
VM for image generation is not needed, not portable and really slow. Remove
all the VM image generation code to make sure that only the image API is used.

* gnu/build/vm.scm: Remove it. Move the qemu-command procedure to ...
* gnu/build/marionette.scm: ... here.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adapt it.
* tests/modules.scm: Ditto.
* gnu/tests/install.scm: Ditto.
* gnu/system/vm.scm: Adapt it and remove expression-&gt;derivation-in-linux-vm,
qemu-img, system-qemu-image/shared-store and system-docker-image procedures.
* doc/guix.texi (G-Expressions): Adapt it.
</pre>
</div>
</content>
</entry>
<entry>
<title>modules: Raise an error when a dependency could not be found.</title>
<updated>2017-05-25T12:25:17+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-05-25T12:19:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=bfe5264aa10c1af64adc5c24d0cf091562e3e09c'/>
<id>bfe5264aa10c1af64adc5c24d0cf091562e3e09c</id>
<content type='text'>
* guix/modules.scm (&amp;missing-dependency-error): New error condition.
(source-module-dependencies): Raise it when 'search-path' returns #f.
* tests/modules.scm ("&amp;missing-dependency-error"): New test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/modules.scm (&amp;missing-dependency-error): New error condition.
(source-module-dependencies): Raise it when 'search-path' returns #f.
* tests/modules.scm ("&amp;missing-dependency-error"): New test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add (guix modules).</title>
<updated>2016-09-04T22:06:47+00:00</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2016-09-04T21:41:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vineetk.net/guix/commit/?id=7ca87354db53fd1e1a7a3dfeddb9a598ea064bbe'/>
<id>7ca87354db53fd1e1a7a3dfeddb9a598ea064bbe</id>
<content type='text'>
* guix/modules.scm, tests/modules.scm: New files.
* Makefile.am (MODULES, SCM_TESTS): Add them.
* doc/guix.texi (G-Expressions): Add an example of
'source-module-closure'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* guix/modules.scm, tests/modules.scm: New files.
* Makefile.am (MODULES, SCM_TESTS): Add them.
* doc/guix.texi (G-Expressions): Add an example of
'source-module-closure'.
</pre>
</div>
</content>
</entry>
</feed>
