RPM build: Fix several issues (#610)
* RPM: fix the script that generates kernel.spec - Avoids conflicts with official kernels - Fixes the reported issues with "unversionned obsoletes" - Works now with akmod-nvidia Fixes: #609 #513 #375 #339 #375 #173 #271 Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> * install.sh: RPM: do not install kernel-headers package We do not need it to build out-of-tree kernel modules. And that's all we want actually. Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
This commit is contained in:
committed by
GitHub
parent
3bfe0af945
commit
1d063ca326
27
linux-tkg-patches/5.4/0013-fedora-rpm.patch
Normal file
27
linux-tkg-patches/5.4/0013-fedora-rpm.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
# Remove the obsoletes line in kernel-headers
|
||||
# Add provides for kernel-devel so there's no conflict
|
||||
# and fix akmod-nvidia
|
||||
|
||||
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
|
||||
index 7c477ca7d..1158f5559 100755
|
||||
--- a/scripts/package/mkspec
|
||||
+++ b/scripts/package/mkspec
|
||||
@@ -25,0 +26 @@ fi
|
||||
+PROVIDES_DRM=""
|
||||
@@ -27 +28 @@ if grep -q CONFIG_DRM=y .config; then
|
||||
- PROVIDES=kernel-drm
|
||||
+ PROVIDES_DRM="Provides: kernel-drm = %{version}"
|
||||
@@ -30 +30,0 @@ fi
|
||||
-PROVIDES="$PROVIDES kernel-$KERNELRELEASE"
|
||||
@@ -51 +51,3 @@ $S Source: kernel-$__KERNELRELEASE.tar.gz
|
||||
- Provides: $PROVIDES
|
||||
+ $PROVIDES_DRM
|
||||
+ Provides: kernel = %{version}
|
||||
+ Provides: installonlypkg(kernel) = %{version}
|
||||
@@ -61 +63 @@ $S Source: kernel-$__KERNELRELEASE.tar.gz
|
||||
- Obsoletes: kernel-headers
|
||||
+ Provides: installonlypkg(kernel) = %{version}
|
||||
@@ -72,0 +75,3 @@ $S$M Group: System Environment/Kernel
|
||||
+$S$M Provides: kernel-devel = %{version}
|
||||
+$S$M Provides: kernel-devel-uname-r = %{version}
|
||||
+$S$M Provides: installonlypkg(kernel) = %{version}
|
Reference in New Issue
Block a user