Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/rts_pstor/files/, profiles/, sys-block/rts_pstor/
Date: Sat, 26 Dec 2020 08:29:21
Message-Id: 1608971324.a4717a7c2e9b7134b7272c51861c8105551224f9.mgorny@gentoo
1 commit: a4717a7c2e9b7134b7272c51861c8105551224f9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 08:28:44 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 08:28:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4717a7c
7
8 sys-block/rts_pstor: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/756370
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 profiles/package.mask | 8 -----
14 sys-block/rts_pstor/Manifest | 1 -
15 .../rts_pstor/files/fix-compile-kernel-5.0.0.patch | 36 -------------------
16 .../files/rts_pstor-makefile-kernel-5.1.patch | 7 ----
17 sys-block/rts_pstor/files/rts_pstor-makefile.patch | 8 -----
18 sys-block/rts_pstor/metadata.xml | 11 ------
19 .../rts_pstor/rts_pstor-1.10_p20160103-r1.ebuild | 42 ----------------------
20 7 files changed, 113 deletions(-)
21
22 diff --git a/profiles/package.mask b/profiles/package.mask
23 index 29cc70d6cb7..7cd75c9a8d1 100644
24 --- a/profiles/package.mask
25 +++ b/profiles/package.mask
26 @@ -218,14 +218,6 @@ dev-libs/libclangformat-ide
27 # Bug #709512, #713300, #729518, Removal in 30 days.
28 app-text/cook
29
30 -# Martin Dummer <martin.dummer@×××.net> (2020-11-25)
31 -# Does not compile with kernels >=5.5, no upstream development
32 -# since years, for most hardware the in-kernel module
33 -# rtsx_pci_sdmmc should be preferred over this driver.
34 -# Open bugs #712484 #717184 #741909.
35 -# Removal in 30 days. (bug #756370)
36 -sys-block/rts_pstor
37 -
38 # Thomas Deutschmann <whissi@g.o> (2020-11-24)
39 # Serious data corruption bug when using XFS, see https://www.spinics.net/lists/linux-xfs/msg47004.html
40 # Feel free to manually unmask when not using XFS.
41
42 diff --git a/sys-block/rts_pstor/Manifest b/sys-block/rts_pstor/Manifest
43 deleted file mode 100644
44 index 283cf39a523..00000000000
45 --- a/sys-block/rts_pstor/Manifest
46 +++ /dev/null
47 @@ -1 +0,0 @@
48 -DIST rts_pstor-1.10_p20160103.tar.gz 108102 BLAKE2B 9cbca345211f7c99c6d9cf71b0ed207a4c911569eee6c63bfbe15c094be08f64c4550f04d9df688969f43564b2ff6a91d5cc72b8ab281cfdffb6884688b354de SHA512 d802a52b1e2da447a218472e77ca6ecc56e3b3767e3eb8daf634152675171c79c86e3b5ca9654b67cf32f63740c347bf7ecee5a1d20eb1c15a3a2ad3e9774311
49
50 diff --git a/sys-block/rts_pstor/files/fix-compile-kernel-5.0.0.patch b/sys-block/rts_pstor/files/fix-compile-kernel-5.0.0.patch
51 deleted file mode 100644
52 index 7ea6ba6fd26..00000000000
53 --- a/sys-block/rts_pstor/files/fix-compile-kernel-5.0.0.patch
54 +++ /dev/null
55 @@ -1,36 +0,0 @@
56 ---- a/rtsx.h
57 -+++ b/rtsx.h
58 -@@ -81,6 +81,17 @@
59 - pci_get_domain_bus_and_slot(0, (bus), (devfn))
60 - #endif
61 -
62 -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
63 -+static void do_gettimeofday(struct timeval *tv)
64 -+{
65 -+ struct timespec64 now;
66 -+
67 -+ ktime_get_real_ts64(&now);
68 -+ tv->tv_sec = now.tv_sec;
69 -+ tv->tv_usec = now.tv_nsec / 1000;
70 -+}
71 -+#endif
72 -+
73 - /*
74 - * macros for easy use
75 - */
76 ---- a/rtsx.c
77 -+++ b/rtsx.c
78 -@@ -300,11 +300,13 @@
79 -
80 - .max_sectors = 240,
81 -
82 -+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0)
83 - /* merge commands... this seems to help performance, but
84 - * periodically someone should test to see which setting is more
85 - * optimal.
86 - */
87 - .use_clustering = 1,
88 -+#endif
89 -
90 -
91 - .emulated = 1,
92
93 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
94 deleted file mode 100644
95 index ff527e8a530..00000000000
96 --- a/sys-block/rts_pstor/files/rts_pstor-makefile-kernel-5.1.patch
97 +++ /dev/null
98 @@ -1,7 +0,0 @@
99 ---- a/Makefile
100 -+++ b/Makefile
101 -@@ -36,3 +36,3 @@
102 - cp -f ./define.release ./define.h
103 -- make -C /lib/modules/$(shell uname -r)/build/ SUBDIRS=$(PWD) modules
104 -+ +make -C $(KERNELDIR) M=$(PWD) modules
105 - debug:
106
107 diff --git a/sys-block/rts_pstor/files/rts_pstor-makefile.patch b/sys-block/rts_pstor/files/rts_pstor-makefile.patch
108 deleted file mode 100644
109 index dc12cd68f52..00000000000
110 --- a/sys-block/rts_pstor/files/rts_pstor-makefile.patch
111 +++ /dev/null
112 @@ -1,8 +0,0 @@
113 -diff -N -a -u1 a/Makefile b/Makefile
114 ---- a/Makefile 2016-01-03 14:41:40.000000000 +0100
115 -+++ b/Makefile 2018-12-11 23:47:44.942218496 +0100
116 -@@ -36,3 +36,3 @@
117 - cp -f ./define.release ./define.h
118 -- make -C /lib/modules/$(shell uname -r)/build/ SUBDIRS=$(PWD) modules
119 -+ +make -C $(KERNELDIR) SUBDIRS=$(PWD) modules
120 - debug:
121
122 diff --git a/sys-block/rts_pstor/metadata.xml b/sys-block/rts_pstor/metadata.xml
123 deleted file mode 100644
124 index 429074c44a3..00000000000
125 --- a/sys-block/rts_pstor/metadata.xml
126 +++ /dev/null
127 @@ -1,11 +0,0 @@
128 -<?xml version="1.0" encoding="UTF-8"?>
129 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
130 -<pkgmetadata>
131 - <maintainer type="person">
132 - <email>martin.dummer@×××.net</email>
133 - </maintainer>
134 - <maintainer type="project">
135 - <email>proxy-maint@g.o</email>
136 - <name>Proxy Maintainers</name>
137 - </maintainer>
138 -</pkgmetadata>
139
140 diff --git a/sys-block/rts_pstor/rts_pstor-1.10_p20160103-r1.ebuild b/sys-block/rts_pstor/rts_pstor-1.10_p20160103-r1.ebuild
141 deleted file mode 100644
142 index aebf0d373c1..00000000000
143 --- a/sys-block/rts_pstor/rts_pstor-1.10_p20160103-r1.ebuild
144 +++ /dev/null
145 @@ -1,42 +0,0 @@
146 -# Copyright 2020 Gentoo Authors
147 -# Distributed under the terms of the GNU General Public License v2
148 -
149 -EAPI=7
150 -
151 -inherit linux-mod
152 -
153 -GIT_COMMIT="c8313abffe083ac63bf76d2cc90d3edf5b2d1188"
154 -
155 -DESCRIPTION="PCI-E RTS5209 card reader driver for Linux"
156 -HOMEPAGE="https://github.com/gexplorer/RTS5209-linux-driver"
157 -SRC_URI="https://github.com/gexplorer/RTS5209-linux-driver/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
158 -
159 -LICENSE="GPL-2+"
160 -SLOT="0"
161 -KEYWORDS="~amd64 ~x86"
162 -
163 -DEPEND="virtual/linux-sources"
164 -S="${WORKDIR}/RTS5209-linux-driver-${GIT_COMMIT}"
165 -
166 -MODULE_NAMES="rts_pstor(misc/drivers/scsi)"
167 -MODULESD_RTS_PSTOR_ADDITIONS=(
168 - "# when rts_pstor is installed, blacklist in-kernel driver rtsx_pci"
169 - "blacklist rtsx_pci"
170 -)
171 -BUILD_TARGETS="default"
172 -BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
173 -CONFIG_CHECK="~!MISC_RTSX_PCI !FORTIFY_SOURCE"
174 -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."
175 -ERROR_FORTIFY_SOURCE="CONFIG_FORTIFY_SOURCE: this module is known to fail compiling when the hardening option CONFIG_FORTIFY_SOURCE is set"
176 -
177 -src_prepare() {
178 - default
179 -
180 - eapply "${FILESDIR}/fix-compile-kernel-5.0.0.patch"
181 - kernel_is le 5 0 && eapply "${FILESDIR}/rts_pstor-makefile.patch" || eapply "${FILESDIR}/rts_pstor-makefile-kernel-5.1.patch"
182 -}
183 -
184 -pkg_postinst() {
185 - elog "This driver is based on code published by Realtek. There is a driver in the kernel named rtsx_pci which"
186 - elog "should be preferred over this driver - but on some hardware only this driver is functional and rtsx_pci is not."
187 -}