1 |
commit: 0209d23f9c0a4365b63f57d50cc664afdcf86da8 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Thu Apr 30 17:58:03 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 30 17:58:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0209d23f |
7 |
|
8 |
app-admin/salt: Clean out vunlerable versions (bug #720056) |
9 |
|
10 |
Bug: https://bugs.gentoo.org/720056 |
11 |
Copyright: Sony Interactive Entertainment Inc. |
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
14 |
|
15 |
app-admin/salt/Manifest | 1 - |
16 |
...salt-2018.3.2-skip-zeromq-test-that-hangs.patch | 79 ----------- |
17 |
app-admin/salt/files/salt-2018.3.4-tests.patch | 76 ----------- |
18 |
app-admin/salt/salt-2018.3.4.ebuild | 147 --------------------- |
19 |
4 files changed, 303 deletions(-) |
20 |
|
21 |
diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest |
22 |
index 1e5653bb58c..64303c5476b 100644 |
23 |
--- a/app-admin/salt/Manifest |
24 |
+++ b/app-admin/salt/Manifest |
25 |
@@ -1,3 +1,2 @@ |
26 |
-DIST salt-2018.3.4.tar.gz 14404085 BLAKE2B 932b30b1ba60aefd3a6874a8ebe4cb6c469d82e31f6acdbe8a5641d09e3316796b5403ef803a355cec6255c1aede8bac3b66af179bd1bbaa5418c7076229cef9 SHA512 f17e06fdbf4741f231d9e769be57de4f6079e9283881b4bafa0d23928d7626a1f9c02b9f49c654b29c3e6ee8ed3d3ddf42c21baecef158ad63a97dc87895b21b |
27 |
DIST salt-2019.2.4.tar.gz 14572556 BLAKE2B a1057baa5ab6c0a07f34ce658a1d5bc644f968600663d28d084eb712b55faaee93b8410d81c4b5324944e6e1f2067ffb102200088832e1b0076fed78c8542ae6 SHA512 9e621cbd78ead1060a2b0c07e7ef02e8c4590360a95c51ac29fa8c1add34f617e4407dd28b67cae3b0fd68b333782185edcf1159edd2db08e8b4e79b6b07a63f |
28 |
DIST salt-3000.2.tar.gz 15231513 BLAKE2B 2090d0f52f953a42f1685ad190750e9c76ad6e862a3272444fef063a7605f69a6c542f04165a41fb9cdaa126a878cc133d4857faa70edc5eac4bf49bdde937ab SHA512 88e8876ed8cd18e942c2194686cda68f40fa49e69e317ca488bf58e095bcf6cdf8771d93eba7960038941cc5863e13a4eea4dad5256c12da7cd8288a2c61f59d |
29 |
|
30 |
diff --git a/app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch b/app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch |
31 |
deleted file mode 100644 |
32 |
index 7b94fafd447..00000000000 |
33 |
--- a/app-admin/salt/files/salt-2018.3.2-skip-zeromq-test-that-hangs.patch |
34 |
+++ /dev/null |
35 |
@@ -1,79 +0,0 @@ |
36 |
-diff --git a/tests/unit/transport/test_zeromq.py b/tests/unit/transport/test_zeromq.py |
37 |
-index ccb337462e..97d2962e5e 100644 |
38 |
---- a/tests/unit/transport/test_zeromq.py |
39 |
-+++ b/tests/unit/transport/test_zeromq.py |
40 |
-@@ -45,6 +45,10 @@ ON_SUSE = False |
41 |
- if 'SuSE' in linux_distribution(full_distribution_name=False): |
42 |
- ON_SUSE = True |
43 |
- |
44 |
-+ON_GENTOO = False |
45 |
-+if 'Gentoo' in linux_distribution(full_distribution_name=False): |
46 |
-+ ON_GENTOO = True |
47 |
-+ |
48 |
- |
49 |
- class BaseZMQReqCase(TestCase, AdaptedConfigurationTestCaseMixin): |
50 |
- ''' |
51 |
-@@ -122,63 +126,6 @@ class BaseZMQReqCase(TestCase, AdaptedConfigurationTestCaseMixin): |
52 |
- return payload, {'fun': 'send_clear'} |
53 |
- |
54 |
- |
55 |
--class ClearReqTestCases(BaseZMQReqCase, ReqChannelMixin): |
56 |
-- ''' |
57 |
-- Test all of the clear msg stuff |
58 |
-- ''' |
59 |
-- def setUp(self): |
60 |
-- self.channel = salt.transport.client.ReqChannel.factory(self.minion_config, crypt='clear') |
61 |
-- |
62 |
-- def tearDown(self): |
63 |
-- del self.channel |
64 |
-- |
65 |
-- @classmethod |
66 |
-- @tornado.gen.coroutine |
67 |
-- def _handle_payload(cls, payload): |
68 |
-- ''' |
69 |
-- TODO: something besides echo |
70 |
-- ''' |
71 |
-- raise tornado.gen.Return((payload, {'fun': 'send_clear'})) |
72 |
-- |
73 |
-- |
74 |
--@flaky |
75 |
--@skipIf(ON_SUSE, 'Skipping until https://github.com/saltstack/salt/issues/32902 gets fixed') |
76 |
--class AESReqTestCases(BaseZMQReqCase, ReqChannelMixin): |
77 |
-- def setUp(self): |
78 |
-- self.channel = salt.transport.client.ReqChannel.factory(self.minion_config) |
79 |
-- |
80 |
-- def tearDown(self): |
81 |
-- del self.channel |
82 |
-- |
83 |
-- @classmethod |
84 |
-- @tornado.gen.coroutine |
85 |
-- def _handle_payload(cls, payload): |
86 |
-- ''' |
87 |
-- TODO: something besides echo |
88 |
-- ''' |
89 |
-- raise tornado.gen.Return((payload, {'fun': 'send'})) |
90 |
-- |
91 |
-- # TODO: make failed returns have a specific framing so we can raise the same exception |
92 |
-- # on encrypted channels |
93 |
-- # |
94 |
-- #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
95 |
-- # |
96 |
-- # WARNING: This test will fail randomly on any system with > 1 CPU core!!! |
97 |
-- # |
98 |
-- #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
99 |
-- def test_badload(self): |
100 |
-- ''' |
101 |
-- Test a variety of bad requests, make sure that we get some sort of error |
102 |
-- ''' |
103 |
-- # TODO: This test should be re-enabled when Jenkins moves to C7. |
104 |
-- # Once the version of salt-testing is increased to something newer than the September |
105 |
-- # release of salt-testing, the @flaky decorator should be applied to this test. |
106 |
-- msgs = ['', [], tuple()] |
107 |
-- for msg in msgs: |
108 |
-- with self.assertRaises(salt.exceptions.AuthenticationError): |
109 |
-- ret = self.channel.send(msg, timeout=5) |
110 |
-- |
111 |
-- |
112 |
- class BaseZMQPubCase(AsyncTestCase, AdaptedConfigurationTestCaseMixin): |
113 |
- ''' |
114 |
- Test the req server/client pair |
115 |
|
116 |
diff --git a/app-admin/salt/files/salt-2018.3.4-tests.patch b/app-admin/salt/files/salt-2018.3.4-tests.patch |
117 |
deleted file mode 100644 |
118 |
index ac3dbb84534..00000000000 |
119 |
--- a/app-admin/salt/files/salt-2018.3.4-tests.patch |
120 |
+++ /dev/null |
121 |
@@ -1,76 +0,0 @@ |
122 |
-diff --git a/tests/unit/grains/test_core.py b/tests/unit/grains/test_core.py |
123 |
-index 3874b0001c..40304075eb 100644 |
124 |
---- a/tests/unit/grains/test_core.py |
125 |
-+++ b/tests/unit/grains/test_core.py |
126 |
-@@ -685,22 +685,6 @@ class CoreGrainsTestCase(TestCase, LoaderModuleMockMixin): |
127 |
- 'Docker' |
128 |
- ) |
129 |
- |
130 |
-- @skipIf(salt.utils.platform.is_windows(), 'System is Windows') |
131 |
-- def test_xen_virtual(self): |
132 |
-- ''' |
133 |
-- Test if OS grains are parsed correctly in Ubuntu Xenial Xerus |
134 |
-- ''' |
135 |
-- with patch.object(os.path, 'isfile', MagicMock(return_value=False)): |
136 |
-- with patch.dict(core.__salt__, {'cmd.run': MagicMock(return_value='')}), \ |
137 |
-- patch.object(os.path, |
138 |
-- 'isfile', |
139 |
-- MagicMock(side_effect=lambda x: True if x == '/sys/bus/xen/drivers/xenconsole' else False)): |
140 |
-- log.debug('Testing Xen') |
141 |
-- self.assertEqual( |
142 |
-- core._virtual({'kernel': 'Linux'}).get('virtual_subtype'), |
143 |
-- 'Xen PV DomU' |
144 |
-- ) |
145 |
-- |
146 |
- def _check_ipaddress(self, value, ip_v): |
147 |
- ''' |
148 |
- check if ip address in a list is valid |
149 |
-diff --git a/tests/unit/utils/test_asynchronous.py b/tests/unit/utils/test_asynchronous.py |
150 |
-index 694a7aebfe..9e22c278e9 100644 |
151 |
---- a/tests/unit/utils/test_asynchronous.py |
152 |
-+++ b/tests/unit/utils/test_asynchronous.py |
153 |
-@@ -35,19 +35,6 @@ class HelperB(object): |
154 |
- |
155 |
- |
156 |
- class TestSyncWrapper(AsyncTestCase): |
157 |
-- @tornado.testing.gen_test |
158 |
-- def test_helpers(self): |
159 |
-- ''' |
160 |
-- Test that the helper classes do what we expect within a regular asynchronous env |
161 |
-- ''' |
162 |
-- ha = HelperA() |
163 |
-- ret = yield ha.sleep() |
164 |
-- self.assertTrue(ret) |
165 |
-- |
166 |
-- hb = HelperB() |
167 |
-- ret = yield hb.sleep() |
168 |
-- self.assertFalse(ret) |
169 |
-- |
170 |
- def test_basic_wrap(self): |
171 |
- ''' |
172 |
- Test that we can wrap an asynchronous caller. |
173 |
-@@ -55,24 +42,3 @@ class TestSyncWrapper(AsyncTestCase): |
174 |
- sync = asynchronous.SyncWrapper(HelperA) |
175 |
- ret = sync.sleep() |
176 |
- self.assertTrue(ret) |
177 |
-- |
178 |
-- def test_double(self): |
179 |
-- ''' |
180 |
-- Test when the asynchronous wrapper object itself creates a wrap of another thing |
181 |
-- |
182 |
-- This works fine since the second wrap is based on the first's IOLoop so we |
183 |
-- don't have to worry about complex start/stop mechanics |
184 |
-- ''' |
185 |
-- sync = asynchronous.SyncWrapper(HelperB) |
186 |
-- ret = sync.sleep() |
187 |
-- self.assertFalse(ret) |
188 |
-- |
189 |
-- def test_double_sameloop(self): |
190 |
-- ''' |
191 |
-- Test asynchronous wrappers initiated from the same IOLoop, to ensure that |
192 |
-- we don't wire up both to the same IOLoop (since it causes MANY problems). |
193 |
-- ''' |
194 |
-- a = asynchronous.SyncWrapper(HelperA) |
195 |
-- sync = asynchronous.SyncWrapper(HelperB, (a,)) |
196 |
-- ret = sync.sleep() |
197 |
-- self.assertFalse(ret) |
198 |
|
199 |
diff --git a/app-admin/salt/salt-2018.3.4.ebuild b/app-admin/salt/salt-2018.3.4.ebuild |
200 |
deleted file mode 100644 |
201 |
index 20f68c64964..00000000000 |
202 |
--- a/app-admin/salt/salt-2018.3.4.ebuild |
203 |
+++ /dev/null |
204 |
@@ -1,147 +0,0 @@ |
205 |
-# Copyright 1999-2020 Gentoo Authors |
206 |
-# Distributed under the terms of the GNU General Public License v2 |
207 |
- |
208 |
-EAPI=7 |
209 |
-PYTHON_COMPAT=( python3_6 ) |
210 |
- |
211 |
-inherit eutils systemd distutils-r1 |
212 |
- |
213 |
-DESCRIPTION="Salt is a remote execution and configuration manager" |
214 |
-HOMEPAGE="https://www.saltstack.com/resources/community/ |
215 |
- https://github.com/saltstack" |
216 |
- |
217 |
-if [[ ${PV} == 9999* ]]; then |
218 |
- inherit git-r3 |
219 |
- EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
220 |
- EGIT_BRANCH="develop" |
221 |
- SRC_URI="" |
222 |
- KEYWORDS="" |
223 |
-else |
224 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
225 |
- KEYWORDS="~amd64 ~x86" |
226 |
-fi |
227 |
- |
228 |
-LICENSE="Apache-2.0" |
229 |
-SLOT="0" |
230 |
-IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb neutron nova" |
231 |
-IUSE+=" openssl portage profile redis selinux test raet +zeromq vim-syntax" |
232 |
- |
233 |
-RDEPEND="sys-apps/pciutils |
234 |
- dev-python/jinja[${PYTHON_USEDEP}] |
235 |
- dev-python/libnacl[${PYTHON_USEDEP}] |
236 |
- >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] |
237 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
238 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
239 |
- >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
240 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
241 |
- >=www-servers/tornado-4.2.1[${PYTHON_USEDEP}] |
242 |
- <www-servers/tornado-5.0[${PYTHON_USEDEP}] |
243 |
- libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
244 |
- mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
245 |
- ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
246 |
- libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) |
247 |
- openssl? ( |
248 |
- dev-libs/openssl:0=[-bindist] |
249 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
250 |
- ) |
251 |
- raet? ( |
252 |
- >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
253 |
- >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
254 |
- >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
255 |
- ) |
256 |
- zeromq? ( |
257 |
- >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] |
258 |
- dev-python/pycryptodome[${PYTHON_USEDEP}] |
259 |
- ) |
260 |
- cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
261 |
- mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
262 |
- portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
263 |
- keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
264 |
- redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
265 |
- selinux? ( sec-policy/selinux-salt ) |
266 |
- nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) |
267 |
- neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] ) |
268 |
- gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
269 |
- profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
270 |
- vim-syntax? ( app-vim/salt-vim )" |
271 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
272 |
- test? ( |
273 |
- dev-python/pytest-salt[${PYTHON_USEDEP}] |
274 |
- dev-python/psutil[${PYTHON_USEDEP}] |
275 |
- dev-python/pytest[${PYTHON_USEDEP}] |
276 |
- dev-python/pytest-catchlog[${PYTHON_USEDEP}] |
277 |
- dev-python/pip[${PYTHON_USEDEP}] |
278 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
279 |
- >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
280 |
- >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
281 |
- !x86? ( >=dev-python/boto3-1.2.1[${PYTHON_USEDEP}] ) |
282 |
- >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
283 |
- >=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] |
284 |
- >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
285 |
- ${RDEPEND} |
286 |
- )" |
287 |
- |
288 |
-DOCS=( README.rst AUTHORS ) |
289 |
- |
290 |
-REQUIRED_USE="|| ( raet zeromq )" |
291 |
-RESTRICT="!test? ( test ) x86? ( test )" |
292 |
- |
293 |
-PATCHES=( |
294 |
- "${FILESDIR}/${PN}-2017.7.0-dont-realpath-tmpdir.patch" |
295 |
- "${FILESDIR}/${PN}-2018.3.4-tests.patch" |
296 |
- "${FILESDIR}/${PN}-2018.3.2-skip-zeromq-test-that-hangs.patch" |
297 |
-) |
298 |
- |
299 |
-python_prepare() { |
300 |
- # remove tests with external dependencies that may not be available |
301 |
- rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die |
302 |
- rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
303 |
- rm tests/unit/states/test_boto_vpc.py || die |
304 |
- rm tests/unit/modules/test_{kubernetes,vsphere}.py || die |
305 |
- |
306 |
- # allow the use of the renamed msgpack |
307 |
- sed -i '/^msgpack/d' requirements/base.txt || die |
308 |
-} |
309 |
- |
310 |
-python_install_all() { |
311 |
- local svc |
312 |
- USE_SETUPTOOLS=1 distutils-r1_python_install_all |
313 |
- |
314 |
- for svc in minion master syndic api; do |
315 |
- newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
316 |
- newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
317 |
- systemd_dounit "${FILESDIR}"/salt-${svc}.service |
318 |
- done |
319 |
- |
320 |
- insinto /etc/${PN} |
321 |
- doins -r conf/* |
322 |
-} |
323 |
- |
324 |
-python_test() { |
325 |
- local tempdir |
326 |
- # testsuite likes lots of files |
327 |
- ulimit -n 3072 || die |
328 |
- |
329 |
- # ${T} is too long a path for the tests to work |
330 |
- tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" |
331 |
- mkdir "${T}/$(basename "${tempdir}")" |
332 |
- mkdir "${BUILD_DIR}"/../{templates,conf/cloud.{providers,profiles,maps}.d} || die |
333 |
- |
334 |
- ( |
335 |
- cleanup() { |
336 |
- rm -f "${tempdir}" |
337 |
- rmdir "${BUILD_DIR}"/../{templates,conf/cloud.{providers,profiles,maps}.d} || die |
338 |
- } |
339 |
- |
340 |
- trap cleanup EXIT |
341 |
- |
342 |
- addwrite "${tempdir}" |
343 |
- ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" |
344 |
- |
345 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
346 |
- TMPDIR="${tempdir}" \ |
347 |
- ${EPYTHON} tests/runtests.py \ |
348 |
- --unit-tests --no-report --verbose |
349 |
- |
350 |
- ) || die "testing failed" |
351 |
-} |