From: Avi Kivity <avi@lists.scylladb.com>
To: linux-kbuild@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH v1] kbuild: rpm-pkg: provide kernel{-devel}-uname-r
Date: Wed, 15 Apr 2026 00:04:57 +0300 [thread overview]
Message-ID: <20260414210457.41675-1-avi@lists.scylladb.com> (raw)
From: Avi Kivity <avi@scylladb.com>
Fedora kernels provide, and the akmods external module build tools
expect, kernel-devel-uname-r virtual packages. To improve the life
of those who depend on akmods, do the same with the kernel's RPM
packages.
Assisted-by: OpenCode:claude-opus-4.6
Signed-off-by: Avi Kivity <avi@scylladb.com>
---
scripts/package/kernel.spec | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec
index b3c956205af00..dcb04c1e7e8ef 100644
--- a/scripts/package/kernel.spec
+++ b/scripts/package/kernel.spec
@@ -13,10 +13,11 @@ Vendor: The Linux Community
URL: https://www.kernel.org
Source0: linux.tar.gz
Source1: config
Source2: diff.patch
Provides: kernel-%{KERNELRELEASE}
+Provides: kernel-uname-r = %{KERNELRELEASE}
BuildRequires: bc binutils bison dwarves
BuildRequires: (elfutils-devel or libdw-devel)
BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
BuildRequires: gcc make openssl openssl-devel perl python3 rsync
@@ -38,10 +39,11 @@ glibc package.
%if %{with_devel}
%package devel
Summary: Development package for building kernel modules to match the %{version} kernel
Group: System Environment/Kernel
AutoReqProv: no
+Provides: kernel-devel-uname-r = %{KERNELRELEASE}
%description -n kernel-devel
This package provides kernel headers and makefiles sufficient to build modules
against the %{version} kernel package.
%endif
--
2.53.0
next reply other threads:[~2026-04-14 21:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 21:04 Avi Kivity [this message]
2026-04-29 22:58 ` Nathan Chancellor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260414210457.41675-1-avi@lists.scylladb.com \
--to=avi@lists.scylladb.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®