* [gentoo-commits] repo/gentoo:master commit in: sys-block/rts_pstor/, sys-block/rts_pstor/files/
@ 2015-09-17 5:34 Vikraman Choudhury
0 siblings, 0 replies; 2+ messages in thread
From: Vikraman Choudhury @ 2015-09-17 5:34 UTC (permalink / raw
To: gentoo-commits
commit: 3228822133e5f35922c0426418468d994aa02f89
Author: Vikraman Choudhury <vikraman <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 17 05:31:17 2015 +0000
Commit: Vikraman Choudhury <vikraman <AT> gentoo <DOT> org>
CommitDate: Thu Sep 17 05:31:17 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32288221
sys-block/rts_pstor: Fix build with kernel 4.2.0
Gentoo-Bug: 559668
Package-Manager: portage-2.2.20.1
sys-block/rts_pstor/files/rts_pstor-vmalloc.patch | 44 ++++++++++++++++++++++
...tor-1.10-r4.ebuild => rts_pstor-1.10-r5.ebuild} | 1 +
2 files changed, 45 insertions(+)
diff --git a/sys-block/rts_pstor/files/rts_pstor-vmalloc.patch b/sys-block/rts_pstor/files/rts_pstor-vmalloc.patch
new file mode 100644
index 0000000..3b3f4be
--- /dev/null
+++ b/sys-block/rts_pstor/files/rts_pstor-vmalloc.patch
@@ -0,0 +1,44 @@
+diff -Naur rts_pstor.a/ms.c rts_pstor.b/ms.c
+--- rts_pstor.a/ms.c 2011-01-11 04:11:07.000000000 -0500
++++ rts_pstor.b/ms.c 2015-09-17 01:28:41.816067799 -0400
+@@ -23,6 +23,7 @@
+ #include <linux/blkdev.h>
+ #include <linux/kthread.h>
+ #include <linux/sched.h>
++#include <linux/vmalloc.h>
+
+ #include "rtsx.h"
+ #include "rtsx_transport.h"
+diff -Naur rts_pstor.a/rtsx_chip.c rts_pstor.b/rtsx_chip.c
+--- rts_pstor.a/rtsx_chip.c 2011-01-11 04:11:07.000000000 -0500
++++ rts_pstor.b/rtsx_chip.c 2015-09-17 01:28:13.680536901 -0400
+@@ -24,6 +24,7 @@
+ #include <linux/kthread.h>
+ #include <linux/sched.h>
+ #include <linux/workqueue.h>
++#include <linux/vmalloc.h>
+
+ #include "rtsx.h"
+ #include "rtsx_transport.h"
+diff -Naur rts_pstor.a/rtsx_scsi.c rts_pstor.b/rtsx_scsi.c
+--- rts_pstor.a/rtsx_scsi.c 2011-01-11 04:11:07.000000000 -0500
++++ rts_pstor.b/rtsx_scsi.c 2015-09-17 01:28:42.688053259 -0400
+@@ -23,6 +23,7 @@
+ #include <linux/blkdev.h>
+ #include <linux/kthread.h>
+ #include <linux/sched.h>
++#include <linux/vmalloc.h>
+
+ #include "rtsx.h"
+ #include "rtsx_transport.h"
+diff -Naur rts_pstor.a/xd.c rts_pstor.b/xd.c
+--- rts_pstor.a/xd.c 2011-01-11 04:11:07.000000000 -0500
++++ rts_pstor.b/xd.c 2015-09-17 01:28:42.689053242 -0400
+@@ -23,6 +23,7 @@
+ #include <linux/blkdev.h>
+ #include <linux/kthread.h>
+ #include <linux/sched.h>
++#include <linux/vmalloc.h>
+
+ #include "rtsx.h"
+ #include "rtsx_transport.h"
diff --git a/sys-block/rts_pstor/rts_pstor-1.10-r4.ebuild b/sys-block/rts_pstor/rts_pstor-1.10-r5.ebuild
similarity index 96%
rename from sys-block/rts_pstor/rts_pstor-1.10-r4.ebuild
rename to sys-block/rts_pstor/rts_pstor-1.10-r5.ebuild
index c24eb58..91bcd74 100644
--- a/sys-block/rts_pstor/rts_pstor-1.10-r4.ebuild
+++ b/sys-block/rts_pstor/rts_pstor-1.10-r5.ebuild
@@ -30,6 +30,7 @@ src_prepare() {
&& epatch "${FILESDIR}/${PN}-linux-3.8.patch"
([ ${KV_MAJOR} -gt 3 ] || ([ ${KV_MAJOR} -eq 3 ] && [ ${KV_MINOR} -ge 10 ])) \
&& epatch "${FILESDIR}/${PN}-linux-3.10.patch"
+ epatch "${FILESDIR}/${PN}-vmalloc.patch"
}
pkg_setup() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sys-block/rts_pstor/, sys-block/rts_pstor/files/
@ 2020-03-09 5:55 Joonas Niilola
0 siblings, 0 replies; 2+ messages in thread
From: Joonas Niilola @ 2020-03-09 5:55 UTC (permalink / raw
To: gentoo-commits
commit: fd2beb14f93d5569f6a03d85516ae17f3c789efc
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Sun Mar 1 21:35:42 2020 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Mar 9 05:55:10 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd2beb14
sys-block/rts_pstor: fix compile with kernel >5.1
Closes: https://bugs.gentoo.org/702490
Closes: https://bugs.gentoo.org/702492
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/14818
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
.../rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch | 7 +++++++
sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild | 16 ++++++++++------
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/sys-block/rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch b/sys-block/rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch
new file mode 100644
index 00000000000..ff527e8a530
--- /dev/null
+++ b/sys-block/rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch
@@ -0,0 +1,7 @@
+--- a/Makefile
++++ b/Makefile
+@@ -36,3 +36,3 @@
+ cp -f ./define.release ./define.h
+- make -C /lib/modules/$(shell uname -r)/build/ SUBDIRS=$(PWD) modules
++ +make -C $(KERNELDIR) M=$(PWD) modules
+ debug:
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 e9b31fc3584..aebf0d373c1 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"
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-09 5:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-09 5:55 [gentoo-commits] repo/gentoo:master commit in: sys-block/rts_pstor/, sys-block/rts_pstor/files/ Joonas Niilola
-- strict thread matches above, loose matches on Subject: below --
2015-09-17 5:34 Vikraman Choudhury
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox