Commit Graph

118 Commits

Author SHA1 Message Date
Eugene Syromiatnikov
2f9252cb9e weak-modules: add symvers.xz support
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
2023-05-09 09:11:45 +02:00
Fedora Release Engineering
351c275048 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 14:58:10 +00:00
Florian Weimer
5a0a5922f1 Port configure script to C99
Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2022-12-17 18:20:55 +01:00
Fedora Release Engineering
35cb0afc6a Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 16:27:22 +00:00
Stewart Smith
73532e3bda Move zlib, xz, and zstd to bcond
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>
2022-06-27 19:38:16 -04:00
Yauheni Kaliuta
095680a70d New upstream release (v30)
- README was removed in order to keep only README.md. Update the spec.
- Resolves: rhbz#2102796

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2022-07-04 15:53:07 +03:00
Fedora Release Engineering
22122f8f4f - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 15:00:31 +00:00
Sahana Prasad
7b3a5b1282 Rebuilt with OpenSSL 3.0.0 2021-09-14 19:05:21 +02:00
Yauheni Kaliuta
43ea30869b sources: update again
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2021-08-11 10:29:45 +03:00
Yauheni Kaliuta
d00681e454 depmod.dist.conf: commit to git
koji still complains. Commit it to git like weak-modules.

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2021-08-11 10:25:12 +03:00
Yauheni Kaliuta
be3d947ed1 sources: updated depmod.conf.dist
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2021-08-11 10:18:42 +03:00
Yauheni Kaliuta
2e0ab6c0a5 sources: updated kmod-29.tar.xz
koji complained, that the file is not found.

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2021-08-11 10:07:49 +03:00
Yauheni Kaliuta
37c97fb6a8 fedpkg new-source: commit modified files
.gitignore
sources

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2021-08-11 09:53:59 +03:00
Yauheni Kaliuta
f4aad01fe7 packaging: bump up version, 29-5
- kmod.spec: enable debug
- weak-modules: compare_initramfs_modules: exit on pushd/popd failures
- weak-modules: split modules into array with read -a
- Add default config file, /etc/depmod.d/dist.conf

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2021-08-10 16:14:30 +03:00
Yauheni Kaliuta
0b10b0482b kmod.spec: enable debug
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>
2021-08-10 16:09:15 +03:00
Yauheni Kaliuta
2679f21c98 weak-modules: compare_initramfs_modules: exit on pushd/popd failures
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>
2021-08-10 16:03:41 +03:00
Yauheni Kaliuta
50733019f1 weak-modules: split modules into array with read -a
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>
2021-08-10 16:03:34 +03:00
Yauheni Kaliuta
35bc85d1e4 Add default config file, /etc/depmod.d/dist.conf
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>
2021-08-10 13:04:55 +03:00
Fedora Release Engineering
6aa03ba354 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 10:14:32 +00:00
a81e15debb Fix conditional to only install weak-modules for RHEL
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.
2021-06-08 06:45:19 -04:00
59975932b8 Move the conditional the top to clarify its scope
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.
2021-06-08 06:27:02 -04:00
Justin M. Forbes
629ab3ccc2
Rebuild for weak-modules drop in Fedora
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
2021-05-25 07:37:32 -05:00
Justin M. Forbes
43ae298bc9
Remove weak-modules from kmod in Fedora
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>
2021-05-24 12:46:42 -05:00
Josh Boyer
7c1c60b960 New upstream v29
Resolves: rhbz#1962980
2021-05-21 08:31:17 -04:00
Robert Scheck
93a23f7391 Spec file cleanup
- 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)
2021-01-30 23:47:20 +01:00
Fedora Release Engineering
406582dd73 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 15:58:53 +00:00
Josh Boyer
393f16a127 New upstream v28
Enable zstd support
Resolves: rhbz#1913949
2021-01-07 19:31:43 -05:00
Tom Stellard
b6296f9ad3 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-04 22:48:43 +00:00
Fedora Release Engineering
bddd48bb1f - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 03:32:01 +00:00
Yauheni Kaliuta
2a32527449 fix crash on fseek/ftell of stdout, try 2 (27-2)
- add 0001-depmod-do-not-output-.bin-to-stdout.patch
  Resolves: rhbz#1808430

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2020-03-25 14:04:16 +02:00
Yauheni Kaliuta
176e965223 Revert "fix crash on fseek/ftell of stdout (27-2)"
This reverts commit f1da57f289.

The commit is broken

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2020-03-25 10:02:38 +02:00
Yauheni Kaliuta
f1da57f289 fix crash on fseek/ftell of stdout (27-2)
- add 0001-depmod-do-not-output-.bin-to-stdout.patch
  Resolves: rhbz#1808430

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2020-03-25 09:55:48 +02:00
Peter Robinson
1988940ee7 v27 2020-02-20 11:35:04 +00:00
Peter Robinson
ed503860f1 minor spec cleanups and modernisation 2020-01-22 17:45:25 +00:00
Yauheni Kaliuta
afdb88d8b3 packaging: bump up version, 26-5
- weak-modules: sync with RHEL

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2020-01-20 18:58:12 +02:00
Yauheni Kaliuta
933fad99cb weak-modules: Sync with RHEL
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2020-01-20 18:56:21 +02:00
Laura Abbott
b006530fb5 weak-modules: Sync with RHEL
Signed-off-by: Laura Abbott <labbott@redhat.com>
2019-11-01 09:22:38 -04:00
Fedora Release Engineering
2c61399a4a - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 11:56:57 +00:00
Yauheni Kaliuta
df015fd4dc packaging: bump up version, 26-3
- weak-modules: sync with RHEL

Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2019-02-25 18:48:22 +02:00
Yauheni Kaliuta
559b043f51 weak-modules: sync with RHEL
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2019-02-25 15:10:47 +02:00
Yauheni Kaliuta
434a6d5d65 add PKCS7/openssl support (rhbz 1320921)
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2019-02-24 19:48:49 +02:00
Yauheni Kaliuta
b159b7c148 Update to version 26 (rhbz 1673749)
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2019-02-24 19:11:20 +02:00
Fedora Release Engineering
9f7b1db5d3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 05:52:28 +00:00
Igor Gnatenko
32fd52f37c Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:10 +01:00
Josh Boyer
43bb7bcca2 Bump for build 2018-10-30 06:44:08 -04:00
James Antill
2c9e5ae971 Remove ldconfig scriptlet, now done via. transfiletrigger in glibc. 2018-10-30 06:42:21 -04:00
Yauheni Kaliuta
7acaebe897 Merge #4 CI: Add libkmod to tests. 2018-09-04 10:41:35 +00:00
Fedora Release Engineering
19d0c2fbaa - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 07:18:34 +00:00
Jason Tibbitts
d107c9fe8f Remove needless use of %defattr 2018-07-10 01:31:55 -05:00
Igor Gnatenko
93869890fd add BuildRequires: gcc
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
2018-07-09 19:06:47 +02:00