1 |
commit: 2d89d8b78e3f4e3211cfe6df6a10a7286fe85359 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 4 17:32:29 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 4 17:33:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d89d8b7 |
7 |
|
8 |
sys-fs/vhba: Drop old |
9 |
|
10 |
sys-fs/vhba/Manifest | 1 - |
11 |
sys-fs/vhba/files/vhba-20161009-linux-4.11.patch | 35 ---------- |
12 |
sys-fs/vhba/vhba-20140928.ebuild | 88 ------------------------ |
13 |
3 files changed, 124 deletions(-) |
14 |
|
15 |
diff --git a/sys-fs/vhba/Manifest b/sys-fs/vhba/Manifest |
16 |
index 2c57bc351bd..e679a2eb8e1 100644 |
17 |
--- a/sys-fs/vhba/Manifest |
18 |
+++ b/sys-fs/vhba/Manifest |
19 |
@@ -1,2 +1 @@ |
20 |
-DIST vhba-module-20140928.tar.bz2 15571 SHA256 45f56e4972b5aa7175903307901ca42d29da6fc8f92ab4c47007f53bc5bb55a2 SHA512 efa61b2ac44a015582f99affa4c26e4b6ccdd1506a7f14626c08833c4ffff300d128dd4e9040d83d5a51064b0bc9f95397c3cdfec7197c53c3d6f1a97953f779 WHIRLPOOL 4b96bb5010b8ab892db09f7e8f36fc67107533dd4d6beea6d5b89e6076c44ee969bee5d3b646b4ca5b1f0f6af446096fd892ab0970b8d6893fe4730f3eb18c07 |
21 |
DIST vhba-module-20170610.tar.bz2 15622 SHA256 7970c93f989d9c4f2629371bf5ee7a76f95e4c12342c3320ddc528d0df02d9ec SHA512 bf27a6a7a6aabf6c1a4c1f16b1a08dce460ee675ea53b141c6db8edf0637dffa900e03b9141f9f1a672fcd8f84e6f2be86a07e1f78bc5667a7a7669d45f1f687 WHIRLPOOL b5e9c8ae140e7267d11c3bab71879f49c3be464504193e06c8a77d291f22c41d9c017a8dc06477566b89b89430305aee71c2542a2d3ce04783f7f08e7122e730 |
22 |
|
23 |
diff --git a/sys-fs/vhba/files/vhba-20161009-linux-4.11.patch b/sys-fs/vhba/files/vhba-20161009-linux-4.11.patch |
24 |
deleted file mode 100644 |
25 |
index 02540193f6e..00000000000 |
26 |
--- a/sys-fs/vhba/files/vhba-20161009-linux-4.11.patch |
27 |
+++ /dev/null |
28 |
@@ -1,35 +0,0 @@ |
29 |
-From 7dc0d29a3ef6e45455f537c8187791446ca7e1e5 Mon Sep 17 00:00:00 2001 |
30 |
-From: Rok Mandeljc <rok.mandeljc@×××××.com> |
31 |
-Date: Sun, 26 Mar 2017 17:09:42 +0200 |
32 |
-Subject: VHBA: compatibility fix for upcoming kernel 4.11 |
33 |
- |
34 |
-As per Bug #104, from 4.11-rc2 on, we need to include linux/sched/signal.h |
35 |
-instead of linux/sched.h |
36 |
- |
37 |
-diff --git a/vhba-module/vhba.c b/vhba-module/vhba.c |
38 |
-index 4a14a10e..ff30e4cb 100644 |
39 |
---- a/vhba-module/vhba.c |
40 |
-+++ b/vhba-module/vhba.c |
41 |
-@@ -18,16 +18,21 @@ |
42 |
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
43 |
- */ |
44 |
- |
45 |
-+#include <linux/version.h> |
46 |
-+ |
47 |
- #include <linux/init.h> |
48 |
- #include <linux/module.h> |
49 |
- #include <linux/highmem.h> |
50 |
- #include <linux/fs.h> |
51 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) |
52 |
-+#include <linux/sched/signal.h> |
53 |
-+#else |
54 |
- #include <linux/sched.h> |
55 |
-+#endif |
56 |
- #include <linux/platform_device.h> |
57 |
- #include <linux/miscdevice.h> |
58 |
- #include <linux/poll.h> |
59 |
- #include <linux/slab.h> |
60 |
--#include <linux/version.h> |
61 |
- #ifdef CONFIG_COMPAT |
62 |
- #include <linux/compat.h> |
63 |
- #endif |
64 |
|
65 |
diff --git a/sys-fs/vhba/vhba-20140928.ebuild b/sys-fs/vhba/vhba-20140928.ebuild |
66 |
deleted file mode 100644 |
67 |
index f8d94012113..00000000000 |
68 |
--- a/sys-fs/vhba/vhba-20140928.ebuild |
69 |
+++ /dev/null |
70 |
@@ -1,88 +0,0 @@ |
71 |
-# Copyright 1999-2017 Gentoo Foundation |
72 |
-# Distributed under the terms of the GNU General Public License v2 |
73 |
- |
74 |
-EAPI="5" |
75 |
- |
76 |
-inherit eutils linux-mod user udev |
77 |
- |
78 |
-MY_P=vhba-module-${PV} |
79 |
-DESCRIPTION="Virtual (SCSI) Host Bus Adapter kernel module for the CDEmu suite" |
80 |
-HOMEPAGE="http://cdemu.org" |
81 |
-SRC_URI="mirror://sourceforge/cdemu/${MY_P}.tar.bz2" |
82 |
- |
83 |
-LICENSE="GPL-2+" |
84 |
-SLOT="0" |
85 |
-KEYWORDS="amd64 ~hppa x86" |
86 |
-IUSE="" |
87 |
- |
88 |
-RDEPEND="virtual/udev" |
89 |
-DEPEND="${RDEPEND} |
90 |
- virtual/pkgconfig" |
91 |
- |
92 |
-S=${WORKDIR}/${MY_P} |
93 |
-MODULE_NAMES="vhba(block:${S})" |
94 |
-BUILD_TARGETS=modules |
95 |
- |
96 |
-pkg_setup() { |
97 |
- CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG" |
98 |
- check_extra_config |
99 |
- BUILD_PARAMS="KDIR=${KV_OUT_DIR}" |
100 |
- linux-mod_pkg_setup |
101 |
- |
102 |
- enewgroup cdemu |
103 |
-} |
104 |
- |
105 |
-src_prepare() { |
106 |
- # Avoid "make jobserver unavailable" warning and -Werror problems |
107 |
- sed -e '/ccflags/s/-Werror$/-Wall/' \ |
108 |
- -i Makefile || die "sed failed" |
109 |
- |
110 |
- epatch "${FILESDIR}/${PN}-20161009-linux-4.11.patch" |
111 |
- |
112 |
- epatch_user |
113 |
-} |
114 |
- |
115 |
-src_install() { |
116 |
- dodoc AUTHORS ChangeLog README |
117 |
- linux-mod_src_install |
118 |
- |
119 |
- einfo "Generating udev rules ..." |
120 |
- dodir "$(get_udevdir)"/rules.d |
121 |
- cat > "${D}/$(get_udevdir)"/rules.d/70-vhba.rules <<-EOF || die |
122 |
- # do not edit this file, it will be overwritten on update |
123 |
- # |
124 |
- KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu" |
125 |
- EOF |
126 |
-} |
127 |
- |
128 |
-pkg_postinst() { |
129 |
- elog "Don't forget to add your user to the cdemu group if you want to" |
130 |
- elog "be able to use virtual cdemu devices." |
131 |
- |
132 |
- # Older versions of vhba installed their rule file in /etc/udev/rules.d, |
133 |
- # which overrides rules in /lib/udev/rules.d. We remove the old file |
134 |
- # automatically if it is identical to the default one installed by |
135 |
- # vhba-1.2.1 or 20101015-r1. Note that the comment at the top of the rules |
136 |
- # file states that it can be automatically overwritten by the system. |
137 |
- old_rules="${ROOT}etc/udev/rules.d/70-vhba.rules" |
138 |
- if [[ -f "${old_rules}" ]]; then |
139 |
- case "$(md5sum ${old_rules})" in |
140 |
- 2959b3cf61cfe6e466cc3516a7bc19de* | 1e7a7e5d6d28c811eeec98ec26ed5d28* ) |
141 |
- elog |
142 |
- elog "Removing old ${old_rules} ..." |
143 |
- rm -f "${old_rules}" || |
144 |
- eerror "Failed, please remove ${old_rules} manually." |
145 |
- ;; |
146 |
- * ) |
147 |
- ewarn |
148 |
- ewarn "The ${old_rules} file from a previous" |
149 |
- ewarn "installation of ${PN} is overriding ${P}'s" |
150 |
- ewarn "udev rules. Unless you had deliberately customized it," |
151 |
- ewarn "you should remove it." |
152 |
- ewarn |
153 |
- ;; |
154 |
- esac |
155 |
- fi |
156 |
- |
157 |
- linux-mod_pkg_postinst |
158 |
-} |