1 |
commit: a89040ab28dd652c97b4a27506b8b67bfc73152c |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Sat Feb 27 02:32:21 2021 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 02:32:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a89040ab |
7 |
|
8 |
app-admin/salt: Remove old |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-3.0.15, Repoman-3.0.2 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
app-admin/salt/Manifest | 3 - |
15 |
app-admin/salt/salt-3000.6.ebuild | 195 ----------------------------------- |
16 |
app-admin/salt/salt-3001.4-r1.ebuild | 185 --------------------------------- |
17 |
app-admin/salt/salt-3002.2-r2.ebuild | 185 --------------------------------- |
18 |
app-admin/salt/salt-3002.2-r4.ebuild | 185 --------------------------------- |
19 |
5 files changed, 753 deletions(-) |
20 |
|
21 |
diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest |
22 |
index 5b54dc5c1c5..3ac4178786a 100644 |
23 |
--- a/app-admin/salt/Manifest |
24 |
+++ b/app-admin/salt/Manifest |
25 |
@@ -1,8 +1,5 @@ |
26 |
DIST salt-3000.2-py38-misc.patch.gz 6250 BLAKE2B 68fff80a042e6bf208ea2d9692da7a7b1e29572f1ec3c850c14743bbf2821d231f933ec4e6d6eaad12acee0b7666888a37a72872b2b082c92d8db9de988fbbec SHA512 6d4a66323a423e630f7cc73b566ed96c452c8fc3d72c25a2dd86033c4774c1c8e8b8701e1d4ee92994d4148c398d704f419023e26d8b40c8fdd63f9d79d9d52f |
27 |
DIST salt-3000.5.tar.gz 15229450 BLAKE2B 135e9b9dcc461ac898231ce46e6a1359e6d60a43822320950bc0b83057f768dadf55320dd73df72d5bc917f324eef4661e6f75d8eb8e84aef958bd2df8924cfc SHA512 2579f65c24d22d77132057bd8cf37040d7d149624745dd68b4c44318be786580dcc34bf563f90d7de9ef5b726b2453bef4d8639bc8fbd9c5e691500520335317 |
28 |
-DIST salt-3000.6.tar.gz 15236781 BLAKE2B 5a532a6915b331fb532dc6e1651cf8fca3e1a5e9f29f6d75260fdb1162dbfeec755c65f7c6fc28b1cc7dc3ace978547830af31aafc1eee8419bbc7e695725787 SHA512 739e3671766c45a0ef1eb45933c7f00f14586e91f4c4a79cbed913a48961a48baee853206ba569491756e8a872d22f3635eb6bc1a366020e551c567b2334c508 |
29 |
DIST salt-3000.8.tar.gz 15249139 BLAKE2B df306669ba11dd650621222ff9c69f5a6e16b6f431e9d93e6712ee95da43091bfe28416fe0d71988ed9ee70cb347755b779a356c50fa59c63c67a874ed1906f4 SHA512 a18d5bea3b3835f83d5b1e5315990d83f6c58c36df5589d5de0f8cc3a46db4c960b58032e29d56841a160b9b170cdbb81bca38dbbd72ccb5866ccc8a7da6e800 |
30 |
-DIST salt-3001.4.tar.gz 15716372 BLAKE2B cc33b29b0da9cfaae22726b2b471245880aafa106187b531872a9ae5ee773a94e0d550a68b11b74826bc0b35197a311f690535f2280931ccb5050275ad967c2d SHA512 b7f343c65917280a96d8a3eaa6b508121b11b9f9b0bfffa5b4c79af0023bdecf4581f76014847d97f48d9677edb6f632adec3850153c3048c3114128a250b84b |
31 |
DIST salt-3001.6.tar.gz 15736056 BLAKE2B 00e7674452e9d61c3cd487d27a3a1f3435c6b12dcc89008aa63c96814957b6ce8654f4d4d51dbce7b14027f0cee66fd2ea9602f6be18bf2f4beac11ae164f89f SHA512 e45c9cfddb64ab1c9d66b6b6b3e5ff8d9010c01307161e5013140b4362ee630cf912ab153d1afa72f56d18fc5353293b2f4b449caf8ee384d1e93204d490bf4c |
32 |
-DIST salt-3002.2.tar.gz 15765855 BLAKE2B b26895ababc8551e01baa806c5a0e41dab9a379e47d2289b5c3c529ef762c69631d7ed8b32339ec66c3929c5883782131eb56d1bfbcc743829c4f0199a900ca1 SHA512 0f617a07475347b1bb0d1c6059de541e102103182820dfd6f64f4c281d660e68358eb1ab7171a637e16cef9fea2517c8356df9c449f9bbc92538aa86c316f652 |
33 |
DIST salt-3002.5.tar.gz 15784880 BLAKE2B baa90bb0caea572dfbe12d92fb488ee0c4adef9a07221f394009cd43a62ffef18c57f2e7cdcfcd923807c7a3d02ce6833480f74d70250c29d311420f30514300 SHA512 dda2caa338f646ec51d2de6b0df10fbb27eceddbe8c797ae192b9ef1312d566ae71a243a3a95918fa375b125089aa29a73b1b908c5cc1b0451dccb582a4978a1 |
34 |
|
35 |
diff --git a/app-admin/salt/salt-3000.6.ebuild b/app-admin/salt/salt-3000.6.ebuild |
36 |
deleted file mode 100644 |
37 |
index a3b94dc622d..00000000000 |
38 |
--- a/app-admin/salt/salt-3000.6.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,195 +0,0 @@ |
41 |
-# Copyright 1999-2021 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=7 |
45 |
-PYTHON_COMPAT=( python3_{7,8} ) |
46 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
47 |
-inherit systemd distutils-r1 |
48 |
- |
49 |
-DESCRIPTION="Salt is a remote execution and configuration manager" |
50 |
-HOMEPAGE="https://www.saltstack.com/resources/community/ |
51 |
- https://github.com/saltstack" |
52 |
- |
53 |
-if [[ ${PV} == 9999* ]]; then |
54 |
- inherit git-r3 |
55 |
- EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
56 |
- EGIT_BRANCH="develop" |
57 |
- SRC_URI="" |
58 |
-else |
59 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
60 |
- https://dev.gentoo.org/~chutzpah/dist/salt/salt-3000.2-py38-misc.patch.gz" |
61 |
- KEYWORDS="~amd64 ~x86" |
62 |
-fi |
63 |
- |
64 |
-LICENSE="Apache-2.0" |
65 |
-SLOT="0" |
66 |
-IUSE="cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako |
67 |
- mongodb neutron nova openssl portage profile redis selinux test raet |
68 |
- +zeromq vim-syntax" |
69 |
- |
70 |
-RDEPEND=" |
71 |
- sys-apps/pciutils |
72 |
- dev-python/distro[${PYTHON_USEDEP}] |
73 |
- dev-python/jinja[${PYTHON_USEDEP}] |
74 |
- dev-python/libnacl[${PYTHON_USEDEP}] |
75 |
- >=dev-python/msgpack-0.5[${PYTHON_USEDEP}] |
76 |
- <dev-python/msgpack-1.0[${PYTHON_USEDEP}] |
77 |
- dev-python/pycryptodome[${PYTHON_USEDEP}] |
78 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
79 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
80 |
- >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
81 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
82 |
- libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
83 |
- mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
84 |
- ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
85 |
- libvirt? ( |
86 |
- $(python_gen_cond_dep 'dev-python/libvirt-python[${PYTHON_USEDEP}]' python3_7) |
87 |
- ) |
88 |
- openssl? ( |
89 |
- dev-libs/openssl:0=[-bindist] |
90 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
91 |
- ) |
92 |
- raet? ( |
93 |
- >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
94 |
- >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
95 |
- >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
96 |
- ) |
97 |
- cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
98 |
- cheetah? ( dev-python/cheetah3[${PYTHON_USEDEP}] ) |
99 |
- mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
100 |
- portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
101 |
- keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
102 |
- redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
103 |
- selinux? ( sec-policy/selinux-salt ) |
104 |
- nova? ( |
105 |
- $(python_gen_cond_dep '>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]' python3_7) |
106 |
- ) |
107 |
- neutron? ( |
108 |
- $(python_gen_cond_dep '>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]' python3_7) |
109 |
- ) |
110 |
- gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
111 |
- profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
112 |
- vim-syntax? ( app-vim/salt-vim ) |
113 |
- zeromq? ( >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] ) |
114 |
-" |
115 |
-BDEPEND=" |
116 |
- test? ( |
117 |
- ${RDEPEND} |
118 |
- >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
119 |
- >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] |
120 |
- >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
121 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
122 |
- >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
123 |
- dev-python/pip[${PYTHON_USEDEP}] |
124 |
- dev-python/psutil[${PYTHON_USEDEP}] |
125 |
- dev-python/pytest[${PYTHON_USEDEP}] |
126 |
- dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
127 |
- dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
128 |
- >=dev-python/pytest-salt-2018.12.8[${PYTHON_USEDEP}] |
129 |
- dev-python/pytest-tempdir[${PYTHON_USEDEP}] |
130 |
- >=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] |
131 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
132 |
- !x86? ( >=dev-python/boto3-1.2.1[${PYTHON_USEDEP}] ) |
133 |
- )" |
134 |
- |
135 |
-DOCS=( README.rst AUTHORS ) |
136 |
- |
137 |
-REQUIRED_USE="|| ( raet zeromq ) |
138 |
- test? ( cheetah genshi )" |
139 |
-RESTRICT="!test? ( test ) x86? ( test )" |
140 |
- |
141 |
-PATCHES=( |
142 |
- "${FILESDIR}/salt-2017.7.0-dont-realpath-tmpdir.patch" |
143 |
- "${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" |
144 |
- "${FILESDIR}/salt-3000.1-tests.patch" |
145 |
- "${FILESDIR}/salt-3000.2-tests.patch" |
146 |
- |
147 |
- # https://github.com/saltstack/salt/pull/55410 |
148 |
- "${FILESDIR}/salt-3000.2-py38.patch" |
149 |
- |
150 |
- # https://github.com/saltstack/salt/pull/55900 |
151 |
- "${FILESDIR}/salt-3000.2-py38-abc.patch" |
152 |
- |
153 |
- # misc py38 fixups |
154 |
- "${WORKDIR}/salt-3000.2-py38-misc.patch" |
155 |
- "${FILESDIR}/salt-3000.2-py38-logwarn.patch" |
156 |
- "${FILESDIR}/salt-2019.2.8-ansible-roster-fix.patch" |
157 |
-) |
158 |
- |
159 |
-python_prepare() { |
160 |
- # remove tests with external dependencies that may not be available, and |
161 |
- # tests that don't work in sandbox |
162 |
- rm tests/unit/{test_zypp_plugins,utils/test_extend,module_names}.py || die |
163 |
- rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
164 |
- rm tests/unit/states/test_boto_vpc.py || die |
165 |
- |
166 |
- # tests that require network access |
167 |
- rm tests/unit/{states,modules}/test_zcbuildout.py || die |
168 |
- |
169 |
- # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
170 |
- find . -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d' -i || die |
171 |
- |
172 |
- einfo "Fixing collections.abc warnings for ${EPYTHON}" |
173 |
- local abc |
174 |
- abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die |
175 |
- find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die |
176 |
- |
177 |
- # allow the use of the renamed msgpack |
178 |
- sed -i '/^msgpack/d' requirements/base.txt || die |
179 |
-} |
180 |
- |
181 |
-python_install_all() { |
182 |
- local svc |
183 |
- USE_SETUPTOOLS=1 distutils-r1_python_install_all |
184 |
- |
185 |
- for svc in minion master syndic api; do |
186 |
- newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
187 |
- newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
188 |
- systemd_dounit "${FILESDIR}"/salt-${svc}.service |
189 |
- done |
190 |
- |
191 |
- insinto /etc/${PN} |
192 |
- doins -r conf/* |
193 |
-} |
194 |
- |
195 |
-python_test() { |
196 |
- local tempdir |
197 |
- # testsuite likes lots of files |
198 |
- ulimit -n 3072 || die |
199 |
- |
200 |
- # ${T} is too long a path for the tests to work |
201 |
- tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" |
202 |
- mkdir "${T}/$(basename "${tempdir}")" |
203 |
- |
204 |
- ( |
205 |
- cleanup() { rm -f "${tempdir}" || die; } |
206 |
- |
207 |
- trap cleanup EXIT |
208 |
- |
209 |
- addwrite "${tempdir}" |
210 |
- ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die |
211 |
- |
212 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
213 |
- TMPDIR="${tempdir}" \ |
214 |
- ${EPYTHON} tests/runtests.py \ |
215 |
- --unit-tests --no-report --verbose \ |
216 |
- || die "testing failed with ${EPYTHON}" |
217 |
- ) |
218 |
-} |
219 |
- |
220 |
-pkg_postinst() { |
221 |
- if use python_targets_python3_8; then |
222 |
- if use nova; then |
223 |
- ewarn "Salt's nova functionality will not work with python3.8 since" |
224 |
- ewarn "dev-python/python-novaclient does not support it yet" |
225 |
- fi |
226 |
- if use neutron; then |
227 |
- ewarn "Salt's neutron functionality will not work with python3.8 since" |
228 |
- ewarn "dev-python/python-neutronclient does not support it yet" |
229 |
- fi |
230 |
- if use libvirt; then |
231 |
- ewarn "Salt's libvirt functionality will not work with python3.8 since" |
232 |
- ewarn "dev-python/libvirt-python does not support it yet" |
233 |
- fi |
234 |
- fi |
235 |
-} |
236 |
|
237 |
diff --git a/app-admin/salt/salt-3001.4-r1.ebuild b/app-admin/salt/salt-3001.4-r1.ebuild |
238 |
deleted file mode 100644 |
239 |
index eac0f2d28fd..00000000000 |
240 |
--- a/app-admin/salt/salt-3001.4-r1.ebuild |
241 |
+++ /dev/null |
242 |
@@ -1,185 +0,0 @@ |
243 |
-# Copyright 1999-2020 Gentoo Authors |
244 |
-# Distributed under the terms of the GNU General Public License v2 |
245 |
- |
246 |
-EAPI=7 |
247 |
-PYTHON_COMPAT=( python3_{7..8} ) |
248 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
249 |
-inherit systemd distutils-r1 |
250 |
- |
251 |
-DESCRIPTION="Salt is a remote execution and configuration manager" |
252 |
-HOMEPAGE="https://www.saltstack.com/resources/community/ |
253 |
- https://github.com/saltstack" |
254 |
- |
255 |
-if [[ ${PV} == 9999* ]]; then |
256 |
- inherit git-r3 |
257 |
- EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
258 |
- EGIT_BRANCH="develop" |
259 |
- SRC_URI="" |
260 |
-else |
261 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
262 |
- KEYWORDS="~amd64 ~x86" |
263 |
-fi |
264 |
- |
265 |
-LICENSE="Apache-2.0" |
266 |
-SLOT="0" |
267 |
-IUSE="cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako |
268 |
- mongodb neutron nova openssl portage profile redis selinux test raet |
269 |
- +zeromq vim-syntax" |
270 |
- |
271 |
-RDEPEND=" |
272 |
- sys-apps/pciutils |
273 |
- dev-python/distro[${PYTHON_USEDEP}] |
274 |
- dev-python/jinja[${PYTHON_USEDEP}] |
275 |
- dev-python/libnacl[${PYTHON_USEDEP}] |
276 |
- >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] |
277 |
- >=dev-python/pycryptodome-3.9.7[${PYTHON_USEDEP}] |
278 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
279 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
280 |
- >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
281 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
282 |
- dev-python/toml[${PYTHON_USEDEP}] |
283 |
- dev-python/watchdog[${PYTHON_USEDEP}] |
284 |
- libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
285 |
- mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
286 |
- ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
287 |
- libvirt? ( |
288 |
- $(python_gen_cond_dep 'dev-python/libvirt-python[${PYTHON_USEDEP}]' python3_7) |
289 |
- ) |
290 |
- openssl? ( |
291 |
- dev-libs/openssl:0=[-bindist] |
292 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
293 |
- ) |
294 |
- raet? ( |
295 |
- >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
296 |
- >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
297 |
- >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
298 |
- ) |
299 |
- cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
300 |
- cheetah? ( dev-python/cheetah3[${PYTHON_USEDEP}] ) |
301 |
- mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
302 |
- portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
303 |
- keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
304 |
- redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
305 |
- selinux? ( sec-policy/selinux-salt ) |
306 |
- nova? ( |
307 |
- $(python_gen_cond_dep '>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]' python3_7) |
308 |
- ) |
309 |
- neutron? ( |
310 |
- $(python_gen_cond_dep '>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]' python3_7) |
311 |
- ) |
312 |
- gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
313 |
- profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
314 |
- vim-syntax? ( app-vim/salt-vim ) |
315 |
- zeromq? ( >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] ) |
316 |
-" |
317 |
-BDEPEND=" |
318 |
- test? ( |
319 |
- ${RDEPEND} |
320 |
- >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
321 |
- >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] |
322 |
- >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
323 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
324 |
- >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
325 |
- dev-python/pip[${PYTHON_USEDEP}] |
326 |
- dev-python/psutil[${PYTHON_USEDEP}] |
327 |
- dev-python/pytest[${PYTHON_USEDEP}] |
328 |
- dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
329 |
- >=dev-python/pytest-salt-2020.1.27[${PYTHON_USEDEP}] |
330 |
- dev-python/pytest-salt-factories[${PYTHON_USEDEP}] |
331 |
- dev-python/pytest-tempdir[${PYTHON_USEDEP}] |
332 |
- >=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] |
333 |
- >=dev-python/virtualenv-20.0.20[${PYTHON_USEDEP}] |
334 |
- !x86? ( >=dev-python/boto3-1.3.15[${PYTHON_USEDEP}] ) |
335 |
- )" |
336 |
- |
337 |
-DOCS=( README.rst AUTHORS ) |
338 |
- |
339 |
-REQUIRED_USE="|| ( raet zeromq ) |
340 |
- test? ( cheetah genshi )" |
341 |
-RESTRICT="!test? ( test ) x86? ( test )" |
342 |
- |
343 |
-PATCHES=( |
344 |
- "${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" |
345 |
- "${FILESDIR}/salt-3001.1-tests.patch" |
346 |
-) |
347 |
- |
348 |
-python_prepare_all() { |
349 |
- # remove tests with external dependencies that may not be available |
350 |
- rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die |
351 |
- rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
352 |
- rm tests/unit/states/test_boto_vpc.py || die |
353 |
- rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die |
354 |
- |
355 |
- # tests that require network access |
356 |
- rm tests/unit/{states,modules}/test_zcbuildout.py || die |
357 |
- |
358 |
- # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
359 |
- find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die |
360 |
- # pycryptodome rather than pycryptodomex |
361 |
- find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die |
362 |
- |
363 |
- distutils-r1_python_prepare_all |
364 |
-} |
365 |
- |
366 |
-python_prepare() { |
367 |
- einfo "Fixing collections.abc warnings for ${EPYTHON}" |
368 |
- local abc |
369 |
- abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die |
370 |
- find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die |
371 |
-} |
372 |
- |
373 |
-python_install_all() { |
374 |
- local svc |
375 |
- USE_SETUPTOOLS=1 distutils-r1_python_install_all |
376 |
- |
377 |
- for svc in minion master syndic api; do |
378 |
- newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
379 |
- newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
380 |
- systemd_dounit "${FILESDIR}"/salt-${svc}.service |
381 |
- done |
382 |
- |
383 |
- insinto /etc/${PN} |
384 |
- doins -r conf/* |
385 |
-} |
386 |
- |
387 |
-python_test() { |
388 |
- local tempdir |
389 |
- # testsuite likes lots of files |
390 |
- ulimit -n 3072 || die |
391 |
- |
392 |
- # ${T} is too long a path for the tests to work |
393 |
- tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" |
394 |
- mkdir "${T}/$(basename "${tempdir}")" |
395 |
- |
396 |
- ( |
397 |
- cleanup() { rm -f "${tempdir}" || die; } |
398 |
- |
399 |
- trap cleanup EXIT |
400 |
- |
401 |
- addwrite "${tempdir}" |
402 |
- ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die |
403 |
- |
404 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
405 |
- TMPDIR="${tempdir}" \ |
406 |
- ${EPYTHON} tests/runtests.py \ |
407 |
- --unit-tests --no-report --verbose \ |
408 |
- || die "testing failed with ${EPYTHON}" |
409 |
- ) |
410 |
-} |
411 |
- |
412 |
-pkg_postinst() { |
413 |
- if use python_targets_python3_8; then |
414 |
- if use nova; then |
415 |
- ewarn "Salt's nova functionality will not work with python3.8 since" |
416 |
- ewarn "dev-python/python-novaclient does not support it yet" |
417 |
- fi |
418 |
- if use neutron; then |
419 |
- ewarn "Salt's neutron functionality will not work with python3.8 since" |
420 |
- ewarn "dev-python/python-neutronclient does not support it yet" |
421 |
- fi |
422 |
- if use libvirt; then |
423 |
- ewarn "Salt's libvirt functionality will not work with python3.8 since" |
424 |
- ewarn "dev-python/libvirt-python does not support it yet" |
425 |
- fi |
426 |
- fi |
427 |
-} |
428 |
|
429 |
diff --git a/app-admin/salt/salt-3002.2-r2.ebuild b/app-admin/salt/salt-3002.2-r2.ebuild |
430 |
deleted file mode 100644 |
431 |
index 87ea8af8965..00000000000 |
432 |
--- a/app-admin/salt/salt-3002.2-r2.ebuild |
433 |
+++ /dev/null |
434 |
@@ -1,185 +0,0 @@ |
435 |
-# Copyright 1999-2021 Gentoo Authors |
436 |
-# Distributed under the terms of the GNU General Public License v2 |
437 |
- |
438 |
-EAPI=7 |
439 |
-PYTHON_COMPAT=( python3_{7..8} ) |
440 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
441 |
-inherit systemd distutils-r1 |
442 |
- |
443 |
-DESCRIPTION="Salt is a remote execution and configuration manager" |
444 |
-HOMEPAGE="https://www.saltstack.com/resources/community/ |
445 |
- https://github.com/saltstack" |
446 |
- |
447 |
-if [[ ${PV} == 9999* ]]; then |
448 |
- inherit git-r3 |
449 |
- EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
450 |
- EGIT_BRANCH="develop" |
451 |
- SRC_URI="" |
452 |
-else |
453 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
454 |
- KEYWORDS="~amd64 ~arm ~x86" |
455 |
-fi |
456 |
- |
457 |
-LICENSE="Apache-2.0" |
458 |
-SLOT="0" |
459 |
-IUSE="cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako |
460 |
- mongodb neutron nova openssl portage profile redis selinux test raet |
461 |
- +zeromq vim-syntax" |
462 |
- |
463 |
-RDEPEND=" |
464 |
- sys-apps/pciutils |
465 |
- >=dev-python/distro-1.5[${PYTHON_USEDEP}] |
466 |
- dev-python/jinja[${PYTHON_USEDEP}] |
467 |
- dev-python/libnacl[${PYTHON_USEDEP}] |
468 |
- >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] |
469 |
- >=dev-python/pycryptodome-3.9.8[${PYTHON_USEDEP}] |
470 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
471 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
472 |
- >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
473 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
474 |
- dev-python/toml[${PYTHON_USEDEP}] |
475 |
- dev-python/watchdog[${PYTHON_USEDEP}] |
476 |
- libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
477 |
- mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
478 |
- ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
479 |
- libvirt? ( |
480 |
- $(python_gen_cond_dep 'dev-python/libvirt-python[${PYTHON_USEDEP}]' python3_7) |
481 |
- ) |
482 |
- openssl? ( |
483 |
- dev-libs/openssl:0=[-bindist] |
484 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
485 |
- ) |
486 |
- raet? ( |
487 |
- >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
488 |
- >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
489 |
- >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
490 |
- ) |
491 |
- cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
492 |
- cheetah? ( dev-python/cheetah3[${PYTHON_USEDEP}] ) |
493 |
- mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
494 |
- portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
495 |
- keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
496 |
- redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
497 |
- selinux? ( sec-policy/selinux-salt ) |
498 |
- nova? ( |
499 |
- $(python_gen_cond_dep '>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]' python3_7) |
500 |
- ) |
501 |
- neutron? ( |
502 |
- $(python_gen_cond_dep '>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]' python3_7) |
503 |
- ) |
504 |
- gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
505 |
- profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
506 |
- vim-syntax? ( app-vim/salt-vim ) |
507 |
- zeromq? ( >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] ) |
508 |
-" |
509 |
-BDEPEND=" |
510 |
- test? ( |
511 |
- ${RDEPEND} |
512 |
- >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
513 |
- >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] |
514 |
- >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
515 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
516 |
- >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
517 |
- dev-python/pip[${PYTHON_USEDEP}] |
518 |
- dev-python/psutil[${PYTHON_USEDEP}] |
519 |
- dev-python/pytest[${PYTHON_USEDEP}] |
520 |
- dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
521 |
- >=dev-python/pytest-salt-factories-0.93.0[${PYTHON_USEDEP}] |
522 |
- dev-python/pytest-tempdir[${PYTHON_USEDEP}] |
523 |
- >=dev-python/virtualenv-20.0.20[${PYTHON_USEDEP}] |
524 |
- !x86? ( >=dev-python/boto3-1.3.15[${PYTHON_USEDEP}] ) |
525 |
- )" |
526 |
- |
527 |
-DOCS=( README.rst AUTHORS ) |
528 |
- |
529 |
-REQUIRED_USE="|| ( raet zeromq ) |
530 |
- test? ( cheetah genshi )" |
531 |
-RESTRICT="!test? ( test ) x86? ( test )" |
532 |
- |
533 |
-PATCHES=( |
534 |
- "${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" |
535 |
- "${FILESDIR}/salt-3002-dont-realpath-on-tmpdir.patch" |
536 |
- "${FILESDIR}/salt-3002-tests.patch" |
537 |
-) |
538 |
- |
539 |
-python_prepare_all() { |
540 |
- # remove tests with external dependencies that may not be available |
541 |
- rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die |
542 |
- rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
543 |
- rm tests/unit/states/test_boto_vpc.py || die |
544 |
- rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die |
545 |
- |
546 |
- # tests that require network access |
547 |
- rm tests/unit/{states,modules}/test_zcbuildout.py || die |
548 |
- |
549 |
- # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
550 |
- # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
551 |
- find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die |
552 |
- # pycryptodome rather than pycryptodomex |
553 |
- find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die |
554 |
- |
555 |
- distutils-r1_python_prepare_all |
556 |
-} |
557 |
- |
558 |
-python_prepare() { |
559 |
- einfo "Fixing collections.abc warnings for ${EPYTHON}" |
560 |
- local abc |
561 |
- abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die |
562 |
- find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die |
563 |
-} |
564 |
- |
565 |
-python_install_all() { |
566 |
- local svc |
567 |
- USE_SETUPTOOLS=1 distutils-r1_python_install_all |
568 |
- |
569 |
- for svc in minion master syndic api; do |
570 |
- newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
571 |
- newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
572 |
- systemd_dounit "${FILESDIR}"/salt-${svc}.service |
573 |
- done |
574 |
- |
575 |
- insinto /etc/${PN} |
576 |
- doins -r conf/* |
577 |
-} |
578 |
- |
579 |
-python_test() { |
580 |
- local tempdir |
581 |
- # testsuite likes lots of files |
582 |
- ulimit -n 3072 || die |
583 |
- |
584 |
- # ${T} is too long a path for the tests to work |
585 |
- tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" |
586 |
- mkdir "${T}/$(basename "${tempdir}")" |
587 |
- |
588 |
- ( |
589 |
- cleanup() { rm -f "${tempdir}" || die; } |
590 |
- |
591 |
- trap cleanup EXIT |
592 |
- |
593 |
- addwrite "${tempdir}" |
594 |
- ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die |
595 |
- |
596 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
597 |
- TMPDIR="${tempdir}" \ |
598 |
- ${EPYTHON} tests/runtests.py \ |
599 |
- --unit-tests --no-report --verbose \ |
600 |
- || die "testing failed with ${EPYTHON}" |
601 |
- ) |
602 |
-} |
603 |
- |
604 |
-pkg_postinst() { |
605 |
- if use python_targets_python3_8; then |
606 |
- if use nova; then |
607 |
- ewarn "Salt's nova functionality will not work with python3.8 since" |
608 |
- ewarn "dev-python/python-novaclient does not support it yet" |
609 |
- fi |
610 |
- if use neutron; then |
611 |
- ewarn "Salt's neutron functionality will not work with python3.8 since" |
612 |
- ewarn "dev-python/python-neutronclient does not support it yet" |
613 |
- fi |
614 |
- if use libvirt; then |
615 |
- ewarn "Salt's libvirt functionality will not work with python3.8 since" |
616 |
- ewarn "dev-python/libvirt-python does not support it yet" |
617 |
- fi |
618 |
- fi |
619 |
-} |
620 |
|
621 |
diff --git a/app-admin/salt/salt-3002.2-r4.ebuild b/app-admin/salt/salt-3002.2-r4.ebuild |
622 |
deleted file mode 100644 |
623 |
index 7c65d1b1980..00000000000 |
624 |
--- a/app-admin/salt/salt-3002.2-r4.ebuild |
625 |
+++ /dev/null |
626 |
@@ -1,185 +0,0 @@ |
627 |
-# Copyright 1999-2021 Gentoo Authors |
628 |
-# Distributed under the terms of the GNU General Public License v2 |
629 |
- |
630 |
-EAPI=7 |
631 |
-PYTHON_COMPAT=( python3_{7..8} ) |
632 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
633 |
-inherit systemd distutils-r1 |
634 |
- |
635 |
-DESCRIPTION="Salt is a remote execution and configuration manager" |
636 |
-HOMEPAGE="https://www.saltstack.com/resources/community/ |
637 |
- https://github.com/saltstack" |
638 |
- |
639 |
-if [[ ${PV} == 9999* ]]; then |
640 |
- inherit git-r3 |
641 |
- EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
642 |
- EGIT_BRANCH="develop" |
643 |
- SRC_URI="" |
644 |
-else |
645 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
646 |
- KEYWORDS="~amd64 ~arm ~x86" |
647 |
-fi |
648 |
- |
649 |
-LICENSE="Apache-2.0" |
650 |
-SLOT="0" |
651 |
-IUSE="cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako |
652 |
- mongodb neutron nova openssl portage profile redis selinux test raet |
653 |
- +zeromq vim-syntax" |
654 |
- |
655 |
-RDEPEND=" |
656 |
- sys-apps/pciutils |
657 |
- >=dev-python/distro-1.5[${PYTHON_USEDEP}] |
658 |
- dev-python/jinja[${PYTHON_USEDEP}] |
659 |
- dev-python/libnacl[${PYTHON_USEDEP}] |
660 |
- >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] |
661 |
- >=dev-python/pycryptodome-3.9.8[${PYTHON_USEDEP}] |
662 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
663 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
664 |
- >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
665 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
666 |
- dev-python/toml[${PYTHON_USEDEP}] |
667 |
- dev-python/watchdog[${PYTHON_USEDEP}] |
668 |
- libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
669 |
- mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
670 |
- ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
671 |
- libvirt? ( |
672 |
- $(python_gen_cond_dep 'dev-python/libvirt-python[${PYTHON_USEDEP}]' python3_7) |
673 |
- ) |
674 |
- openssl? ( |
675 |
- dev-libs/openssl:0=[-bindist] |
676 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
677 |
- ) |
678 |
- raet? ( |
679 |
- >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
680 |
- >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
681 |
- >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
682 |
- ) |
683 |
- cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
684 |
- cheetah? ( dev-python/cheetah3[${PYTHON_USEDEP}] ) |
685 |
- mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
686 |
- portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
687 |
- keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
688 |
- redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
689 |
- selinux? ( sec-policy/selinux-salt ) |
690 |
- nova? ( |
691 |
- $(python_gen_cond_dep '>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]' python3_7) |
692 |
- ) |
693 |
- neutron? ( |
694 |
- $(python_gen_cond_dep '>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]' python3_7) |
695 |
- ) |
696 |
- gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
697 |
- profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
698 |
- vim-syntax? ( app-vim/salt-vim ) |
699 |
- zeromq? ( >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] ) |
700 |
-" |
701 |
-BDEPEND=" |
702 |
- test? ( |
703 |
- ${RDEPEND} |
704 |
- >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
705 |
- >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] |
706 |
- >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
707 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
708 |
- >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
709 |
- dev-python/pip[${PYTHON_USEDEP}] |
710 |
- dev-python/psutil[${PYTHON_USEDEP}] |
711 |
- dev-python/pytest[${PYTHON_USEDEP}] |
712 |
- dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
713 |
- >=dev-python/pytest-salt-factories-0.93.0[${PYTHON_USEDEP}] |
714 |
- dev-python/pytest-tempdir[${PYTHON_USEDEP}] |
715 |
- >=dev-python/virtualenv-20.0.20[${PYTHON_USEDEP}] |
716 |
- !x86? ( >=dev-python/boto3-1.3.15[${PYTHON_USEDEP}] ) |
717 |
- )" |
718 |
- |
719 |
-DOCS=( README.rst AUTHORS ) |
720 |
- |
721 |
-REQUIRED_USE="|| ( raet zeromq ) |
722 |
- test? ( cheetah genshi )" |
723 |
-RESTRICT="!test? ( test ) x86? ( test )" |
724 |
- |
725 |
-PATCHES=( |
726 |
- "${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" |
727 |
- "${FILESDIR}/salt-3002-dont-realpath-on-tmpdir.patch" |
728 |
- "${FILESDIR}/salt-3002-tests.patch" |
729 |
-) |
730 |
- |
731 |
-python_prepare_all() { |
732 |
- # remove tests with external dependencies that may not be available |
733 |
- rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die |
734 |
- rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
735 |
- rm tests/unit/states/test_boto_vpc.py || die |
736 |
- rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die |
737 |
- |
738 |
- # tests that require network access |
739 |
- rm tests/unit/{states,modules}/test_zcbuildout.py || die |
740 |
- |
741 |
- # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
742 |
- # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
743 |
- find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die |
744 |
- # pycryptodome rather than pycryptodomex |
745 |
- find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die |
746 |
- |
747 |
- distutils-r1_python_prepare_all |
748 |
-} |
749 |
- |
750 |
-python_prepare() { |
751 |
- einfo "Fixing collections.abc warnings for ${EPYTHON}" |
752 |
- local abc |
753 |
- abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die |
754 |
- find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die |
755 |
-} |
756 |
- |
757 |
-python_install_all() { |
758 |
- local svc |
759 |
- USE_SETUPTOOLS=1 distutils-r1_python_install_all |
760 |
- |
761 |
- for svc in minion master syndic api; do |
762 |
- newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc} |
763 |
- newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
764 |
- systemd_dounit "${FILESDIR}"/salt-${svc}.service |
765 |
- done |
766 |
- |
767 |
- insinto /etc/${PN} |
768 |
- doins -r conf/* |
769 |
-} |
770 |
- |
771 |
-python_test() { |
772 |
- local tempdir |
773 |
- # testsuite likes lots of files |
774 |
- ulimit -n 3072 || die |
775 |
- |
776 |
- # ${T} is too long a path for the tests to work |
777 |
- tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" |
778 |
- mkdir "${T}/$(basename "${tempdir}")" |
779 |
- |
780 |
- ( |
781 |
- cleanup() { rm -f "${tempdir}" || die; } |
782 |
- |
783 |
- trap cleanup EXIT |
784 |
- |
785 |
- addwrite "${tempdir}" |
786 |
- ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die |
787 |
- |
788 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
789 |
- TMPDIR="${tempdir}" \ |
790 |
- ${EPYTHON} tests/runtests.py \ |
791 |
- --unit-tests --no-report --verbose \ |
792 |
- || die "testing failed with ${EPYTHON}" |
793 |
- ) |
794 |
-} |
795 |
- |
796 |
-pkg_postinst() { |
797 |
- if use python_targets_python3_8; then |
798 |
- if use nova; then |
799 |
- ewarn "Salt's nova functionality will not work with python3.8 since" |
800 |
- ewarn "dev-python/python-novaclient does not support it yet" |
801 |
- fi |
802 |
- if use neutron; then |
803 |
- ewarn "Salt's neutron functionality will not work with python3.8 since" |
804 |
- ewarn "dev-python/python-neutronclient does not support it yet" |
805 |
- fi |
806 |
- if use libvirt; then |
807 |
- ewarn "Salt's libvirt functionality will not work with python3.8 since" |
808 |
- ewarn "dev-python/libvirt-python does not support it yet" |
809 |
- fi |
810 |
- fi |
811 |
-} |