RPM macros that list arches the full kernel is built on
Go to file
Eugene Syromiatnikov fc8ffa826b kmodtool, macros.kmp: support "+" for the kernel variant in uname
A patch[1] to the kernel spec file changed the separator that is used
for kernel flavor designation from "." to "+", which broke kmodtool and
%kernel_module_package in multiple places.  Try to accomodate it by
accepting both "+" and "." during parsing, and guessing which one should
be used for kernel osurce path generation.

PS. It looks like the analogous breakage was before, when it was changed
from "-" to ".". May be we should start support it back again as well.

[1] https://lists.fedoraproject.org/pipermail/kernel/2013-June/004262.html

* kmodtool (get_verrel, get_variant): Accept both "." and "+" as separators.
(get_variant_char, print_variant_char, print_kernel_source): New functions.
(get_filelist): Convert "+%1" in file list to $dotvariant, in addition
to ".%1" and "-%1".
(get_rpmtemplate): Determine a char that is used as a variant separator.
Use it in $dotvariant.
(usage): Mention "veriant_char" and "kernel_source" commands.
* macros.kmp (%kernel_module_package): Use "kernel_source" command in
"%kernel_source" definition when non-default variant is used; fall back
to ls-based heuristics when it is not available (for example, when a
version of kmodtool that doesn't support this command is used).

Resolves: #2002887
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2021-11-18 14:22:00 +01:00
.gitignore New branch setup 2020-10-08 15:57:43 +00:00
find-provides.ksyms Add support for compressed kernel modules 2021-11-18 14:22:00 +01:00
find-requires.ksyms Add support for compressed kernel modules 2021-11-18 14:22:00 +01:00
firmware.prov Add support for compressed kernel modules 2021-11-18 14:22:00 +01:00
gating.yaml Add RHEL gating configuration 2021-07-23 19:25:00 -03:00
kabi.attr Re-instantiate support for old symvers path 2021-11-18 14:22:00 +01:00
kabi.sh Re-instantiate support for old symvers path 2021-11-18 14:22:00 +01:00
kernel-srpm-macros.spec Add dependency generator for kABI provides 2021-11-18 14:21:51 +01:00
kmod.attr Add kmod.attr from redhat-rpm-config 2021-05-24 11:54:51 +02:00
kmodtool kmodtool, macros.kmp: support "+" for the kernel variant in uname 2021-11-18 14:22:00 +01:00
macros.kernel-srpm RHEL 9.0.0 Alpha bootstrap 2020-10-15 14:42:20 +02:00
macros.kmp kmodtool, macros.kmp: support "+" for the kernel variant in uname 2021-11-18 14:22:00 +01:00
modalias.prov Adopt kernel-rpm-macros from redhat-rpm-config 2021-05-13 17:52:56 +02:00
README.md RHEL 9.0.0 Alpha bootstrap 2020-10-15 14:42:20 +02:00
rpmsort Adopt kernel-rpm-macros from redhat-rpm-config 2021-05-13 17:52:56 +02:00
sources RHEL 9.0.0 Alpha bootstrap 2020-10-15 14:42:20 +02:00
symset-table Adopt kernel-rpm-macros from redhat-rpm-config 2021-05-13 17:52:56 +02:00

kernel-srpm-macros

The kernel-srpm-macros package