RPM macros that list arches the full kernel is built on
Go to file
Eugene Syromiatnikov f40a274ef8 find-provides.ksyms, find-requires.ksyms: rewrite section data matching
Currently, it just matches the 2nd to 5th fields with awk, which leads
to occasional capturing of some garbage at the end of the section data
and minor issues when supplying it to the symbol extracting awk script:

    awk: cmd. line:1: (FILENAME=- FNR=19) fatal: argument index with `$' must be > 0
    awk: warning: escape sequence `\.' treated as plain `.'
    awk: cmd. line:1: (FILENAME=- FNR=9) fatal: not enough arguments to satisfy format string
    	`78b624dbc125415351be965ex.$..%ASQ..^'
    	                              ^ ran out for this one

While at it, also eliminate grep and sed calls (with the pair of awk and
sed being the most offending).

* find-provides.ksyms: Generate part of the awk script that performs
the byte reversal based on the endianness in the readelf -h output,
inject it into the awk script;  use substr for matching parts
of the section data instead of fields.
* find-requires.ksyms (all_provides): Likewise.

Resolves: #2115811
Resolves: #2178935
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2023-06-12 14:36:25 +02:00
.gitignore New branch setup 2020-10-08 15:57:43 +00:00
README.md RHEL 9.0.0 Alpha bootstrap 2020-10-15 14:42:20 +02:00
brp-kmod-restore-perms Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
brp-kmod-set-exec-bit Enable extraction of debug information for kmods 2021-11-18 14:22:00 +01:00
find-provides.ksyms find-provides.ksyms, find-requires.ksyms: rewrite section data matching 2023-06-12 14:36:25 +02:00
find-requires.ksyms find-provides.ksyms, find-requires.ksyms: rewrite section data matching 2023-06-12 14:36:25 +02:00
firmware.prov Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
gating.yaml gating.yaml: switch to BaseOS CI 2022-02-17 05:06:21 +01:00
kabi.attr kabi: handle symvers.xz 2023-06-08 15:31:48 +02:00
kabi.sh kabi: handle symvers.xz 2023-06-08 15:31:48 +02:00
kernel-srpm-macros.spec kernel-srpm-macros.spec: bump RPM release 2023-02-08 18:11:55 +01:00
kmod.attr Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
kmodtool Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
macros.kernel-srpm RHEL 9.0.0 Alpha bootstrap 2020-10-15 14:42:20 +02:00
macros.kmp Switch kmodtool-generated spec to internal dependency generator 2021-11-18 14:49:04 +01:00
modalias.attr Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
modalias.prov modalias.prov: stricter module aliase/version mangling 2021-11-18 14:50:11 +01:00
provided_ksyms.attr Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
required_ksyms.attr Add zstd kmod compression support 2021-11-18 14:50:11 +01:00
rpmsort rpmsort: update the FSF address 2021-11-18 14:50:11 +01: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

README.md

kernel-srpm-macros

The kernel-srpm-macros package