mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
kbuild: rpm-pkg: Disable automatic requires for manual debuginfo package
Stefano reports that after commit62089b8048("kbuild: rpm-pkg: Generate debuginfo package manually"), building with an rpm package using rpm 4.20.0 fails with: RPM build errors: Dependency tokens must begin with alpha-numeric, '_' or '/': #�) = 0x0d000002 Dependency tokens must begin with alpha-numeric, '_' or '/': �) = 0x0d000000 Dependency tokens must begin with alpha-numeric, '_' or '/': ) = 0x7c0e000000 Unknown rich dependency op 'Hat': (Red Hat 15.2.1-7)) = 0x3130363230322000 Unknown rich dependency op 'Hat': (Red Hat 15.2.1-7)) = 0x4728203a43434800 Unknown rich dependency op 'Hat': (Red Hat 15.2.1-7)) = 0x3130363230322000 Unknown rich dependency op 'Hat': (Red Hat 15.2.1-7)) = 0x4728203a43434800 This error comes from the automatic requirements feature of rpm. The -debuginfo subpackage has no dependencies, so disable this feature with 'AutoReq: 0' for this subpackage, avoiding the error. This matches the official %_debug_template macro that rpm provides. While automatic provides should be default enabled, be explicit like %_debug_template does. Additionally, while in the area, add the manual debug information package to the Development/Debug group, further aligning with %_debug_template. Cc: stable@vger.kernel.org Fixes:62089b8048("kbuild: rpm-pkg: Generate debuginfo package manually") Reported-by: Stefano Garzarella <sgarzare@redhat.com> Closes: https://lore.kernel.org/CAGxU2F7FFNgb781_A7a1oL63n9Oy8wsyWceKhUpeZ6mLk=focw@mail.gmail.com/ Tested-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://patch.msgid.link/20260216-improve-manual-debuginfo-template-v1-1-e584b3f8d3be@kernel.org Signed-off-by: Nathan Chancellor <nathan@kernel.org>
This commit is contained in:
parent
afdfb71c01
commit
f94711255a
1 changed files with 3 additions and 0 deletions
|
|
@ -48,6 +48,9 @@ against the %{version} kernel package.
|
|||
%if %{with_debuginfo_manual}
|
||||
%package debuginfo
|
||||
Summary: Debug information package for the Linux kernel
|
||||
Group: Development/Debug
|
||||
AutoReq: 0
|
||||
AutoProv: 1
|
||||
%description debuginfo
|
||||
This package provides debug information for the kernel image and modules from the
|
||||
%{version} package.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue