diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2023-02-16 12:18:02 +0200 |
---|---|---|
committer | Michal Domonkos <mdomonko@redhat.com> | 2023-03-13 15:32:25 +0100 |
commit | 4d866dce3454989348fe5527f2051c8323f056ac (patch) | |
tree | 6ed8142acfbf933d21e92be9c5b9df51b95fbd26 | |
parent | c187c29a394ace01e1ed929450c1a4ee9df74456 (diff) | |
download | rpm-4d866dce3454989348fe5527f2051c8323f056ac.tar.gz |
Exclude kernel modules from ELF dependency generation
The kernel modules are technically ELF DSO's but we only care about
library level dependencies which the kernel modules will never have, so
processing them is just waste of time.
This "regressed" when we dropped the "exeonly" flag from ELF in
commit 8901a6be1652519c4875436e29e0a663be0790b7.
(cherry picked from commit 91467e715769e8ef0b1dafce288e9313aca41bb4)
-rw-r--r-- | fileattrs/elf.attr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fileattrs/elf.attr b/fileattrs/elf.attr index 58322d3cd..21bc471b0 100644 --- a/fileattrs/elf.attr +++ b/fileattrs/elf.attr @@ -1,3 +1,4 @@ %__elf_provides %{_rpmconfigdir}/elfdeps --provides %__elf_requires %{_rpmconfigdir}/elfdeps --requires %__elf_magic ^(setuid,? )?(setgid,? )?(sticky )?ELF (32|64)-bit.*$ +%__elf_exclude_path ^/lib/modules/.*\.ko?(\.[[:alnum:]]*)$ |