]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild: rpm-pkg: Generate debuginfo package manually
authorNathan Chancellor <nathan@kernel.org>
Wed, 21 Jan 2026 22:29:15 +0000 (15:29 -0700)
committerNicolas Schier <nsc@kernel.org>
Wed, 28 Jan 2026 10:51:24 +0000 (11:51 +0100)
commit62089b804895e845f82e132ea9d46a1fc53ed5a7
treeab8d0188fe5d002d9dffdcabb81bbcd188b57a62
parent63804fed149a6750ffd28610c5c1c98cce6bd377
kbuild: rpm-pkg: Generate debuginfo package manually

Commit a7c699d090a1 ("kbuild: rpm-pkg: build a debuginfo RPM") adjusted
the __spec_install_post macro to include __os_install_post, which runs
brp-strip. This ends up stripping module signatures, breaking loading
modules with lockdown enabled.

Undo most of the changes of the aforementioned debuginfo patch and
mirror commit 16c36f8864e3 ("kbuild: deb-pkg: use build ID instead of
debug link for dbg package") in kernel.spec to generate a functionally
equivalent debuginfo package while avoiding touching the modules after
they have already been signed during modules_install.

Fixes: a7c699d090a1 ("kbuild: rpm-pkg: build a debuginfo RPM")
Reported-by: Holger Kiehl <Holger.Kiehl@dwd.de>
Closes: https://lore.kernel.org/68c375f6-e07e-fec-434d-6a45a4f1390@praktifix.dwd.de/
Tested-by: Holger Kiehl <Holger.Kiehl@dwd.de>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20260121-fix-module-signing-binrpm-pkg-v1-1-8fc5832b6cbc@kernel.org
Signed-off-by: Nicolas Schier <nsc@kernel.org>
scripts/package/kernel.spec