1 |
commit: 561feb61da662200590994ec719372d3991c4094 |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jun 30 17:48:13 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 07:34:27 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=561feb61 |
7 |
|
8 |
app-admin/salt: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/1802 |
11 |
|
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
app-admin/salt/files/api-initd-3 | 14 --- |
15 |
app-admin/salt/files/master-initd-3 | 14 --- |
16 |
app-admin/salt/files/minion-initd-3 | 15 --- |
17 |
.../salt/files/salt-2014.7.5-archive-test.patch | 15 --- |
18 |
.../salt/files/salt-2015.5.0-archive-test.patch | 15 --- |
19 |
...alt-2015.5.1-skip-libvirt-test-on-nonroot.patch | 20 ---- |
20 |
.../salt-2015.8.0-remove-pydsl-includes-test.patch | 107 --------------------- |
21 |
.../salt/files/salt-2015.8.4-boto-vpc-test.patch | 13 --- |
22 |
app-admin/salt/files/syndic-initd-3 | 14 --- |
23 |
9 files changed, 227 deletions(-) |
24 |
|
25 |
diff --git a/app-admin/salt/files/api-initd-3 b/app-admin/salt/files/api-initd-3 |
26 |
deleted file mode 100644 |
27 |
index 8a6f026..0000000 |
28 |
--- a/app-admin/salt/files/api-initd-3 |
29 |
+++ /dev/null |
30 |
@@ -1,14 +0,0 @@ |
31 |
-#!/sbin/openrc-run |
32 |
-# Copyright 1999-2014 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
-# $Id$ |
35 |
- |
36 |
-command="/usr/bin/salt-api" |
37 |
-command_args="${SALT_OPTS}" |
38 |
-command_background="1" |
39 |
-pidfile="/var/run/salt-api.pid" |
40 |
-name="SALT API daemon" |
41 |
- |
42 |
-depend() { |
43 |
- use net logger |
44 |
-} |
45 |
|
46 |
diff --git a/app-admin/salt/files/master-initd-3 b/app-admin/salt/files/master-initd-3 |
47 |
deleted file mode 100644 |
48 |
index c0cfead..0000000 |
49 |
--- a/app-admin/salt/files/master-initd-3 |
50 |
+++ /dev/null |
51 |
@@ -1,14 +0,0 @@ |
52 |
-#!/sbin/openrc-run |
53 |
-# Copyright 1999-2014 Gentoo Foundation |
54 |
-# Distributed under the terms of the GNU General Public License v2 |
55 |
-# $Id$ |
56 |
- |
57 |
-command="/usr/bin/salt-master" |
58 |
-command_args="${SALT_OPTS}" |
59 |
-command_background="1" |
60 |
-pidfile="/var/run/salt-master.pid" |
61 |
-name="SALT master daemon" |
62 |
- |
63 |
-depend() { |
64 |
- use net logger |
65 |
-} |
66 |
|
67 |
diff --git a/app-admin/salt/files/minion-initd-3 b/app-admin/salt/files/minion-initd-3 |
68 |
deleted file mode 100644 |
69 |
index 2a1aa12..0000000 |
70 |
--- a/app-admin/salt/files/minion-initd-3 |
71 |
+++ /dev/null |
72 |
@@ -1,15 +0,0 @@ |
73 |
-#!/sbin/openrc-run |
74 |
-# Copyright 1999-2014 Gentoo Foundation |
75 |
-# Distributed under the terms of the GNU General Public License v2 |
76 |
-# $Id$ |
77 |
- |
78 |
-command="/usr/bin/salt-minion" |
79 |
-command_args="${SALT_OPTS}" |
80 |
-command_background="1" |
81 |
-pidfile="/var/run/salt-minion.pid" |
82 |
-name="SALT minion daemon" |
83 |
- |
84 |
-depend() { |
85 |
- need net |
86 |
- use logger |
87 |
-} |
88 |
|
89 |
diff --git a/app-admin/salt/files/salt-2014.7.5-archive-test.patch b/app-admin/salt/files/salt-2014.7.5-archive-test.patch |
90 |
deleted file mode 100644 |
91 |
index f7ff561..0000000 |
92 |
--- a/app-admin/salt/files/salt-2014.7.5-archive-test.patch |
93 |
+++ /dev/null |
94 |
@@ -1,15 +0,0 @@ |
95 |
-diff --git a/tests/unit/states/archive_test.py b/tests/unit/states/archive_test.py |
96 |
-index a7f3005..bb0bc45 100644 |
97 |
---- a/tests/unit/states/archive_test.py |
98 |
-+++ b/tests/unit/states/archive_test.py |
99 |
-@@ -78,9 +78,7 @@ class ArchiveTest(TestCase): |
100 |
- running_as = 'root' |
101 |
- filename = os.path.join( |
102 |
- tmp_dir, |
103 |
-- 'files/test/_tmp{0}_test_archive.tar'.format( |
104 |
-- '' if running_as == 'root' else '_{0}'.format(running_as) |
105 |
-- ) |
106 |
-+ 'files/test/_tmp_test_archive.tar' |
107 |
- ) |
108 |
- for test_opts, ret_opts in zip(test_tar_opts, ret_tar_opts): |
109 |
- ret = archive.extracted(tmp_dir, |
110 |
|
111 |
diff --git a/app-admin/salt/files/salt-2015.5.0-archive-test.patch b/app-admin/salt/files/salt-2015.5.0-archive-test.patch |
112 |
deleted file mode 100644 |
113 |
index c474223..0000000 |
114 |
--- a/app-admin/salt/files/salt-2015.5.0-archive-test.patch |
115 |
+++ /dev/null |
116 |
@@ -1,15 +0,0 @@ |
117 |
-diff --git a/tests/unit/states/archive_test.py b/tests/unit/states/archive_test.py |
118 |
-index 588ec1a..acd53fa 100644 |
119 |
---- a/tests/unit/states/archive_test.py |
120 |
-+++ b/tests/unit/states/archive_test.py |
121 |
-@@ -78,9 +78,7 @@ class ArchiveTest(TestCase): |
122 |
- running_as = 'root' |
123 |
- filename = os.path.join( |
124 |
- tmp_dir, |
125 |
-- 'files/test/_tmp{0}_test_archive_.tar'.format( |
126 |
-- '' if running_as == 'root' else '_{0}'.format(running_as) |
127 |
-- ) |
128 |
-+ 'files/test/_tmp_test_archive_.tar' |
129 |
- ) |
130 |
- for test_opts, ret_opts in zip(test_tar_opts, ret_tar_opts): |
131 |
- ret = archive.extracted(tmp_dir, |
132 |
|
133 |
diff --git a/app-admin/salt/files/salt-2015.5.1-skip-libvirt-test-on-nonroot.patch b/app-admin/salt/files/salt-2015.5.1-skip-libvirt-test-on-nonroot.patch |
134 |
deleted file mode 100644 |
135 |
index acb8a09..0000000 |
136 |
--- a/app-admin/salt/files/salt-2015.5.1-skip-libvirt-test-on-nonroot.patch |
137 |
+++ /dev/null |
138 |
@@ -1,20 +0,0 @@ |
139 |
-diff --git a/tests/unit/states/libvirt_test.py b/tests/unit/states/libvirt_test.py |
140 |
-index ec09542..477e5c3 100644 |
141 |
---- a/tests/unit/states/libvirt_test.py |
142 |
-+++ b/tests/unit/states/libvirt_test.py |
143 |
-@@ -4,6 +4,7 @@ |
144 |
- ''' |
145 |
- # Import Python libs |
146 |
- from __future__ import absolute_import |
147 |
-+import os |
148 |
- |
149 |
- # Import Salt Testing Libs |
150 |
- from salttesting import skipIf, TestCase |
151 |
-@@ -27,6 +28,7 @@ libvirt.__opts__ = {} |
152 |
- |
153 |
- |
154 |
- @skipIf(NO_MOCK, NO_MOCK_REASON) |
155 |
-+@skipIf(os.geteuid() != 0, 'You must be logged in as root to run this test') |
156 |
- class LibvirtTestCase(TestCase): |
157 |
- ''' |
158 |
- Test cases for salt.states.libvirt |
159 |
|
160 |
diff --git a/app-admin/salt/files/salt-2015.8.0-remove-pydsl-includes-test.patch b/app-admin/salt/files/salt-2015.8.0-remove-pydsl-includes-test.patch |
161 |
deleted file mode 100644 |
162 |
index 469e0d2..0000000 |
163 |
--- a/app-admin/salt/files/salt-2015.8.0-remove-pydsl-includes-test.patch |
164 |
+++ /dev/null |
165 |
@@ -1,107 +0,0 @@ |
166 |
-diff --git a/tests/unit/pydsl_test.py b/tests/unit/pydsl_test.py |
167 |
-index 2f39a41..2052f55 100644 |
168 |
---- a/tests/unit/pydsl_test.py |
169 |
-+++ b/tests/unit/pydsl_test.py |
170 |
-@@ -445,102 +445,6 @@ class PyDSLRendererTestCase(CommonTestCaseBoilerplate): |
171 |
- shutil.rmtree(dirpath, ignore_errors=True) |
172 |
- |
173 |
- |
174 |
--class PyDSLRendererIncludeTestCase(CommonTestCaseBoilerplate): |
175 |
-- |
176 |
-- def test_rendering_includes(self): |
177 |
-- dirpath = tempfile.mkdtemp(dir=integration.SYS_TMP_DIR) |
178 |
-- if not os.path.isdir(dirpath): |
179 |
-- self.skipTest( |
180 |
-- 'The temporary directory {0!r} was not created'.format( |
181 |
-- dirpath |
182 |
-- ) |
183 |
-- ) |
184 |
-- output = os.path.join(dirpath, 'output') |
185 |
-- try: |
186 |
-- write_to(os.path.join(dirpath, 'aaa.sls'), textwrap.dedent('''\ |
187 |
-- #!pydsl|stateconf -ps |
188 |
-- |
189 |
-- include('xxx') |
190 |
-- yyy = include('yyy') |
191 |
-- |
192 |
-- # ensure states in xxx are run first, then those in yyy and then those in aaa last. |
193 |
-- extend(state('yyy::start').stateconf.require(stateconf='xxx::goal')) |
194 |
-- extend(state('.start').stateconf.require(stateconf='yyy::goal')) |
195 |
-- |
196 |
-- extend(state('yyy::Y2').cmd.run('echo Y2 extended >> {0}')) |
197 |
-- |
198 |
-- __pydsl__.set(ordered=True) |
199 |
-- |
200 |
-- yyy.hello('red', 1) |
201 |
-- yyy.hello('green', 2) |
202 |
-- yyy.hello('blue', 3) |
203 |
-- '''.format(output))) |
204 |
-- |
205 |
-- write_to(os.path.join(dirpath, 'xxx.sls'), textwrap.dedent('''\ |
206 |
-- #!stateconf -os yaml . jinja |
207 |
-- |
208 |
-- include: |
209 |
-- - yyy |
210 |
-- |
211 |
-- extend: |
212 |
-- yyy::start: |
213 |
-- stateconf.set: |
214 |
-- - require: |
215 |
-- - stateconf: .goal |
216 |
-- |
217 |
-- yyy::Y1: |
218 |
-- cmd.run: |
219 |
-- - name: 'echo Y1 extended >> {0}' |
220 |
-- |
221 |
-- .X1: |
222 |
-- cmd.run: |
223 |
-- - name: echo X1 >> {1} |
224 |
-- - cwd: / |
225 |
-- .X2: |
226 |
-- cmd.run: |
227 |
-- - name: echo X2 >> {2} |
228 |
-- - cwd: / |
229 |
-- .X3: |
230 |
-- cmd.run: |
231 |
-- - name: echo X3 >> {3} |
232 |
-- - cwd: / |
233 |
-- |
234 |
-- '''.format(output, output, output, output))) |
235 |
-- |
236 |
-- write_to(os.path.join(dirpath, 'yyy.sls'), textwrap.dedent('''\ |
237 |
-- #!pydsl|stateconf -ps |
238 |
-- |
239 |
-- include('xxx') |
240 |
-- __pydsl__.set(ordered=True) |
241 |
-- |
242 |
-- state('.Y1').cmd.run('echo Y1 >> {0}', cwd='/') |
243 |
-- state('.Y2').cmd.run('echo Y2 >> {1}', cwd='/') |
244 |
-- state('.Y3').cmd.run('echo Y3 >> {2}', cwd='/') |
245 |
-- |
246 |
-- def hello(color, number): |
247 |
-- state(color).cmd.run('echo hello '+color+' '+str(number)+' >> {3}', cwd='/') |
248 |
-- '''.format(output, output, output, output))) |
249 |
-- |
250 |
-- self.state_highstate({'base': ['aaa']}, dirpath) |
251 |
-- expected = textwrap.dedent('''\ |
252 |
-- X1 |
253 |
-- X2 |
254 |
-- X3 |
255 |
-- Y1 extended |
256 |
-- Y2 extended |
257 |
-- Y3 |
258 |
-- hello red 1 |
259 |
-- hello green 2 |
260 |
-- hello blue 3 |
261 |
-- ''') |
262 |
-- |
263 |
-- with salt.utils.fopen(output, 'r') as f: |
264 |
-- self.assertEqual(sorted(f.read()), sorted(expected)) |
265 |
-- |
266 |
-- finally: |
267 |
-- shutil.rmtree(dirpath, ignore_errors=True) |
268 |
-- |
269 |
-- |
270 |
- def write_to(fpath, content): |
271 |
- with salt.utils.fopen(fpath, 'w') as f: |
272 |
- f.write(content) |
273 |
|
274 |
diff --git a/app-admin/salt/files/salt-2015.8.4-boto-vpc-test.patch b/app-admin/salt/files/salt-2015.8.4-boto-vpc-test.patch |
275 |
deleted file mode 100644 |
276 |
index ca18f47..0000000 |
277 |
--- a/app-admin/salt/files/salt-2015.8.4-boto-vpc-test.patch |
278 |
+++ /dev/null |
279 |
@@ -1,13 +0,0 @@ |
280 |
-diff --git a/tests/unit/modules/boto_vpc_test.py b/tests/unit/modules/boto_vpc_test.py |
281 |
-index 0768790..bb89d47 100644 |
282 |
---- a/tests/unit/modules/boto_vpc_test.py |
283 |
-+++ b/tests/unit/modules/boto_vpc_test.py |
284 |
-@@ -493,7 +493,7 @@ class BotoVpcTestCase(BotoVpcTestCaseBase, BotoVpcTestCaseMixin): |
285 |
- |
286 |
- vpc_properties = dict(id=vpc.id, |
287 |
- cidr_block=six.text_type(cidr_block), |
288 |
-- is_default=False, |
289 |
-+ is_default=None, |
290 |
- state=u'available', |
291 |
- tags={u'Name': u'test', u'test': u'testvalue'}, |
292 |
- dhcp_options_id=u'dopt-7a8b9c2d', |
293 |
|
294 |
diff --git a/app-admin/salt/files/syndic-initd-3 b/app-admin/salt/files/syndic-initd-3 |
295 |
deleted file mode 100644 |
296 |
index 5e9339b..0000000 |
297 |
--- a/app-admin/salt/files/syndic-initd-3 |
298 |
+++ /dev/null |
299 |
@@ -1,14 +0,0 @@ |
300 |
-#!/sbin/openrc-run |
301 |
-# Copyright 1999-2014 Gentoo Foundation |
302 |
-# Distributed under the terms of the GNU General Public License v2 |
303 |
-# $Id$ |
304 |
- |
305 |
-command="/usr/bin/salt-syndic" |
306 |
-command_args="${SALT_OPTS}" |
307 |
-command_background="1" |
308 |
-pidfile="/var/run/salt-syndic.pid" |
309 |
-name="SALT syndic daemon" |
310 |
- |
311 |
-depend() { |
312 |
- use net logger |
313 |
-} |