<feed xmlns='http://www.w3.org/2005/Atom'>
<title>algaos/algaos-ebuild-tree/eclass/cmake.eclass, branch next</title>
<subtitle>[no description]</subtitle>
<id>https://git.algaos.com/algaos/algaos-ebuild-tree/atom?h=next</id>
<link rel='self' href='https://git.algaos.com/algaos/algaos-ebuild-tree/atom?h=next'/>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/'/>
<updated>2026-09-08T20:29:06Z</updated>
<entry>
<title>cmake.eclass: only define Fortran compiler if using fortran-2.eclass</title>
<updated>2026-09-08T20:29:06Z</updated>
<author>
<name>Andreas Sturmlechner</name>
<email>asturm@gentoo.org</email>
</author>
<published>2026-09-05T19:31:03Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=383f89a0c582d2f260b1467c23d5a3c192db78f4'/>
<id>urn:sha1:383f89a0c582d2f260b1467c23d5a3c192db78f4</id>
<content type='text'>
One is "not supposed to" use fortran in an ebuild without inheriting
this eclass. Unconditionally doing so regardless, means that any ebuild
which makes use of this cmake compiler definition likely has an
automagic dep on virtual/fortran and definitely isn't running compiler
sanity pre-checks which we are led to believe by the fortran eclass
maintainers, is very important to check the sanity of.

Thanks-to: Eli Schwartz &lt;eschwartz@gentoo.org&gt;
Closes: https://bugs.gentoo.org/981677
Signed-off-by: Andreas Sturmlechner &lt;asturm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: save build tool's exit code in case of running under nonfatal</title>
<updated>2026-06-08T20:01:48Z</updated>
<author>
<name>Andreas Sturmlechner</name>
<email>asturm@gentoo.org</email>
</author>
<published>2026-05-16T17:54:31Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=c084bb9558e18a4b0b4d9d1e30066ce1948abe51'/>
<id>urn:sha1:c084bb9558e18a4b0b4d9d1e30066ce1948abe51</id>
<content type='text'>
Thanks-to: Fat-Zer &lt;fatzer2@gmail.com&gt;
Bug: https://bugs.gentoo.org/970798
Signed-off-by: Andreas Sturmlechner &lt;asturm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: Unconditionally set CMAKE_SYSTEM_NAME in toolchain file</title>
<updated>2026-06-08T20:01:48Z</updated>
<author>
<name>Andreas Sturmlechner</name>
<email>asturm@gentoo.org</email>
</author>
<published>2026-05-20T18:00:13Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=747db21d3e8b28225a040c188563e52bf4e9158d'/>
<id>urn:sha1:747db21d3e8b28225a040c188563e52bf4e9158d</id>
<content type='text'>
Also explicitly add CMAKE_CROSSCOMPILING=(TRUE|FALSE).

Bug: https://bugs.gentoo.org/975603
Signed-off-by: Andreas Sturmlechner &lt;asturm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: cmake_src_configure: Move conditionals into heredoc, write once</title>
<updated>2026-06-08T20:01:48Z</updated>
<author>
<name>Andreas Sturmlechner</name>
<email>asturm@gentoo.org</email>
</author>
<published>2026-05-16T17:14:58Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=ea130d6892414875412ffdcc70e7751c82439697'/>
<id>urn:sha1:ea130d6892414875412ffdcc70e7751c82439697</id>
<content type='text'>
Signed-off-by: Andreas Sturmlechner &lt;asturm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: Add Hurd support</title>
<updated>2026-03-21T18:31:56Z</updated>
<author>
<name>Christopher Fore</name>
<email>csfore@gentoo.org</email>
</author>
<published>2026-03-21T18:28:22Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=e94dae6f27ad6cdab3562540f1af2659b082e6f0'/>
<id>urn:sha1:e94dae6f27ad6cdab3562540f1af2659b082e6f0</id>
<content type='text'>
On CMake, `GNU` is the sysname for Hurd.

https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_NAME.html#system-names-known-to-cmake

Signed-off-by: Christopher Fore &lt;csfore@gentoo.org&gt;
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: fix removal of FindBLAS.cmake during cmake-4.2.1 upgrade</title>
<updated>2026-01-11T09:16:58Z</updated>
<author>
<name>Sv. Lockal</name>
<email>lockalsash@gmail.com</email>
</author>
<published>2026-01-10T16:23:21Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=d7318bdc9ad2d2991baa0a5a3037dd0e1ca9fcf9'/>
<id>urn:sha1:d7318bdc9ad2d2991baa0a5a3037dd0e1ca9fcf9</id>
<content type='text'>
Change done in 3f8ff6b53f4c9d048cb677b0e41a4f5089951d5d had a logic
mistake. Original logic was: if CMAKE_REMOVE_MODULES_LIST is not empty,
then validate that it is array. Otherwise (emty string or unset), set
it to remove FindBLAS.cmake and FindLAPACK.cmake. After change
if effectively always set any non-empty CMAKE_REMOVE_MODULES_LIST array
to ( FindBLAS FindLAPACK ), if &lt;dev-build/cmake-4.2.1 is installed.
In the result, upgrade from cmake-4.1.2 to cmake-4.2.1 resulted in
removed FindBLAS.cmake and FindLAPACK.cmake.

