Re: [PATCH 0/2] kbuild: rpm-pkg: Address -debuginfo build regression with RPM < 4.20.0
From: Nathan Chancellor
Date: Mon Feb 16 2026 - 06:42:43 EST
On Mon, Feb 16, 2026 at 09:25:25AM +0100, Stefano Garzarella wrote:
> Oh, yeah, I just tried the following change on top of commit cee73b1e840c
> ("Merge tag 'riscv-for-linus-7.0-mw1' of
> git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux"), so without this
> series applied:
>
> diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec
> index 0f1c8de1bd95..86ca327ebccf 100644
> --- a/scripts/package/kernel.spec
> +++ b/scripts/package/kernel.spec
> @@ -50,6 +50,7 @@ against the %{version} kernel package.
> %if %{with_debuginfo}
> %package debuginfo
> Summary: Debug information package for the Linux kernel
> +AutoReqProv: no
> %description debuginfo
> This package provides debug information for the kernel image and modules from the
> %{version} package.
>
> And I'm able to generate RPMs too without errors!
Great, thanks for confirming! Does it still work with:
AutoReq: 0
AutoProv: 1
as I notice that is what the %_debuginfo_template in /usr/lib/rpm/macros
uses by default. I suspect that the automatic requires is where things
explodes and I think we do want the automatic provides because I believe
that is how the "this package provides this debug build ID" generation
happens.
Cheers,
Nathan