<feed xmlns='http://www.w3.org/2005/Atom'>
<title>algaos/algaos-ebuild-tree/eclass/linux-info.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>2025-06-09T20:27:51Z</updated>
<entry>
<title>linux-info.eclass: Fix building modules when /lib/modules is locked down</title>
<updated>2025-06-09T20:27:51Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2025-06-06T10:17:15Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=4145a2143b536676dd9372cc0c7e4994eac9203f'/>
<id>urn:sha1:4145a2143b536676dd9372cc0c7e4994eac9203f</id>
<content type='text'>
/lib/modules/*/build is often a symlink. get_version is usually run in
pkg_setup as root, so fully resolve it then in case the unprivileged
user doesn't have permission to do it later.

Closes: https://bugs.gentoo.org/957187
Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: Rework get_version and fix output directory detection</title>
<updated>2025-06-05T10:55:08Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2025-05-22T17:34:25Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=d21683ba377a5b2e5bc253e2f825ca7083c5188e'/>
<id>urn:sha1:d21683ba377a5b2e5bc253e2f825ca7083c5188e</id>
<content type='text'>
get_version used to detect the output directory under /lib/modules if
KBUILD_OUTPUT wasn't explicitly set, but this broke when bug #662772 was
fixed. The code is still there but effectively does nothing as
OUTPUT_DIR is already used to set KV_OUT_DIR above.

Bug: https://bugs.gentoo.org/662772
Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: Don't try to read KBUILD_OUTPUT from the Makefile</title>
<updated>2025-06-05T10:55:07Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2025-05-23T09:40:55Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=582a2c2f0756c68d4a51be7a4f408eb71d5797a6'/>
<id>urn:sha1:582a2c2f0756c68d4a51be7a4f408eb71d5797a6</id>
<content type='text'>
This code originates from 21 years ago, but I don't think it ever made
sense. KBUILD_OUTPUT was never written anywhere until last year. Now it
is written to the Makefile in the output directory, which is what we're
trying to locate in the first place!

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: Pass an empty KBUILD_OUTPUT to make in getfilevar</title>
<updated>2025-06-05T10:55:06Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2025-05-22T16:01:33Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=ff94210dd4ee1cd7163b788c8164a38ca83c5205'/>
<id>urn:sha1:ff94210dd4ee1cd7163b788c8164a38ca83c5205</id>
<content type='text'>
If KBUILD_OUTPUT is set but doesn't exist, the Makefile will try to
create it, which will probably fail due to permissions issues. We don't
actually want to write anything here, so there is no need to set it.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: Set the correct ARCH for make in getfilevar</title>
<updated>2025-06-05T10:55:05Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2025-05-20T16:30:34Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=0aa27096d9614b631e016586a8f6eb4df696ff75'/>
<id>urn:sha1:0aa27096d9614b631e016586a8f6eb4df696ff75</id>
<content type='text'>
Currently, it unsets ARCH, so it uses the build architecture. This is
fine if you have the full kernel sources, which is usually the case.
However, an install-extmod-build script was added to Linux fairly
recently that installs just the files needed to build out-of-tree
modules in a distro-neutral manner. It saves space by only including the
arch files for the target architecture.

I checked the history, and tc-arch-kernel didn't exist when the unset
line was added. If it had, this approach probably would have been taken
at the time.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: Drop unused myARCH variable in getfilevar_noexec</title>
<updated>2025-06-05T10:55:04Z</updated>
<author>
<name>James Le Cuirot</name>
<email>chewi@gentoo.org</email>
</author>
<published>2025-05-20T16:28:45Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=a8ecc34b1aa9e625fc953130f5b5082df0bb60d7'/>
<id>urn:sha1:a8ecc34b1aa9e625fc953130f5b5082df0bb60d7</id>
<content type='text'>
This was copied from getfilevar but never used.

Signed-off-by: James Le Cuirot &lt;chewi@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: Drop reference to BUILD_FIXES variable</title>
<updated>2024-07-08T09:42:07Z</updated>
<author>
<name>Ulrich Müller</name>
<email>ulm@gentoo.org</email>
</author>
<published>2024-07-03T15:40:26Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=b5ddd6e28b8b368bd9e1a064484de95c03bf5445'/>
<id>urn:sha1:b5ddd6e28b8b368bd9e1a064484de95c03bf5445</id>
<content type='text'>
Undocumented, and not used by any ebuilds inheriting this eclass.

Signed-off-by: Ulrich Müller &lt;ulm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: Drop support for EAPI 6</title>
<updated>2024-07-08T09:42:06Z</updated>
<author>
<name>Ulrich Müller</name>
<email>ulm@gentoo.org</email>
</author>
<published>2024-06-22T17:09:25Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=032104fa600ef674c128d23fd7e0c4193de6eb7f'/>
<id>urn:sha1:032104fa600ef674c128d23fd7e0c4193de6eb7f</id>
<content type='text'>
Signed-off-by: Ulrich Müller &lt;ulm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: Drop temporary fix for powerpc</title>
<updated>2024-07-08T09:42:06Z</updated>
<author>
<name>Ulrich Müller</name>
<email>ulm@gentoo.org</email>
</author>
<published>2024-06-22T17:06:32Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=31c7e60f5cf2c3bc8251f2f13aa899c836f4b40b'/>
<id>urn:sha1:31c7e60f5cf2c3bc8251f2f13aa899c836f4b40b</id>
<content type='text'>
Apparently there is no reference to a .tmp_gas_check file or to a TOUT
variable in Linux sources any more.

Bug: https://bugs.gentoo.org/75034#c14
Signed-off-by: Ulrich Müller &lt;ulm@gentoo.org&gt;
</content>
</entry>
<entry>
<title>linux-info.eclass: respect eselect kernel setting in binpkgs</title>
<updated>2024-05-17T12:06:46Z</updated>
<author>
<name>Andrew Ammerlaan</name>
<email>andrewammerlaan@gentoo.org</email>
</author>
<published>2024-05-09T17:01:00Z</published>
<link rel='alternate' type='text/html' href='https://git.algaos.com/algaos/algaos-ebuild-tree/commit/?id=05ad18f837f89cfa2b20e01264ef6332c240072c'/>
<id>urn:sha1:05ad18f837f89cfa2b20e01264ef6332c240072c</id>
<content type='text'>
Commit f51cd5b64c14ddfb83488a12d538c66a4a309376 resets kernel environment
variables when binpkgs are merged, this makes sense since we care about the
system that the binpkg will be installed on, not the system the binpkg was
built on. This introduced Bug 931213 as a side-effect, which will be fixed
in a separate commit to linux-mod-r1.eclass. In preparation of that, we document
and rename the LINUX_INFO_BINARY_RESET to SKIP_KERNEL_BINPKG_ENV_RESET.

However, commit f51cd5b64c14ddfb83488a12d538c66a4a309376 also makes binpkgs
always use the running kernel version. This behaviour is surprising and
confusing. In principle the 'eselect kernel' setting should still be respected
when binpkgs are used.

Bug: https://bugs.gentoo.org/926063
Bug: https://bugs.gentoo.org/931213
Signed-off-by: Andrew Ammerlaan &lt;andrewammerlaan@gentoo.org&gt;
</content>
</entry>
</feed>
