Skip to content

Commit

Permalink
kbuild: rpm-pkg: make sure to have versioned 'Obsoletes' for kernel.spec
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
aquini authored and masahir0y committed Jul 15, 2024
1 parent 7308bf8 commit e61b190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/package/kernel.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e61b190

Please sign in to comment.