1 |
commit: 954b9966d0fa300e64d07c0fa2c13dfa5e0c2968 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 3 17:07:25 2021 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 8 01:01:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=954b9966 |
7 |
|
8 |
app-admin/salt-3001.8: Version bump |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
12 |
|
13 |
app-admin/salt/Manifest | 1 + |
14 |
app-admin/salt/salt-3001.8.ebuild | 188 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 189 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest |
18 |
index 18c86563686..febd6188d34 100644 |
19 |
--- a/app-admin/salt/Manifest |
20 |
+++ b/app-admin/salt/Manifest |
21 |
@@ -2,6 +2,7 @@ DIST salt-3000.2-py38-misc.patch.gz 6250 BLAKE2B 68fff80a042e6bf208ea2d9692da7a7 |
22 |
DIST salt-3000.8.tar.gz 15249139 BLAKE2B df306669ba11dd650621222ff9c69f5a6e16b6f431e9d93e6712ee95da43091bfe28416fe0d71988ed9ee70cb347755b779a356c50fa59c63c67a874ed1906f4 SHA512 a18d5bea3b3835f83d5b1e5315990d83f6c58c36df5589d5de0f8cc3a46db4c960b58032e29d56841a160b9b170cdbb81bca38dbbd72ccb5866ccc8a7da6e800 |
23 |
DIST salt-3000.9.tar.gz 15250432 BLAKE2B b76c166363b0b0fd3e3aa4b5306ba8280a2c99fbc7fd9866d957406bba8e6fcc03b769b53dbb80b115f9fa9f1fdc93e1eb257f4bf04283e414a309c16e4f078f SHA512 94214f20a8a080ebdcbb7e3351f60a466c3a92cc85d177c2ea677192a63e58b0f9cacfb1af04e14022a7ac570ebd0b931722d1d001a7655dcd7502813c29a092 |
24 |
DIST salt-3001.6.tar.gz 15736056 BLAKE2B 00e7674452e9d61c3cd487d27a3a1f3435c6b12dcc89008aa63c96814957b6ce8654f4d4d51dbce7b14027f0cee66fd2ea9602f6be18bf2f4beac11ae164f89f SHA512 e45c9cfddb64ab1c9d66b6b6b3e5ff8d9010c01307161e5013140b4362ee630cf912ab153d1afa72f56d18fc5353293b2f4b449caf8ee384d1e93204d490bf4c |
25 |
+DIST salt-3001.8.tar.gz 15740488 BLAKE2B 77875a670b81438280becd1f29b64fbc766379192a9ca041568cd9360a3c4213bb3018063e88a297e9d1f637fb7ca3ef049a73a258022ec07e42f01a40bdf09a SHA512 8e90b2a1f82f951ab40a53a8af2ab421758ed8244f1881cc7aa71a8d9c2e2e6d892166ec8f8f6182966e56eb28c9aee6a060ee54b559b1d073fba97ad0afb013 |
26 |
DIST salt-3002.5.tar.gz 15784880 BLAKE2B baa90bb0caea572dfbe12d92fb488ee0c4adef9a07221f394009cd43a62ffef18c57f2e7cdcfcd923807c7a3d02ce6833480f74d70250c29d311420f30514300 SHA512 dda2caa338f646ec51d2de6b0df10fbb27eceddbe8c797ae192b9ef1312d566ae71a243a3a95918fa375b125089aa29a73b1b908c5cc1b0451dccb582a4978a1 |
27 |
DIST salt-3003.1.tar.gz 16010476 BLAKE2B 3cd141061d8fa6ad00fe60615e8d36fda9fb26264adb2722d34e0b93c626fe09d78c3b9280ad8fe98924469a1ede1ad93cc06bde24a121c3db8c957be0ab7d75 SHA512 bf5ec7f1d16c776be5c2e90bff30e11817f369c3b08c0fe8bd991e7be31179b10cbd244048fb08c05aff30d7b6037c0575c311da4a0f300ce02bcf677aa6616f |
28 |
DIST salt-3003.tar.gz 15830910 BLAKE2B ea4f02eece951c3fb4fcc480d00f7b531ac549b2e23ff9a210b73f749f9ba83e0402e02a59028f41f94958d17512e417b7c1b7015e8ee3aeac55be9b1374fe6f SHA512 7f631466372f303c03f2852a5cfba1ee5c6ba1636a6fe1e1622e90d0b1376ef9f670aa1b4754f3d9c8c7fe1b99fe1b4c49e140dc86d90d157a1ec1e73ba43c38 |
29 |
|
30 |
diff --git a/app-admin/salt/salt-3001.8.ebuild b/app-admin/salt/salt-3001.8.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..6e4d6f48175 |
33 |
--- /dev/null |
34 |
+++ b/app-admin/salt/salt-3001.8.ebuild |
35 |
@@ -0,0 +1,188 @@ |
36 |
+# Copyright 1999-2021 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+PYTHON_COMPAT=( python3_{7..8} ) |
41 |
+ |
42 |
+inherit systemd distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="Salt is a remote execution and configuration manager" |
45 |
+HOMEPAGE="https://www.saltstack.com/resources/community/ |
46 |
+ https://github.com/saltstack" |
47 |
+ |
48 |
+if [[ ${PV} == 9999* ]]; then |
49 |
+ inherit git-r3 |
50 |
+ EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
51 |
+ EGIT_BRANCH="develop" |
52 |
+ SRC_URI="" |
53 |
+else |
54 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
55 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
56 |
+fi |
57 |
+ |
58 |
+LICENSE="Apache-2.0" |
59 |
+SLOT="0" |
60 |
+IUSE="cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako |
61 |
+ mongodb neutron nova openssl portage profile redis selinux test raet |
62 |
+ +zeromq vim-syntax" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ sys-apps/pciutils |
66 |
+ dev-python/distro[${PYTHON_USEDEP}] |
67 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
68 |
+ dev-python/libnacl[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] |
70 |
+ >=dev-python/pycryptodome-3.9.7[${PYTHON_USEDEP}] |
71 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
72 |
+ dev-python/markupsafe[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
74 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
75 |
+ dev-python/toml[${PYTHON_USEDEP}] |
76 |
+ dev-python/watchdog[${PYTHON_USEDEP}] |
77 |
+ libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
78 |
+ mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
79 |
+ ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
80 |
+ libvirt? ( |
81 |
+ $(python_gen_cond_dep 'dev-python/libvirt-python[${PYTHON_USEDEP}]' python3_8) |
82 |
+ ) |
83 |
+ openssl? ( |
84 |
+ dev-libs/openssl:0=[-bindist(-)] |
85 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
86 |
+ ) |
87 |
+ raet? ( |
88 |
+ >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
91 |
+ ) |
92 |
+ cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
93 |
+ cheetah? ( dev-python/cheetah3[${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-2.2.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/mock-2.0.0[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
118 |
+ dev-python/pip[${PYTHON_USEDEP}] |
119 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
120 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
121 |
+ dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] |
122 |
+ >=dev-python/pytest-salt-2020.1.27[${PYTHON_USEDEP}] |
123 |
+ dev-python/pytest-salt-factories[${PYTHON_USEDEP}] |
124 |
+ dev-python/pytest-tempdir[${PYTHON_USEDEP}] |
125 |
+ >=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] |
126 |
+ >=dev-python/virtualenv-20.0.20[${PYTHON_USEDEP}] |
127 |
+ net-dns/bind-tools |
128 |
+ !x86? ( >=dev-python/boto3-1.3.15[${PYTHON_USEDEP}] ) |
129 |
+ )" |
130 |
+ |
131 |
+DOCS=( README.rst AUTHORS ) |
132 |
+ |
133 |
+REQUIRED_USE="|| ( raet zeromq ) |
134 |
+ test? ( cheetah genshi )" |
135 |
+RESTRICT="!test? ( test ) x86? ( test )" |
136 |
+ |
137 |
+PATCHES=( |
138 |
+ "${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" |
139 |
+ "${FILESDIR}/salt-3001.1-tests.patch" |
140 |
+ "${FILESDIR}/salt-3001.6-tests.patch" |
141 |
+) |
142 |
+ |
143 |
+python_prepare_all() { |
144 |
+ # remove tests with external dependencies that may not be available, and |
145 |
+ # tests that don't work in sandbox |
146 |
+ rm tests/unit/{test_{zypp_plugins,module_names},utils/test_{extend,cache}}.py || die |
147 |
+ rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
148 |
+ rm tests/unit/states/test_boto_vpc.py || die |
149 |
+ rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die |
150 |
+ |
151 |
+ # tests that require network access |
152 |
+ rm tests/unit/{states,modules}/test_zcbuildout.py || die |
153 |
+ |
154 |
+ # make sure pkg_resources doesn't bomb because pycrypto isn't installed |
155 |
+ find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die |
156 |
+ # pycryptodome rather than pycryptodomex |
157 |
+ find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die |
158 |
+ |
159 |
+ distutils-r1_python_prepare_all |
160 |
+} |
161 |
+ |
162 |
+python_prepare() { |
163 |
+ einfo "Fixing collections.abc warnings for ${EPYTHON}" |
164 |
+ local abc |
165 |
+ abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die |
166 |
+ find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die |
167 |
+} |
168 |
+ |
169 |
+python_install_all() { |
170 |
+ local svc |
171 |
+ USE_SETUPTOOLS=1 distutils-r1_python_install_all |
172 |
+ |
173 |
+ for svc in minion master syndic api; do |
174 |
+ newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc} |
175 |
+ newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
176 |
+ systemd_dounit "${FILESDIR}"/salt-${svc}.service |
177 |
+ done |
178 |
+ |
179 |
+ insinto /etc/${PN} |
180 |
+ doins -r conf/* |
181 |
+} |
182 |
+ |
183 |
+python_test() { |
184 |
+ local tempdir |
185 |
+ # testsuite likes lots of files |
186 |
+ ulimit -n 3072 || die |
187 |
+ |
188 |
+ # ${T} is too long a path for the tests to work |
189 |
+ tempdir="$(mktemp -du --tmpdir=/tmp salt-XXX)" |
190 |
+ mkdir "${T}/$(basename "${tempdir}")" |
191 |
+ |
192 |
+ ( |
193 |
+ cleanup() { rm -f "${tempdir}" || die; } |
194 |
+ |
195 |
+ trap cleanup EXIT |
196 |
+ |
197 |
+ addwrite "${tempdir}" |
198 |
+ ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die |
199 |
+ |
200 |
+ USE_SETUPTOOLS=1 NO_INTERNET=1 SHELL="/bin/bash" \ |
201 |
+ TMPDIR="${tempdir}" \ |
202 |
+ ${EPYTHON} tests/runtests.py \ |
203 |
+ --unit-tests --no-report --verbose \ |
204 |
+ || die "testing failed with ${EPYTHON}" |
205 |
+ ) |
206 |
+} |
207 |
+ |
208 |
+pkg_postinst() { |
209 |
+ if use python_targets_python3_8; then |
210 |
+ if use nova; then |
211 |
+ ewarn "Salt's nova functionality will not work with python3.8 since" |
212 |
+ ewarn "dev-python/python-novaclient does not support it yet" |
213 |
+ fi |
214 |
+ if use neutron; then |
215 |
+ ewarn "Salt's neutron functionality will not work with python3.8 since" |
216 |
+ ewarn "dev-python/python-neutronclient does not support it yet" |
217 |
+ fi |
218 |
+ if use libvirt; then |
219 |
+ ewarn "Salt's libvirt functionality will not work with python3.8 since" |
220 |
+ ewarn "dev-python/libvirt-python does not support it yet" |
221 |
+ fi |
222 |
+ fi |
223 |
+} |