summaryrefslogtreecommitdiffstats
path: root/scripts/package
diff options
context:
space:
mode:
authorRafael Aquini <aquini@redhat.com>2024-06-11 23:11:21 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-15 18:08:37 +0200
commite61b190b1a273201bf8a4169fb52e54b633f5349 (patch)
tree2b8aac617063f32426b451da7bd575fba4b86bca /scripts/package
parentmodpost: Enable section warning from *driver to .exit.text (diff)
downloadlinux-e61b190b1a273201bf8a4169fb52e54b633f5349.tar.xz
linux-e61b190b1a273201bf8a4169fb52e54b633f5349.zip
kbuild: rpm-pkg: make sure to have versioned 'Obsoletes' for kernel.spec
Fix the following rpmbuild warning: $ make srcrpm-pkg ... RPM build warnings: line 34: It's not recommended to have unversioned Obsoletes: Obsoletes: kernel-headers Signed-off-by: Rafael Aquini <aquini@redhat.com> Tested-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/package')
-rw-r--r--scripts/package/kernel.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec
index fffc8af8deb1..4b7df76076c4 100644
--- a/scripts/package/kernel.spec
+++ b/scripts/package/kernel.spec
@@ -27,7 +27,7 @@ The Linux Kernel, the operating system core itself
%package headers
Summary: Header files for the Linux kernel for use by glibc
Group: Development/System
-Obsoletes: kernel-headers
+Obsoletes: kernel-headers < %{version}
Provides: kernel-headers = %{version}
%description headers
Kernel-headers includes the C header files that specify the interface