1 |
commit: e3231439b24ee57a2641fedda919b60c7c3df91a |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Sat Feb 27 00:29:01 2021 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 27 02:32:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3231439 |
7 |
|
8 |
app-admin/salt-3001.6: Version bump (sec bug #767919) |
9 |
|
10 |
Bug: https://bugs.gentoo.org/767919 |
11 |
Copyright: Sony Interactive Entertainment Inc. |
12 |
Package-Manager: Portage-3.0.15, Repoman-3.0.2 |
13 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
14 |
|
15 |
app-admin/salt/Manifest | 1 + |
16 |
app-admin/salt/files/salt-3001.6-tests.patch | 18 +++++++ |
17 |
app-admin/salt/salt-3000.6.ebuild | 7 +-- |
18 |
.../{salt-3000.6.ebuild => salt-3001.6.ebuild} | 61 ++++++++++------------ |
19 |
4 files changed, 50 insertions(+), 37 deletions(-) |
20 |
|
21 |
diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest |
22 |
index c9c7548556f..a08943d31b6 100644 |
23 |
--- a/app-admin/salt/Manifest |
24 |
+++ b/app-admin/salt/Manifest |
25 |
@@ -2,5 +2,6 @@ DIST salt-3000.2-py38-misc.patch.gz 6250 BLAKE2B 68fff80a042e6bf208ea2d9692da7a7 |
26 |
DIST salt-3000.5.tar.gz 15229450 BLAKE2B 135e9b9dcc461ac898231ce46e6a1359e6d60a43822320950bc0b83057f768dadf55320dd73df72d5bc917f324eef4661e6f75d8eb8e84aef958bd2df8924cfc SHA512 2579f65c24d22d77132057bd8cf37040d7d149624745dd68b4c44318be786580dcc34bf563f90d7de9ef5b726b2453bef4d8639bc8fbd9c5e691500520335317 |
27 |
DIST salt-3000.6.tar.gz 15236781 BLAKE2B 5a532a6915b331fb532dc6e1651cf8fca3e1a5e9f29f6d75260fdb1162dbfeec755c65f7c6fc28b1cc7dc3ace978547830af31aafc1eee8419bbc7e695725787 SHA512 739e3671766c45a0ef1eb45933c7f00f14586e91f4c4a79cbed913a48961a48baee853206ba569491756e8a872d22f3635eb6bc1a366020e551c567b2334c508 |
28 |
DIST salt-3001.4.tar.gz 15716372 BLAKE2B cc33b29b0da9cfaae22726b2b471245880aafa106187b531872a9ae5ee773a94e0d550a68b11b74826bc0b35197a311f690535f2280931ccb5050275ad967c2d SHA512 b7f343c65917280a96d8a3eaa6b508121b11b9f9b0bfffa5b4c79af0023bdecf4581f76014847d97f48d9677edb6f632adec3850153c3048c3114128a250b84b |
29 |
+DIST salt-3001.6.tar.gz 15736056 BLAKE2B 00e7674452e9d61c3cd487d27a3a1f3435c6b12dcc89008aa63c96814957b6ce8654f4d4d51dbce7b14027f0cee66fd2ea9602f6be18bf2f4beac11ae164f89f SHA512 e45c9cfddb64ab1c9d66b6b6b3e5ff8d9010c01307161e5013140b4362ee630cf912ab153d1afa72f56d18fc5353293b2f4b449caf8ee384d1e93204d490bf4c |
30 |
DIST salt-3002.2.tar.gz 15765855 BLAKE2B b26895ababc8551e01baa806c5a0e41dab9a379e47d2289b5c3c529ef762c69631d7ed8b32339ec66c3929c5883782131eb56d1bfbcc743829c4f0199a900ca1 SHA512 0f617a07475347b1bb0d1c6059de541e102103182820dfd6f64f4c281d660e68358eb1ab7171a637e16cef9fea2517c8356df9c449f9bbc92538aa86c316f652 |
31 |
DIST salt-3002.5.tar.gz 15784880 BLAKE2B baa90bb0caea572dfbe12d92fb488ee0c4adef9a07221f394009cd43a62ffef18c57f2e7cdcfcd923807c7a3d02ce6833480f74d70250c29d311420f30514300 SHA512 dda2caa338f646ec51d2de6b0df10fbb27eceddbe8c797ae192b9ef1312d566ae71a243a3a95918fa375b125089aa29a73b1b908c5cc1b0451dccb582a4978a1 |
32 |
|
33 |
diff --git a/app-admin/salt/files/salt-3001.6-tests.patch b/app-admin/salt/files/salt-3001.6-tests.patch |
34 |
new file mode 100644 |
35 |
index 00000000000..d32977e4694 |
36 |
--- /dev/null |
37 |
+++ b/app-admin/salt/files/salt-3001.6-tests.patch |
38 |
@@ -0,0 +1,18 @@ |
39 |
+--- salt-3001.6-python3_7/tests/unit/modules/test_cmdmod.py 2021-02-26 16:13:26.386553301 -0800 |
40 |
++++ salt-3001.6/tests/unit/modules/test_cmdmod.py 2021-02-26 16:14:25.858150910 -0800 |
41 |
+@@ -437,6 +437,7 @@ |
42 |
+ else: |
43 |
+ raise RuntimeError |
44 |
+ |
45 |
++ @skipIf(True, "does not work with sandbox") |
46 |
+ @skipIf(salt.utils.platform.is_windows(), "Do not run on Windows") |
47 |
+ @skipIf(salt.utils.platform.is_darwin(), "Do not run on MacOS") |
48 |
+ def test_run_cwd_in_combination_with_runas(self): |
49 |
+@@ -560,6 +561,7 @@ |
50 |
+ |
51 |
+ self.assertEqual(ret["stdout"], salt.utils.stringutils.to_unicode(stdout)) |
52 |
+ |
53 |
++ @skipIf(True, "does not work with sandbox") |
54 |
+ def test_run_all_output_loglevel_debug(self): |
55 |
+ """ |
56 |
+ Test that specifying debug for loglevel |
57 |
|
58 |
diff --git a/app-admin/salt/salt-3000.6.ebuild b/app-admin/salt/salt-3000.6.ebuild |
59 |
index 14cbe4757be..a3b94dc622d 100644 |
60 |
--- a/app-admin/salt/salt-3000.6.ebuild |
61 |
+++ b/app-admin/salt/salt-3000.6.ebuild |
62 |
@@ -1,4 +1,4 @@ |
63 |
-# Copyright 1999-2020 Gentoo Authors |
64 |
+# Copyright 1999-2021 Gentoo Authors |
65 |
# Distributed under the terms of the GNU General Public License v2 |
66 |
|
67 |
EAPI=7 |
68 |
@@ -117,8 +117,9 @@ PATCHES=( |
69 |
) |
70 |
|
71 |
python_prepare() { |
72 |
- # remove tests with external dependencies that may not be available |
73 |
- rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die |
74 |
+ # remove tests with external dependencies that may not be available, and |
75 |
+ # tests that don't work in sandbox |
76 |
+ rm tests/unit/{test_zypp_plugins,utils/test_extend,module_names}.py || die |
77 |
rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
78 |
rm tests/unit/states/test_boto_vpc.py || die |
79 |
|
80 |
|
81 |
diff --git a/app-admin/salt/salt-3000.6.ebuild b/app-admin/salt/salt-3001.6.ebuild |
82 |
similarity index 79% |
83 |
copy from app-admin/salt/salt-3000.6.ebuild |
84 |
copy to app-admin/salt/salt-3001.6.ebuild |
85 |
index 14cbe4757be..23e5e85de8b 100644 |
86 |
--- a/app-admin/salt/salt-3000.6.ebuild |
87 |
+++ b/app-admin/salt/salt-3001.6.ebuild |
88 |
@@ -1,8 +1,8 @@ |
89 |
-# Copyright 1999-2020 Gentoo Authors |
90 |
+# Copyright 1999-2021 Gentoo Authors |
91 |
# Distributed under the terms of the GNU General Public License v2 |
92 |
|
93 |
EAPI=7 |
94 |
-PYTHON_COMPAT=( python3_{7,8} ) |
95 |
+PYTHON_COMPAT=( python3_{7..8} ) |
96 |
DISTUTILS_USE_SETUPTOOLS=rdepend |
97 |
inherit systemd distutils-r1 |
98 |
|
99 |
@@ -16,8 +16,7 @@ if [[ ${PV} == 9999* ]]; then |
100 |
EGIT_BRANCH="develop" |
101 |
SRC_URI="" |
102 |
else |
103 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
104 |
- https://dev.gentoo.org/~chutzpah/dist/salt/salt-3000.2-py38-misc.patch.gz" |
105 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
106 |
KEYWORDS="~amd64 ~x86" |
107 |
fi |
108 |
|
109 |
@@ -32,13 +31,14 @@ RDEPEND=" |
110 |
dev-python/distro[${PYTHON_USEDEP}] |
111 |
dev-python/jinja[${PYTHON_USEDEP}] |
112 |
dev-python/libnacl[${PYTHON_USEDEP}] |
113 |
- >=dev-python/msgpack-0.5[${PYTHON_USEDEP}] |
114 |
- <dev-python/msgpack-1.0[${PYTHON_USEDEP}] |
115 |
- dev-python/pycryptodome[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/pycryptodome-3.9.7[${PYTHON_USEDEP}] |
118 |
dev-python/pyyaml[${PYTHON_USEDEP}] |
119 |
dev-python/markupsafe[${PYTHON_USEDEP}] |
120 |
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
121 |
dev-python/setuptools[${PYTHON_USEDEP}] |
122 |
+ dev-python/toml[${PYTHON_USEDEP}] |
123 |
+ dev-python/watchdog[${PYTHON_USEDEP}] |
124 |
libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
125 |
mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
126 |
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
127 |
@@ -84,12 +84,12 @@ BDEPEND=" |
128 |
dev-python/psutil[${PYTHON_USEDEP}] |
129 |
dev-python/pytest[${PYTHON_USEDEP}] |
130 |
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
131 |
- dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
132 |
- >=dev-python/pytest-salt-2018.12.8[${PYTHON_USEDEP}] |
133 |
+ >=dev-python/pytest-salt-2020.1.27[${PYTHON_USEDEP}] |
134 |
+ dev-python/pytest-salt-factories[${PYTHON_USEDEP}] |
135 |
dev-python/pytest-tempdir[${PYTHON_USEDEP}] |
136 |
>=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] |
137 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
138 |
- !x86? ( >=dev-python/boto3-1.2.1[${PYTHON_USEDEP}] ) |
139 |
+ >=dev-python/virtualenv-20.0.20[${PYTHON_USEDEP}] |
140 |
+ !x86? ( >=dev-python/boto3-1.3.15[${PYTHON_USEDEP}] ) |
141 |
)" |
142 |
|
143 |
DOCS=( README.rst AUTHORS ) |
144 |
@@ -99,42 +99,35 @@ REQUIRED_USE="|| ( raet zeromq ) |
145 |
RESTRICT="!test? ( test ) x86? ( test )" |
146 |
|
147 |
PATCHES=( |
148 |
- "${FILESDIR}/salt-2017.7.0-dont-realpath-tmpdir.patch" |
149 |
"${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" |
150 |
- "${FILESDIR}/salt-3000.1-tests.patch" |
151 |
- "${FILESDIR}/salt-3000.2-tests.patch" |
152 |
- |
153 |
- # https://github.com/saltstack/salt/pull/55410 |
154 |
- "${FILESDIR}/salt-3000.2-py38.patch" |
155 |
- |
156 |
- # https://github.com/saltstack/salt/pull/55900 |
157 |
- "${FILESDIR}/salt-3000.2-py38-abc.patch" |
158 |
- |
159 |
- # misc py38 fixups |
160 |
- "${WORKDIR}/salt-3000.2-py38-misc.patch" |
161 |
- "${FILESDIR}/salt-3000.2-py38-logwarn.patch" |
162 |
- "${FILESDIR}/salt-2019.2.8-ansible-roster-fix.patch" |
163 |
+ "${FILESDIR}/salt-3001.1-tests.patch" |
164 |
+ "${FILESDIR}/salt-3001.6-tests.patch" |
165 |
) |
166 |
|
167 |
-python_prepare() { |
168 |
- # remove tests with external dependencies that may not be available |
169 |
- rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die |
170 |
+python_prepare_all() { |
171 |
+ # remove tests with external dependencies that may not be available, and |
172 |
+ # tests that don't work in sandbox |
173 |
+ rm tests/unit/{test_{zypp_plugins,module_names},utils/test_{extend,cache}}.py || die |
174 |
rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
175 |
rm tests/unit/states/test_boto_vpc.py || die |
176 |
+ rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die |
177 |
|
178 |
# tests that require network access |
179 |
rm tests/unit/{states,modules}/test_zcbuildout.py || die |
180 |
|
181 |
# make sure pkg_resources doesn't bomb because pycrypto isn't installed |
182 |
- find . -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d' -i || die |
183 |
+ find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die |
184 |
+ # pycryptodome rather than pycryptodomex |
185 |
+ find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die |
186 |
|
187 |
+ distutils-r1_python_prepare_all |
188 |
+} |
189 |
+ |
190 |
+python_prepare() { |
191 |
einfo "Fixing collections.abc warnings for ${EPYTHON}" |
192 |
local abc |
193 |
abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die |
194 |
find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die |
195 |
- |
196 |
- # allow the use of the renamed msgpack |
197 |
- sed -i '/^msgpack/d' requirements/base.txt || die |
198 |
} |
199 |
|
200 |
python_install_all() { |
201 |
@@ -142,7 +135,7 @@ python_install_all() { |
202 |
USE_SETUPTOOLS=1 distutils-r1_python_install_all |
203 |
|
204 |
for svc in minion master syndic api; do |
205 |
- newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
206 |
+ newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc} |
207 |
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
208 |
systemd_dounit "${FILESDIR}"/salt-${svc}.service |
209 |
done |
210 |
@@ -168,7 +161,7 @@ python_test() { |
211 |
addwrite "${tempdir}" |
212 |
ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die |
213 |
|
214 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
215 |
+ USE_SETUPTOOLS=1 NO_INTERNET=1 SHELL="/bin/bash" \ |
216 |
TMPDIR="${tempdir}" \ |
217 |
${EPYTHON} tests/runtests.py \ |
218 |
--unit-tests --no-report --verbose \ |