Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 5/6] app-emulation/libvirt: depend on acct-user/qemu and acct-group/libvirt
Date: Mon, 29 Jul 2019 18:26:23
Message-Id: 20190729182450.8064-5-floppym@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/6] acct-group/qemu: new group (77) by Mike Gilbert
1 Package-Manager: Portage-2.3.69_p3, Repoman-2.3.16_p12
2 Signed-off-by: Mike Gilbert <floppym@g.o>
3 ---
4 app-emulation/libvirt/libvirt-5.2.0-r2.ebuild | 11 +++--------
5 app-emulation/libvirt/libvirt-5.2.0-r3.ebuild | 11 +++--------
6 app-emulation/libvirt/libvirt-5.4.0-r1.ebuild | 11 +++--------
7 app-emulation/libvirt/libvirt-5.5.0-r1.ebuild | 11 +++--------
8 app-emulation/libvirt/libvirt-9999.ebuild | 11 +++--------
9 5 files changed, 15 insertions(+), 40 deletions(-)
10
11 diff --git a/app-emulation/libvirt/libvirt-5.2.0-r2.ebuild b/app-emulation/libvirt/libvirt-5.2.0-r2.ebuild
12 index ce11748ab116..69d15a2c4477 100644
13 --- a/app-emulation/libvirt/libvirt-5.2.0-r2.ebuild
14 +++ b/app-emulation/libvirt/libvirt-5.2.0-r2.ebuild
15 @@ -5,7 +5,7 @@ EAPI=7
16
17 PYTHON_COMPAT=( python3_{5,6,7} )
18
19 -inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd user
20 +inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd
21
22 if [[ ${PV} = *9999* ]]; then
23 inherit git-r3
24 @@ -47,6 +47,8 @@ REQUIRED_USE="
25 # package will use 3 by default. Since we don't have slot pinning in an API,
26 # we must go with the most recent
27 RDEPEND="
28 + acct-user/qemu
29 + policykit? ( acct-group/libvirt )
30 app-misc/scrub
31 dev-libs/libgcrypt:0
32 dev-libs/libnl:3
33 @@ -127,13 +129,6 @@ PATCHES=(
34 )
35
36 pkg_setup() {
37 - if use qemu; then
38 - enewgroup qemu 77
39 - enewuser qemu 77 -1 -1 "qemu,kvm"
40 - fi
41 -
42 - use policykit && enewgroup libvirt
43 -
44 # Check kernel configuration:
45 CONFIG_CHECK=""
46 use fuse && CONFIG_CHECK+="
47 diff --git a/app-emulation/libvirt/libvirt-5.2.0-r3.ebuild b/app-emulation/libvirt/libvirt-5.2.0-r3.ebuild
48 index 6eaa333934d9..8709e69b6fde 100644
49 --- a/app-emulation/libvirt/libvirt-5.2.0-r3.ebuild
50 +++ b/app-emulation/libvirt/libvirt-5.2.0-r3.ebuild
51 @@ -5,7 +5,7 @@ EAPI=7
52
53 PYTHON_COMPAT=( python3_{5,6,7} )
54
55 -inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd user
56 +inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd
57
58 if [[ ${PV} = *9999* ]]; then
59 inherit git-r3
60 @@ -47,6 +47,8 @@ REQUIRED_USE="
61 # package will use 3 by default. Since we don't have slot pinning in an API,
62 # we must go with the most recent
63 RDEPEND="
64 + acct-user/qemu
65 + policykit? ( acct-group/libvirt )
66 app-misc/scrub
67 dev-libs/libgcrypt:0
68 dev-libs/libnl:3
69 @@ -127,13 +129,6 @@ PATCHES=(
70 )
71
72 pkg_setup() {
73 - if use qemu; then
74 - enewgroup qemu 77
75 - enewuser qemu 77 -1 -1 "qemu,kvm"
76 - fi
77 -
78 - use policykit && enewgroup libvirt
79 -
80 # Check kernel configuration:
81 CONFIG_CHECK=""
82 use fuse && CONFIG_CHECK+="
83 diff --git a/app-emulation/libvirt/libvirt-5.4.0-r1.ebuild b/app-emulation/libvirt/libvirt-5.4.0-r1.ebuild
84 index 796ca2632a99..ea698db7c73b 100644
85 --- a/app-emulation/libvirt/libvirt-5.4.0-r1.ebuild
86 +++ b/app-emulation/libvirt/libvirt-5.4.0-r1.ebuild
87 @@ -5,7 +5,7 @@ EAPI=7
88
89 PYTHON_COMPAT=( python3_{5,6,7} )
90
91 -inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd user
92 +inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd
93
94 if [[ ${PV} = *9999* ]]; then
95 inherit git-r3
96 @@ -47,6 +47,8 @@ REQUIRED_USE="
97 # package will use 3 by default. Since we don't have slot pinning in an API,
98 # we must go with the most recent
99 RDEPEND="
100 + acct-user/qemu
101 + policykit? ( acct-group/libvirt )
102 app-misc/scrub
103 dev-libs/libgcrypt:0
104 dev-libs/libnl:3
105 @@ -127,13 +129,6 @@ PATCHES=(
106 )
107
108 pkg_setup() {
109 - if use qemu; then
110 - enewgroup qemu 77
111 - enewuser qemu 77 -1 -1 "qemu,kvm"
112 - fi
113 -
114 - use policykit && enewgroup libvirt
115 -
116 # Check kernel configuration:
117 CONFIG_CHECK=""
118 use fuse && CONFIG_CHECK+="
119 diff --git a/app-emulation/libvirt/libvirt-5.5.0-r1.ebuild b/app-emulation/libvirt/libvirt-5.5.0-r1.ebuild
120 index 5cb42f7609c9..5c4936718f6b 100644
121 --- a/app-emulation/libvirt/libvirt-5.5.0-r1.ebuild
122 +++ b/app-emulation/libvirt/libvirt-5.5.0-r1.ebuild
123 @@ -5,7 +5,7 @@ EAPI=7
124
125 PYTHON_COMPAT=( python3_{5,6,7} )
126
127 -inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd user
128 +inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd
129
130 if [[ ${PV} = *9999* ]]; then
131 inherit git-r3
132 @@ -47,6 +47,8 @@ REQUIRED_USE="
133 # package will use 3 by default. Since we don't have slot pinning in an API,
134 # we must go with the most recent
135 RDEPEND="
136 + acct-user/qemu
137 + policykit? ( acct-group/libvirt )
138 app-misc/scrub
139 dev-libs/libgcrypt:0
140 dev-libs/libnl:3
141 @@ -126,13 +128,6 @@ PATCHES=(
142 )
143
144 pkg_setup() {
145 - if use qemu; then
146 - enewgroup qemu 77
147 - enewuser qemu 77 -1 -1 "qemu,kvm"
148 - fi
149 -
150 - use policykit && enewgroup libvirt
151 -
152 # Check kernel configuration:
153 CONFIG_CHECK=""
154 use fuse && CONFIG_CHECK+="
155 diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-9999.ebuild
156 index 5cb42f7609c9..5c4936718f6b 100644
157 --- a/app-emulation/libvirt/libvirt-9999.ebuild
158 +++ b/app-emulation/libvirt/libvirt-9999.ebuild
159 @@ -5,7 +5,7 @@ EAPI=7
160
161 PYTHON_COMPAT=( python3_{5,6,7} )
162
163 -inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd user
164 +inherit autotools bash-completion-r1 eutils linux-info python-any-r1 readme.gentoo-r1 systemd
165
166 if [[ ${PV} = *9999* ]]; then
167 inherit git-r3
168 @@ -47,6 +47,8 @@ REQUIRED_USE="
169 # package will use 3 by default. Since we don't have slot pinning in an API,
170 # we must go with the most recent
171 RDEPEND="
172 + acct-user/qemu
173 + policykit? ( acct-group/libvirt )
174 app-misc/scrub
175 dev-libs/libgcrypt:0
176 dev-libs/libnl:3
177 @@ -126,13 +128,6 @@ PATCHES=(
178 )
179
180 pkg_setup() {
181 - if use qemu; then
182 - enewgroup qemu 77
183 - enewuser qemu 77 -1 -1 "qemu,kvm"
184 - fi
185 -
186 - use policykit && enewgroup libvirt
187 -
188 # Check kernel configuration:
189 CONFIG_CHECK=""
190 use fuse && CONFIG_CHECK+="
191 --
192 2.22.0