From nobody Fri Apr 3 03:04:56 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECD0A2EB87D; Mon, 16 Feb 2026 23:30:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771284602; cv=none; b=SWKIJWGYweX8eiq77AowXwT++5f7j8vzUonClEYMXTcp3fTSTPB97YkZKf7YzaKHJaoxrAwMUZYEcgLCOfKXpthf4jOA49nRp8hZwr46V/5s6vDQSAxEZ8dFyA5HQgOMSGtQeezg4/qjkBSuREUVdsYM+q7vXblf/MVPdValeFU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771284602; c=relaxed/simple; bh=zJni9qH/aXdFgGEL8tygAGQGCbtksHU+HEbi5M5fT7Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Ysh4kxIaqr54QfxUPf9WmsAK4tWsSjFNCou6KLwMns2r33BZhcvbzw9cvkM3rqiGTBzP0911XfKnTxjvWfjgSGwRDkBLyefh85FlS7r7/3jATH9ZuhXYDFK0omgxY6/FySyWwIfJCzpmCnQ3GZh5Z6xkh8l2UzaSn6EfW9X47wg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bnFEokJW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bnFEokJW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2192FC116C6; Mon, 16 Feb 2026 23:29:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771284601; bh=zJni9qH/aXdFgGEL8tygAGQGCbtksHU+HEbi5M5fT7Y=; h=From:Date:Subject:To:Cc:From; b=bnFEokJWobDiDZXIc48kqdT7LLlAchC14mQP3yNjJx1EzCW+D9GS7jy4dSrxBqMYB sEtqQVfvWBQjBgf6uyJYTNY2kyqzEK/Bd/X8wX9G7sGpR0MMLqXp2Lo16gR219sVeQ 7bGhCgznvKChlq0FMdvIsSqWC4/dZA472uIDsIAy9QymW9tEpx9FN5N+zeFgrmUe2b hZmutSxbl3vl3XmDWzKWlUlM7YaqjGzqLYho5O5TnaXYCjRGPEB8mVc9Z8iKNN5OFa 7zGfbCqyx5FS3Xcw7chxHU8s13SqHNXSjGhQdVSRUm5wZA4E6BmNZglz10DJNu7JT5 1DVTvKIWdN8HQ== From: Nathan Chancellor Date: Mon, 16 Feb 2026 16:29:54 -0700 Subject: [PATCH] kbuild: rpm-pkg: Disable automatic requires for manual debuginfo package Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260216-improve-manual-debuginfo-template-v1-1-e584b3f8d3be@kernel.org> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXNywrCMBBA0V8ps3agjVLEXxEXmXRSR5oHeRSh9 N+N7fJs7t0gcxLO8Og2SLxKluAbhksH5q39zChTM6hejb0aRhQXU1gZnfZVLzgx1Vm8DVjYxUU XRrJ0tbe7MooMtE5MbOV7PJ6v07nSh035h2Hff0Ae0ImFAAAA X-Change-ID: 20260216-improve-manual-debuginfo-template-bfb3f482c2bc To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Stefano Garzarella X-Mailer: b4 0.15-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2467; i=nathan@kernel.org; h=from:subject:message-id; bh=zJni9qH/aXdFgGEL8tygAGQGCbtksHU+HEbi5M5fT7Y=; b=owGbwMvMwCUmm602sfCA1DTG02pJDJmTV5RXaJo+3DlFSfEl18NaTr7bxnEirB33XE9f8H3p0 PxwlfzxjlIWBjEuBlkxRZbqx6rHDQ3nnGW8cWoSzBxWJpAhDFycAjCRpL0M/0wqXs/I7ZiXsY5f NSlaxCPLkvlkurGD5fMNArfTXf5/OsXIsHx+8ZSJmu3XDOplxQ4J3o2YkxWoWcpmsOL41r01PzJ OMAMA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 Stefano reports that after commit 62089b804895 ("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 '/': #=EF=BF= =BD) =3D 0x0d000002 Dependency tokens must begin with alpha-numeric, '_' or '/': =EF=BF= =BD) =3D 0x0d000000 Dependency tokens must begin with alpha-numeric, '_' or '/': ) =3D 0x= 7c0e000000 Unknown rich dependency op 'Hat': (Red Hat 15.2.1-7)) =3D 0x313036323= 0322000 Unknown rich dependency op 'Hat': (Red Hat 15.2.1-7)) =3D 0x4728203a4= 3434800 Unknown rich dependency op 'Hat': (Red Hat 15.2.1-7)) =3D 0x313036323= 0322000 Unknown rich dependency op 'Hat': (Red Hat 15.2.1-7)) =3D 0x4728203a4= 3434800 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: 62089b804895 ("kbuild: rpm-pkg: Generate debuginfo package manually") Reported-by: Stefano Garzarella Closes: https://lore.kernel.org/CAGxU2F7FFNgb781_A7a1oL63n9Oy8wsyWceKhUpeZ6= mLk=3Dfocw@mail.gmail.com/ Tested-by: Stefano Garzarella Signed-off-by: Nathan Chancellor --- scripts/package/kernel.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index bccf58bdd45f..b3c956205af0 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -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 f= rom the %{version} package. --- base-commit: afdfb71c018e9a0aa2e51fb8186d3fb1acdd3f0e change-id: 20260216-improve-manual-debuginfo-template-bfb3f482c2bc Best regards, -- =20 Nathan Chancellor