[PATCH 0/2] kbuild: rpm-pkg: Address -debuginfo build regression with RPM < 4.20.0

From: Nathan Chancellor

Date: Tue Feb 10 2026 - 02:05:16 EST


Steve reported a build issue with commit 62089b804895 ("kbuild: rpm-pkg:
Generate debuginfo package manually") on RHEL9, which has an older
version of RPM than what I tested. Turns out that RPM 4.20.0 fixed an
issue with specifying %files for a -debuginfo subpackage.

The first patch restricts the new -debuginfo package generation process
to CONFIG_MODULE_SIG=y and RPM >= 4.20.0 to ensure it is actually
necessary and working. The second patch restores the original -debuginfo
package generation process from commit a7c699d090a1 ("kbuild: rpm-pkg:
build a debuginfo RPM") when CONFIG_MODULE_SIG is disabled to keep the
-debuginfo package around for older versions of RPM.

---
Nathan Chancellor (2):
kbuild: rpm-pkg: Restrict manual debug package creation
kernel: rpm-pkg: Restore find-debuginfo.sh approach to -debuginfo package

scripts/package/kernel.spec | 57 +++++++++++++++++++++++++++++++++++++++------
scripts/package/mkspec | 38 +++++++++++++++++++++++++++---
2 files changed, 85 insertions(+), 10 deletions(-)
---
base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
change-id: 20260209-kbuild-fix-debuginfo-rpm-718f81dbcaa6

Best regards,
--
Nathan Chancellor <nathan@xxxxxxxxxx>