Re: [PATCH] kbuild: rpm-pkg: Generate debuginfo package manually

From: Nicolas Schier

Date: Wed Jan 28 2026 - 06:28:04 EST


On Wed, 21 Jan 2026 15:29:15 -0700, Nathan Chancellor wrote:
> 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.
>
> [...]

Applied to kbuild/linux.git (kbuild-fixes-unstable), thanks!

[1/1] kbuild: rpm-pkg: Generate debuginfo package manually
https://git.kernel.org/kbuild/c/62089b80

Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped,
reverted or modified (e.g. trailers). Patches applied to the
kbuild-fixes-unstable branch are accepted pending wider testing in
linux-next and any post-commit review; they will generally be moved
to the kbuild-fixes branch in a week if no issues are found.

Best regards,
--
Nicolas