teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame 0001-Exclude-kernel-modules-from-ELF-dependency-generatio.patch

Panu Matilainen 1cb2ce
From 3103d307063c71ff7791c2a59aacd41cfa05285c Mon Sep 17 00:00:00 2001
Panu Matilainen 1cb2ce
Message-Id: <3103d307063c71ff7791c2a59aacd41cfa05285c.1676544357.git.pmatilai@redhat.com>
Panu Matilainen 1cb2ce
From: Panu Matilainen <pmatilai@redhat.com>
Panu Matilainen 1cb2ce
Date: Thu, 16 Feb 2023 12:18:02 +0200
Panu Matilainen 1cb2ce
Subject: [PATCH 1/2] Exclude kernel modules from ELF dependency generation
Panu Matilainen 1cb2ce
Panu Matilainen 1cb2ce
The kernel modules are technically ELF DSO's but we only care about
Panu Matilainen 1cb2ce
library level dependencies which the kernel modules will never have, so
Panu Matilainen 1cb2ce
processing them is just waste of time.
Panu Matilainen 1cb2ce
Panu Matilainen 1cb2ce
This "regressed" when we dropped the "exeonly" flag from ELF in
Panu Matilainen 1cb2ce
commit 8901a6be1652519c4875436e29e0a663be0790b7.
Panu Matilainen 1cb2ce
---
Panu Matilainen 1cb2ce
 fileattrs/elf.attr | 1 +
Panu Matilainen 1cb2ce
 1 file changed, 1 insertion(+)
Panu Matilainen 1cb2ce
Panu Matilainen 1cb2ce
diff --git a/fileattrs/elf.attr b/fileattrs/elf.attr
Panu Matilainen 1cb2ce
index 58322d3cd..21bc471b0 100644
Panu Matilainen 1cb2ce
--- a/fileattrs/elf.attr
Panu Matilainen 1cb2ce
+++ b/fileattrs/elf.attr
Panu Matilainen 1cb2ce
@@ -1,3 +1,4 @@
Panu Matilainen 1cb2ce
 %__elf_provides		%{_rpmconfigdir}/elfdeps --provides
Panu Matilainen 1cb2ce
 %__elf_requires		%{_rpmconfigdir}/elfdeps --requires
Panu Matilainen 1cb2ce
 %__elf_magic		^(setuid,? )?(setgid,? )?(sticky )?ELF (32|64)-bit.*$
Panu Matilainen 1cb2ce
+%__elf_exclude_path	^/lib/modules/.*\.ko?(\.[[:alnum:]]*)$
Panu Matilainen 1cb2ce
-- 
Panu Matilainen 1cb2ce
2.39.1
Panu Matilainen 1cb2ce