summaryrefslogtreecommitdiff
path: root/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 03:41:30 +0100
commit623ee73d661e5ed8475cb264511f683407d87365 (patch)
tree993eb27c93ec7a2d2d19550300d888fc1fed9e69 /sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild
parentceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff)
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild')
-rw-r--r--sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild b/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild
index e9b31fc3584d..aebf0d373c10 100644
--- a/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild
+++ b/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019 Gentoo Authors
+# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -16,10 +16,6 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="virtual/linux-sources"
-PATCHES=(
- "${FILESDIR}/rts_pstor-makefile.patch"
- "${FILESDIR}/fix-compile-kernel-5.0.0.patch"
-)
S="${WORKDIR}/RTS5209-linux-driver-${GIT_COMMIT}"
MODULE_NAMES="rts_pstor(misc/drivers/scsi)"
@@ -29,8 +25,16 @@ MODULESD_RTS_PSTOR_ADDITIONS=(
)
BUILD_TARGETS="default"
BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
-CONFIG_CHECK="~!MISC_RTSX_PCI"
+CONFIG_CHECK="~!MISC_RTSX_PCI !FORTIFY_SOURCE"
ERROR_MISC_RTSX_PCI="CONFIG_MISC_RTSX_PCI: The in-kernel driver rtsx_pci is configured, which may have the same functionality than this driver. To make sure that your kernel loads only rts_pstor, the rtsx_pci module will be blacklisted."
+ERROR_FORTIFY_SOURCE="CONFIG_FORTIFY_SOURCE: this module is known to fail compiling when the hardening option CONFIG_FORTIFY_SOURCE is set"
+
+src_prepare() {
+ default
+
+ eapply "${FILESDIR}/fix-compile-kernel-5.0.0.patch"
+ kernel_is le 5 0 && eapply "${FILESDIR}/rts_pstor-makefile.patch" || eapply "${FILESDIR}/rts_pstor-makefile-kernel-5.1.patch"
+}
pkg_postinst() {
elog "This driver is based on code published by Realtek. There is a driver in the kernel named rtsx_pci which"