* install.sh: RPM: add install deps * install.sh: Fedora: remove fedora 32 code path too old by now * DEB: add dependencies * install.sh: do not install libc-dev package I don't remember why I had to keep it, but I just tried installing only the image and headers and nvidia-dkms installed just fine Closes: #772 #732 * prepare: disable CONFIG_LOCALVERSION_AUTO Closes: #729 * install.sh: gentoo: do not do initramfs and booloader config it's done directly by the kernel-install script called by make install, which gets changed in gentoo to do what needs to be done * patches: fix RPM patches for 6.4 and 6.5
40 lines
1.6 KiB
Diff
40 lines
1.6 KiB
Diff
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
|
|
index 8049f0e2c..de170760d 100755
|
|
--- a/scripts/package/mkspec
|
|
+++ b/scripts/package/mkspec
|
|
@@ -53,2 +53,3 @@ $S Source2: diff.patch
|
|
Provides: kernel-$KERNELRELEASE
|
|
+ Provides: kernel-uname-r = %{version}
|
|
$S BuildRequires: bc binutils bison dwarves
|
|
@@ -69,4 +70,4 @@ $S BuildRequires: gcc make openssl openssl-devel perl python3 rsync
|
|
Group: Development/System
|
|
- Obsoletes: kernel-headers
|
|
Provides: kernel-headers = %{version}
|
|
+ Provides: installonlypkg(kernel) = %{version}
|
|
%description headers
|
|
@@ -81,2 +82,5 @@ $S$M Summary: Development package for building kernel modules to match the $__KE
|
|
$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}
|
|
$S$M AutoReqProv: no
|
|
@@ -86,2 +90,18 @@ $S$M against the $__KERNELRELEASE kernel package.
|
|
$S$M
|
|
+$S # Opt out of a lot of Fedora hardening flags etc...
|
|
+$S # See https://src.fedoraproject.org/rpms/redhat-rpm-config//blob/rawhide/f/buildflags.md
|
|
+$S %undefine _package_note_file
|
|
+$S %undefine _auto_set_build_flags
|
|
+$S %undefine _include_frame_pointers
|
|
+$S %define _build_id_flags -Wl,--build-id=none
|
|
+$S %undefine _annotated_build
|
|
+$S %undefine _fortify_level
|
|
+$S %undefine _hardened_build
|
|
+$S %global _lto_cflags %{nil}
|
|
+$S %global _configure_gnuconfig_hack 0
|
|
+$S %global _configure_libtool_hardening_hack 0
|
|
+$S # Nearly had to go to the deep web to find documentation on this one... Gosh
|
|
+$S # See https://github.com/rpm-software-management/rpm/blob/master/macros.in#L471
|
|
+$S %define _build_id_links none
|
|
+$S
|
|
$S %prep
|