Commit Graph

131 Commits

Author SHA1 Message Date
Troy Dawson
ec1e060e0a Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
2024-10-29 08:39:06 -07:00
Eugene Syromiatnikov
aa7757c4af weak-modules: fix incorrect dispatch on symvers file extension
* weak-modules (validate_weak_links): Switch on "$symvers_name"
and not "$symvers".
* kmod.spec (Release): Bump to 9.
(%changelog): Add a record.

Resolves: RHEL-61133
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2024-10-01 12:59:19 +02:00
Eugene Syromiatnikov
0a4563dfa8 Fix issues discovered by static analysis
Apply a patch that fixes a reported issue:
 - v33~1 "libkmod: avoid undefined behaviour in libkmod-builtin.c:get_string"

* 0001-libkmod-avoid-undefined-behaviour-in-libkmod-builtin.patch: New
file.
* kmod.spec (Release): Bump to 8.
(Patch2): New patch.
(%changelog): New record.

Resolves: RHEL-44931
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2024-08-16 15:30:21 +02:00
Aleksandra Fedorova
33ce2e73d6 Add RHEL gating configuration
Related: rhbz#1985100
2024-08-12 16:26:15 +02:00
Eugene Syromiatnikov
8fa8d8c0bc weak-modules: use a proper program for dumping symvers
Previously it was assumed that symvers is in gzip format, which
is no longer the case, so zcat was used.  Dispatch based on the symvers
file extension.

Resolves: RHEL-39388
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2024-08-12 16:12:00 +02:00
Troy Dawson
46ee314b94 Bump release for June 2024 mass rebuild 2024-06-24 08:53:45 -07:00
Fedora Release Engineering
bac67d1d74 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 00:42:55 +00:00
Fedora Release Engineering
b335496724 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 01:06:54 +00:00
Eugene Syromiatnikov
c63e20debb kmod.spec: update the License in an attempt to comply with the new policy
* kmod.spec (Release): Bump to 3.
(License): Update to include all licenses mentioned in the sources,
add a comment that lists files for each license.
(%package libs): Remove the License tag.
(%changelog): Add "migrated to SPDX license" mention.

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2023-12-01 18:30:54 +01:00
Josh Boyer
2d51006e98 Add upstream patches to enable SHA3 support
New upstream v31
Resolves: rhbz#2241394
2023-11-09 11:39:43 -05:00
Josh Boyer
15b926cdb7 New upstream v31
Resolves: rhbz#2241394
2023-11-09 09:01:37 -05:00
Fedora Release Engineering
389eca78ce Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 09:22:57 +00:00
Eugene Syromiatnikov
b215525d80 packaging: bump up version, 30-5
- Add symvers.xz support to weak-modules

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2023-05-09 09:54:35 +02:00
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