| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
When the kernel configuration contains the setting
CONFIG_MODULE_COMPRESS_{GZIP,XZ,STD} we need to store
the extension for a subsequent call to modinfo.
Closes: https://bugs.gentoo.org/906303
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
|
| |
Thanks to codespell.
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
|
|
|
|
|
|
| |
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
As warned, remove EAPI deprecated use of econf being called in
linux-mod_src_compile
Closes: https://bugs.gentoo.org/340597
See: https://marc.info/?l=gentoo-dev&m=167069431328509
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use of the MODULESD_<modulename>_{ADDITIONS,ALIASES,EXAMPLES} variables do not
currently work with external modules that are hyphenated. The current behavior
results in an invalid modprobe.d file containing partially evaluated content.
This appears to be due to use of ${currm} rather than ${currm_t} when
Referencing variables. This changes the use of ${currm} to ${currm_t} when
referencing variables to resolve this issue.
Closes: https://bugs.gentoo.org/889752
Author: Steven Stallion <steven.stallion@sony.com>
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
| |
In case someone would re-add the || die without looking into this.
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Emergency fix given this apparently broke potentially several
packages, at least e.g. virtualbox-modules, and zenpower3 from guru.
Fixes: bc0ef44947363a33b5cd9b18bcc0d3c32b808311
Closes: https://bugs.gentoo.org/888679
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
|
|
|
|
|
|
| |
* eutils.eclass functionality was not used in EAPI 7.
Signed-off-by: David Seifert <soap@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
- Use Bash tests (i.e. [[ ]] instead of [ ])
- Use consistent newlines for if/while
- Drop unnecessary ; line terminators
- Add a handful of missing || dies
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
Notify packaga maintainers that their package relies on
the EAPI deprecated use of econf being called in
linux-mod_src_compile, which will go away in 30 days (20230107)
Bug: https://bugs.gentoo.org/340597
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
| |
* guaranteed by PMS
Signed-off-by: David Seifert <soap@gentoo.org>
|
|
|
|
|
|
| |
Avoids noise from memlimit-compress.
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
With older versions of xz, xz -T0 will on 32-bit systems
try to allocate too much memory and bail out.
After discussing with upstream, we set --memlimit-compress=50% as a
way to make things work with both older & newer versions. This limiting
is essentially already present with >= 5.3.3_alpha as -T0 includes it.
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
|
| |
I'm sorry, I thought I'd caught this before.
Closes: https://bugs.gentoo.org/877207
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
| |
Fixes: 61f0eab4e3c0272449024e83f32734b0e6d392bb
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
| |
doins will 'die for us' in newer EAPIs, and add missing || dies to compressor calls.
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Linux kernel supports the compression of modules utilizing GZIP, XZ
and ZSTD. Add support into linux-mod.eclass to support this for out of
tree modules utilizing the compression binary specified in the kernel
config.
Note that if the binary which provides the compression is not present on
the system the kernel would have failed to build with an error
indicating the missing binaries name.
Closes: https://bugs.gentoo.org/850130
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
|
| |
Document functions which did not have any documentation or were not
formatted to gentoo specifications
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
This change is to comply with the linux-info.eclass change of the
function name from set_arch_to_portage to set_arch_to_pkgmgr
https://bugs.gentoo.org/843686
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/835396
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
| |
Clean-up code needed for deprecated EAPIs (EAPI < 4)
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
| |
It's already an implicit IUSE, so we don't need this.
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
| |
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/22697
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
|
|
| |
This allows it to be overriden in local Makefiles.
Closes: https://bugs.gentoo.org/550428
Closes: https://github.com/gentoo/gentoo/pull/22225
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
|
|
|
|
| |
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/637782
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/642240
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
|
|
|
|
|
|
|
|
| |
Add a 'prebuilt-kernel' USE flag that controls a bound-slot dependency
on virtual/prebuilt-kernel. If the flag is enabled, it should ensure
that the module will be rebuilt automatically on future kernel upgrades.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
|
|
|
|
| |
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
|
|
|
|
|
| |
Closes: https://github.com/gentoo/gentoo/pull/14646
Signed-off-by: David Seifert <soap@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SUBDIRS= will be removed from Linux 5.3. See bug #680976
The linux-mod.eclass includes the function convert_to_m() that is supposed
to fix Makefiles converting them from SUBDIRS= to M=. The auxiliary
function use_m(), needed by convert_to_m(), is used to verify the kernel
version before deciding to patch a file. Currently the check supports only
kernel <= 3
Thanks to Fabio Rossi
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
When CONFIG_DEBUG_INFO_SPLIT and/or CONFIG_DEBUG_INFO_DWARF4 are set,
the kernel build system tries to create a null.dwo file in the root of
the kernel source directory. This adds an addpredict to prevent this
from failing due to a sandbox failure.
Acked-by: Thomas Deutschmann <whissi@gentoo.org>
Closes: https://bugs.gentoo.org/653286
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
|
|
|
|
|
|
|
|
| |
Since EAPI 7, variables like "D" no longer have a trailing slash.
However, linux-mod_pkg_preinst relied on a traling slash.
Due to that, any EAPI=7 ebuilds using linux-mod eclass to install
kernel modules didn't run DEPMOD and weren't added to MODULESDB.
|
|
|
|
|
|
|
|
|
| |
Recent linux kernels rely on libelf at build time, which includes at the
time of building out of tree modules. So if a module is relying on the
existence of linux sources, it also needs to rely on libelf being
installed.
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
|
|
|
|
| |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Add IUSE default support for $MODULES_OPTIONAL_USE use flag variable.
Defaults to disabled, and individual packages will have it enabled
rather than tree-wide.
Bug: https://bugs.gentoo.org/635720
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|