1 |
commit: 93ae5308087c9cf5e23f95bf2150eb226b742b89 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 28 18:13:18 2022 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 18:24:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93ae5308 |
7 |
|
8 |
app-admin/salt: add 3002.9 |
9 |
|
10 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
11 |
|
12 |
app-admin/salt/Manifest | 1 + |
13 |
app-admin/salt/salt-3002.9.ebuild | 200 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 201 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest |
17 |
index 601fc6fa75d4..5ab3190d3f91 100644 |
18 |
--- a/app-admin/salt/Manifest |
19 |
+++ b/app-admin/salt/Manifest |
20 |
@@ -1,6 +1,7 @@ |
21 |
DIST salt-3001.8.tar.gz 15740488 BLAKE2B 77875a670b81438280becd1f29b64fbc766379192a9ca041568cd9360a3c4213bb3018063e88a297e9d1f637fb7ca3ef049a73a258022ec07e42f01a40bdf09a SHA512 8e90b2a1f82f951ab40a53a8af2ab421758ed8244f1881cc7aa71a8d9c2e2e6d892166ec8f8f6182966e56eb28c9aee6a060ee54b559b1d073fba97ad0afb013 |
22 |
DIST salt-3002.7.tar.gz 15792124 BLAKE2B b4cb4a6d73c45f3c2183a7adfe8196bbc5788dce1995bd5c640cd9957bdfdba2e96deebaba927d6103fc50f4eaab86d51f4dd4594d25b7357db79ed67b39258e SHA512 c1e7bbcd39b5c2bef351bd74026346bf729839c4161f6eff8162620e9cb08a63073abeeb8af6bab635070386a883df494ef08cc07a84efa9aa7f2160b357a938 |
23 |
DIST salt-3002.8.tar.gz 15798643 BLAKE2B 12280dfd29f46f9bb8b2df6fcef474c2c2237d6f9c71e1474caae58893605dd6f9fb4c4573f52765cb950cd15e31fc0fda2fa8dd1c87d48c1951d2812c1a3a81 SHA512 a88a6f77d2af2cff5d5244f38b16a1904da05bdfd45b2087691e41b07f21785b1838151314d7c80d3a33eebefe480c8f3678fa161e9ceaaa50c997022463c472 |
24 |
+DIST salt-3002.9.tar.gz 15817470 BLAKE2B 31fb6dbb61a9f0ab22ca761810a934792e9fa9c78628f925e63d3d54d00fa4ea0b4aa806ba3ea92f7397ba3291281bf8989d9a288fb3114c7911cdebfc9acd6a SHA512 f34fd05960a68cba51f34cf8b7c737bd84d00472cec80628f082d16e54cf70705e191ac4b6690bf406a8a11e26c8155e4bdbdec34ede5f0721fd9b5e637a0ed1 |
25 |
DIST salt-3003.3.tar.gz 16017984 BLAKE2B 9cd1e33a7b6dff4d3c6c5a87e1204f7f113b6190da8301061e26fcec178aba597a9e17ab60a54a67b52a895a9a8aef58bec70e9fdd8d8edc5a42945f6de21a58 SHA512 4fe50922833fce48fcc679adb16a0e1fe893531b2feb08b235a1461c58b8d9a72af2acd89fc0f712207fb0cd215d6b446e31a40001b46c43d0cc4ac827ce29e3 |
26 |
DIST salt-3003.4.tar.gz 16031515 BLAKE2B 34902aba7ab64f4ddbacbad1b776b9b2218caf22fb843879a80bd5c30b6c28f4c22a050bbaf0e9735507a78c887f52bcae7d1833ffeb51a543ec22fda79252e6 SHA512 35419fbb3f9a0f3e87579f740b717d6902cab0d85397b16d1e94d9516bf5f5d269b4f8bca370fd376abd9b7c8a6ad7ef4c8e8a8fdd31655fd17c810989e79693 |
27 |
DIST salt-3003.tar.gz 15830910 BLAKE2B ea4f02eece951c3fb4fcc480d00f7b531ac549b2e23ff9a210b73f749f9ba83e0402e02a59028f41f94958d17512e417b7c1b7015e8ee3aeac55be9b1374fe6f SHA512 7f631466372f303c03f2852a5cfba1ee5c6ba1636a6fe1e1622e90d0b1376ef9f670aa1b4754f3d9c8c7fe1b99fe1b4c49e140dc86d90d157a1ec1e73ba43c38 |
28 |
|
29 |
diff --git a/app-admin/salt/salt-3002.9.ebuild b/app-admin/salt/salt-3002.9.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..e3287689891c |
32 |
--- /dev/null |
33 |
+++ b/app-admin/salt/salt-3002.9.ebuild |
34 |
@@ -0,0 +1,200 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+PYTHON_COMPAT=( python3_{8..9} ) |
40 |
+ |
41 |
+inherit systemd distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="Salt is a remote execution and configuration manager" |
44 |
+HOMEPAGE="https://www.saltstack.com/resources/community/ |
45 |
+ https://github.com/saltstack" |
46 |
+ |
47 |
+if [[ ${PV} == 9999* ]]; then |
48 |
+ inherit git-r3 |
49 |
+ EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git" |
50 |
+ EGIT_BRANCH="develop" |
51 |
+ SRC_URI="" |
52 |
+else |
53 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
54 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
55 |
+fi |
56 |
+ |
57 |
+LICENSE="Apache-2.0" |
58 |
+SLOT="0" |
59 |
+IUSE="cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako |
60 |
+ mongodb neutron nova openssl portage profile redis selinux test raet |
61 |
+ +zeromq vim-syntax" |
62 |
+ |
63 |
+RDEPEND=" |
64 |
+ sys-apps/pciutils |
65 |
+ >=dev-python/distro-1.5[${PYTHON_USEDEP}] |
66 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
67 |
+ dev-python/libnacl[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/pycryptodome-3.9.8[${PYTHON_USEDEP}] |
70 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
71 |
+ dev-python/markupsafe[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
73 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
74 |
+ dev-python/toml[${PYTHON_USEDEP}] |
75 |
+ dev-python/watchdog[${PYTHON_USEDEP}] |
76 |
+ libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
77 |
+ mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
78 |
+ ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
79 |
+ libvirt? ( |
80 |
+ $(python_gen_cond_dep 'dev-python/libvirt-python[${PYTHON_USEDEP}]' python3_8) |
81 |
+ ) |
82 |
+ openssl? ( |
83 |
+ dev-libs/openssl:0=[-bindist(-)] |
84 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
85 |
+ ) |
86 |
+ raet? ( |
87 |
+ >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
90 |
+ ) |
91 |
+ cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
92 |
+ cheetah? ( dev-python/cheetah3[${PYTHON_USEDEP}] ) |
93 |
+ genshi? ( dev-python/genshi[${PYTHON_USEDEP}] ) |
94 |
+ mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
95 |
+ portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
96 |
+ keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
97 |
+ redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
98 |
+ selinux? ( sec-policy/selinux-salt ) |
99 |
+ nova? ( |
100 |
+ $(python_gen_cond_dep '>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]' python3_8) |
101 |
+ ) |
102 |
+ neutron? ( |
103 |
+ $(python_gen_cond_dep '>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]' python3_8) |
104 |
+ ) |
105 |
+ gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
106 |
+ profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
107 |
+ vim-syntax? ( app-vim/salt-vim ) |
108 |
+ zeromq? ( >=dev-python/pyzmq-19.0.0[${PYTHON_USEDEP}] ) |
109 |
+" |
110 |
+BDEPEND=" |
111 |
+ test? ( |
112 |
+ ${RDEPEND} |
113 |
+ >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
114 |
+ >=dev-python/jsonschema-3.0[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
116 |
+ dev-python/mako[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
118 |
+ >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
119 |
+ dev-python/pip[${PYTHON_USEDEP}] |
120 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
121 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
122 |
+ dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
123 |
+ >=dev-python/pytest-salt-factories-0.93.0[${PYTHON_USEDEP}] |
124 |
+ dev-python/pytest-tempdir[${PYTHON_USEDEP}] |
125 |
+ >=dev-python/virtualenv-20.0.20[${PYTHON_USEDEP}] |
126 |
+ net-dns/bind-tools |
127 |
+ !x86? ( >=dev-python/boto3-1.3.15[${PYTHON_USEDEP}] ) |
128 |
+ )" |
129 |
+ |
130 |
+DOCS=( README.rst AUTHORS ) |
131 |
+ |
132 |
+REQUIRED_USE=" |
133 |
+ || ( raet zeromq ) |
134 |
+ test? ( cheetah genshi ) |
135 |
+" |
136 |
+RESTRICT="!test? ( test ) x86? ( test )" |
137 |
+ |
138 |
+PATCHES=( |
139 |
+ "${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" |
140 |
+ "${FILESDIR}/salt-3002-dont-realpath-on-tmpdir.patch" |
141 |
+ "${FILESDIR}/salt-3002-tests.patch" |
142 |
+ "${FILESDIR}/salt-3002.5-tests.patch" |
143 |
+ "${FILESDIR}/salt-3002.7-tests.patch" |
144 |
+ "${FILESDIR}/salt-3004.2-jinja-3.patch" |
145 |
+ "${FILESDIR}/salt-3002.8-tests.patch" |
146 |
+ "${FILESDIR}/salt-3002.8-relax-pyzmq-dep.patch" |
147 |
+) |
148 |
+ |
149 |
+python_prepare_all() { |
150 |
+ # remove tests with external dependencies that may not be available, and |
151 |
+ # tests that don't work in sandbox |
152 |
+ rm tests/unit/{test_{zypp_plugins,module_names},utils/test_{extend,cache}}.py || die |
153 |
+ rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
154 |
+ rm tests/unit/states/test_boto_vpc.py || die |
155 |
+ rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die |
156 |
+ rm salt/utils/virtualbox.py || die |
157 |
+ |
158 |
+ # tests that require network access |
159 |
+ rm tests/unit/{states,modules}/test_zcbuildout.py || die |
160 |
+ |
161 |
+ sed -i 's:log.trace(:log.debug(:' \ |
162 |
+ salt/fileserver/roots.py salt/grains/core.py salt/states/saltmod.py || die |
163 |
+ |
164 |
+ # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
165 |
+ # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
166 |
+ find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die |
167 |
+ # pycryptodome rather than pycryptodomex |
168 |
+ find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die |
169 |
+ |
170 |
+ distutils-r1_python_prepare_all |
171 |
+} |
172 |
+ |
173 |
+python_prepare() { |
174 |
+ einfo "Fixing collections.abc warnings for ${EPYTHON}" |
175 |
+ local abc |
176 |
+ abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die |
177 |
+ find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die |
178 |
+} |
179 |
+ |
180 |
+python_install_all() { |
181 |
+ local svc |
182 |
+ USE_SETUPTOOLS=1 distutils-r1_python_install_all |
183 |
+ |
184 |
+ for svc in minion master syndic api; do |
185 |
+ newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc} |
186 |
+ newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
187 |
+ systemd_dounit "${FILESDIR}"/salt-${svc}.service |
188 |
+ done |
189 |
+ |
190 |
+ insinto /etc/${PN} |
191 |
+ doins -r conf/* |
192 |
+} |
193 |
+ |
194 |
+python_test() { |
195 |
+ local tempdir |
196 |
+ # testsuite likes lots of files |
197 |
+ ulimit -n 3072 || die |
198 |
+ |
199 |
+ # ${T} is too long a path for the tests to work |
200 |
+ tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" |
201 |
+ mkdir "${T}/$(basename "${tempdir}")" |
202 |
+ |
203 |
+ ( |
204 |
+ cleanup() { rm -f "${tempdir}" || die; } |
205 |
+ |
206 |
+ trap cleanup EXIT |
207 |
+ |
208 |
+ addwrite "${tempdir}" |
209 |
+ ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die |
210 |
+ |
211 |
+ USE_SETUPTOOLS=1 NO_INTERNET=1 SHELL="/bin/bash" \ |
212 |
+ TMPDIR="${tempdir}" \ |
213 |
+ ${EPYTHON} tests/runtests.py \ |
214 |
+ --unit-tests --no-report --verbose \ |
215 |
+ || die "testing failed with ${EPYTHON}" |
216 |
+ ) |
217 |
+} |
218 |
+ |
219 |
+pkg_postinst() { |
220 |
+ if use python_targets_python3_8; then |
221 |
+ if use nova; then |
222 |
+ ewarn "Salt's nova functionality will not work with python3.8 since" |
223 |
+ ewarn "dev-python/python-novaclient does not support it yet" |
224 |
+ fi |
225 |
+ if use neutron; then |
226 |
+ ewarn "Salt's neutron functionality will not work with python3.8 since" |
227 |
+ ewarn "dev-python/python-neutronclient does not support it yet" |
228 |
+ fi |
229 |
+ if use libvirt; then |
230 |
+ ewarn "Salt's libvirt functionality will not work with python3.8 since" |
231 |
+ ewarn "dev-python/libvirt-python does not support it yet" |
232 |
+ fi |
233 |
+ fi |
234 |
+} |