]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
kbuild: rpm-pkg: make sure to have versioned 'Obsoletes' for kernel.spec
authorRafael Aquini <aquini@redhat.com>
Tue, 11 Jun 2024 21:11:21 +0000 (17:11 -0400)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Jul 2024 16:08:37 +0000 (01:08 +0900)
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>
scripts/package/kernel.spec

index fffc8af8deb17499d2f0d35dad884dfd0dd096c4..4b7df76076c4a0347f4d667e22b31512f560a1a2 100644 (file)
@@ -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