1 |
commit: 05bbec84cc85a2ef5e761b104440b83ac5d32046 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 15:10:01 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 15:10:59 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05bbec84 |
7 |
|
8 |
sys-fs/vhba: Call udev_reload |
9 |
|
10 |
Closes: https://bugs.gentoo.org/852275 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
sys-fs/vhba/vhba-20211218.ebuild | 22 ++++++++++++++++------ |
14 |
1 file changed, 16 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/sys-fs/vhba/vhba-20211218.ebuild b/sys-fs/vhba/vhba-20211218.ebuild |
17 |
index 3261cbfecf35..6b51dc2b402e 100644 |
18 |
--- a/sys-fs/vhba/vhba-20211218.ebuild |
19 |
+++ b/sys-fs/vhba/vhba-20211218.ebuild |
20 |
@@ -1,4 +1,4 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
+# Copyright 1999-2023 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=7 |
26 |
@@ -14,11 +14,14 @@ S=${WORKDIR}/${MY_P} |
27 |
LICENSE="GPL-2+" |
28 |
SLOT="0" |
29 |
KEYWORDS="amd64 x86" |
30 |
-IUSE="" |
31 |
|
32 |
-RDEPEND="virtual/udev" |
33 |
-DEPEND="${RDEPEND} |
34 |
- virtual/pkgconfig" |
35 |
+RDEPEND=" |
36 |
+ virtual/udev |
37 |
+" |
38 |
+DEPEND=" |
39 |
+ ${RDEPEND} |
40 |
+ virtual/pkgconfig |
41 |
+" |
42 |
|
43 |
MODULE_NAMES="vhba(block:${S})" |
44 |
BUILD_TARGETS=modules |
45 |
@@ -33,7 +36,6 @@ pkg_setup() { |
46 |
src_prepare() { |
47 |
# Avoid -Werror problems |
48 |
sed -i -e '/ccflags/s/-Werror/-Wall/' Makefile || die "sed failed" |
49 |
- |
50 |
eapply_user |
51 |
} |
52 |
|
53 |
@@ -48,3 +50,11 @@ src_install() { |
54 |
KERNEL=="vhba_ctl", SUBSYSTEM=="misc", TAG+="uaccess" |
55 |
EOF |
56 |
} |
57 |
+ |
58 |
+pkg_postinst() { |
59 |
+ udev_reload |
60 |
+} |
61 |
+ |
62 |
+pkg_postrm() { |
63 |
+ udev_reload |
64 |
+} |