Skip to content

Commit c90b3bb

Browse files
committed
kbuild: rpm-pkg: remove kernel-drm PROVIDES
This code was added more than 20 years ago. [1] I checked the kernel spec files in Fedora and OpenSUSE, but did not see 'kernel-drm'. I do not know if there exists a distro that uses it in RPM dependency. Remove this, and let's see if somebody complains about it. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=6d956df7d6b716b28c910c4f5b360c4d44d96c4d Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org>
1 parent 1d29b4c commit c90b3bb

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

scripts/package/mkspec

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ else
2828
M=DEL
2929
fi
3030

31-
if grep -q CONFIG_DRM=y include/config/auto.conf; then
32-
PROVIDES=kernel-drm
33-
fi
34-
35-
PROVIDES="$PROVIDES kernel-$KERNELRELEASE"
3631
__KERNELRELEASE=$(echo $KERNELRELEASE | sed -e "s/-/_/g")
3732
EXCLUDES="$RCS_TAR_IGNORE --exclude=*vmlinux* --exclude=*.mod \
3833
--exclude=*.o --exclude=*.ko --exclude=*.cmd --exclude=Documentation \
@@ -55,7 +50,7 @@ sed -e '/^DEL/d' -e 's/^\t*//' <<EOF
5550
$S Source0: linux.tar.gz
5651
$S Source1: config
5752
$S Source2: diff.patch
58-
Provides: $PROVIDES
53+
Provides: kernel-$KERNELRELEASE
5954
$S BuildRequires: bc binutils bison dwarves
6055
$S BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
6156
$S BuildRequires: gcc make openssl openssl-devel perl python3 rsync

0 commit comments

Comments
 (0)