What should be done instead is just checking that
CMAKE_REMOVE_MODULES_LIST is not an array.
1) Explicitly empty array - no need to remove FindBLAS/FindLAPACK
2) Unset and &lt;dev-build/cmake-4.2.1 - remove them.

This change is followed by cmake-4.2.1 revbump, because existing
upgraded installations may lack FindBLAS.cmake and FindLAPACK.cmake.

Bug: https://bugs.gentoo.org/968511
Signed-off-by: Sv. Lockal &lt;lockalsash@gmail.com&gt;
Part-of: https://github.com/gentoo/gentoo/pull/45321
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: Restrict default rm Find{BLAS,LAPACK}.cmake to CMake &lt;4.2.1</title>
<updated>2026-01-05T16:59:46Z</updated>
<author>
<name>Andreas Sturmlechner</name>
<email>asturm@gentoo.org</email>
</author>
<published>2026-01-03T22:48:02Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=3f8ff6b53f4c9d048cb677b0e41a4f5089951d5d'/>
<id>urn:sha1:3f8ff6b53f4c9d048cb677b0e41a4f5089951d5d</id>
<content type='text'>
This goes back to ancient cmake-utils.eclass,v 1.70 in CVS of 2011, or
historical.git commit 70230d8d15c0d287b5e81b09a6e78b6aff01b1d6, and it was
done to ensure use of downstream-modified versions of these modules shipped
by Gentoo's cmake package over consumer packages' own copy overriding them.

After commit 04ce4a03554e3541c587db60013b9b796613c2c7 finally dropped this
downstream modification for CMake &gt;=4.2.1, we can also stop removing these
modules by default.

Closes: https://bugs.gentoo.org/736547
Signed-off-by: Andreas Sturmlechner &lt;asturm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: cmake_comment_add_subdirectory: Work w/ macro args</title>
<updated>2026-01-05T16:59:46Z</updated>
<author>
<name>Andreas Sturmlechner</name>
<email>asturm@gentoo.org</email>
</author>
<published>2025-12-29T21:54:01Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=433b994a810feba5a5ad39c8f657f141ad6b3d8f'/>
<id>urn:sha1:433b994a810feba5a5ad39c8f657f141ad6b3d8f</id>
<content type='text'>
As of 3.25, CMake allows 3 optional arguments to pass in addition to
source_dir: [binary_dir] [EXCLUDE_FROM_ALL] [SYSTEM]

The eclass function so far did not cope with that.

See also:
https://cmake.org/cmake/help/latest/command/add_subdirectory.html

Signed-off-by: Andreas Sturmlechner &lt;asturm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: fix MYCMAKEARGS not being listed under variables</title>
<updated>2025-11-23T18:42:08Z</updated>
<author>
<name>Arsen Arsenović</name>
<email>arsen@gentoo.org</email>
</author>
<published>2025-11-23T12:47:29Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=3a0e927eac74fd7caf6a29b0aef6c3fbc3a4e4e8'/>
<id>urn:sha1:3a0e927eac74fd7caf6a29b0aef6c3fbc3a4e4e8</id>
<content type='text'>
This variable is a user-variable similar to ECONF_EXTRA in nature.
Document it as such.

Signed-off-by: Arsen Arsenović &lt;arsen@gentoo.org&gt;
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>cmake.eclass: Introduce cmake_prepare-per-cmakelists</title>
<updated>2025-11-16T19:00:15Z</updated>
<author>
<name>Andreas Sturmlechner</name>
<email>asturm@gentoo.org</email>
</author>
<published>2025-11-08T20:37:14Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=27b44df42cd1546364bfc4f3c976fd70b0bf0863'/>
<id>urn:sha1:27b44df42cd1546364bfc4f3c976fd70b0bf0863</id>
<content type='text'>
Override this to be provided with a hook into the cmake_src_prepare loop
over all CMakeLists.txt below CMAKE_USE_DIR. Will be called from inside
that loop with &lt;path-to-current-CMakeLists.txt&gt; as single argument.
Used for recursive CMakeLists.txt detections and modifications.

Signed-off-by: Andreas Sturmlechner &lt;asturm@gentoo.org&gt;
</content>
</entry>
</feed>
