Check for symvers.xz support in addition to symvers.gz,
due to unnanounced unilateral change[1][2] in the kernel packaging.
[1] 2644665657
[2] 2db77a072a
* weak-modules (make_kernel_file_names): Interpret all arguments after
the second as a list of suffixes, iterate over them
(find_kernel_file): Switch print and suffix arguments, interpret all
argument after print as suffixes, pass them to make_kernel_file_names.
(find_symvers_file): Update the order of arguments in the
find_kernel_file call, add .xz suffix in addition to .gz.
(find_systemmap_file): Update the order of arguments in the
find_kernel_file call.
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
References: https://bugzilla.redhat.com/show_bug.cgi?id=2192895
This allows experiments to be run with reducing the size of the
initramfs by having fewer bulky shared libraries in it, and also makes
it easier for downstream distributions to make different configuration
choices.
We keep the defaults the same, building *with* all of these in order to
not change what is practically being built in Fedora.
Signed-off-by: Stewart Smith <trawets@amazon.com>
- README was removed in order to keep only README.md. Update the spec.
- Resolves: rhbz#2102796
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
The debug messages pretty often are useful to find configuration
problems on customers systems. They are seen only with extra verbose
command line switches so should not affect performance a lot.
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
Coverity reports warning
`warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.`
This cannot happen in case of weak-modules, but makes no harm.
Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Coverity reports warning for splitting mods=($i)
`Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.`
Even if it can not cause problems for weak-modules case where the
list is coming from modules.dep, use the recommended read -a method.
Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
External modules packaging depends on the search order provided by
RHEL default config which is missing now from CentOS Stream.
Add and install the file.
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
Generally speaking, weak-modules is going to be of no use to anyone,
since the stabilized kABI is a unique property that only exists
with the Red Hat Enterprise Linux distribution kernel.
To avoid issues with downstreams, flip the conditional so that it
is explicit that this is only useful for RHEL.
This conditional impacts the whole spec, and generally these things
are at the top of the spec to make it clear and avoid random scoping
issues at spec parse time.
Fedora does not support CONFIG_MODVERSIONS, as we have no guarantee of
KABI. With this in mind, the weak-modules script adds no benefit to
Fedora, but it can cause serious issues with update times on major
kernel rebases, and with dkms. This patch removes the script from
Fedora, but leaves it in place for ELN/CentOS/RHEL, etc.
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
- Updated URL to current (shorter URL and HTTPS)
- Removed superfluous slash for %{_mandir} path
- Removed superfluous /sbin (only %{_sbindir} is used)
- Preserve timestamp when installing weak-modules(1)