1 |
commit: a6f5c9e44e71e1046e35bbf99351f06b2847cfac |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 6 19:12:51 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 6 19:13:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6f5c9e4 |
7 |
|
8 |
app-admin/salt-3001.1-r1: Revbump, pycryptodomex dep (bug #740388) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/740388 |
11 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
.../{salt-3001.1.ebuild => salt-3001.1-r1.ebuild} | 22 ++++++---------------- |
15 |
1 file changed, 6 insertions(+), 16 deletions(-) |
16 |
|
17 |
diff --git a/app-admin/salt/salt-3001.1.ebuild b/app-admin/salt/salt-3001.1-r1.ebuild |
18 |
similarity index 92% |
19 |
rename from app-admin/salt/salt-3001.1.ebuild |
20 |
rename to app-admin/salt/salt-3001.1-r1.ebuild |
21 |
index 8f4eea2bcf2..09299dcc1d0 100644 |
22 |
--- a/app-admin/salt/salt-3001.1.ebuild |
23 |
+++ b/app-admin/salt/salt-3001.1-r1.ebuild |
24 |
@@ -34,6 +34,7 @@ RDEPEND=" |
25 |
>=dev-python/msgpack-0.5[${PYTHON_USEDEP}] |
26 |
<dev-python/msgpack-1.0[${PYTHON_USEDEP}] |
27 |
>=dev-python/pycryptodome-3.9.7[${PYTHON_USEDEP}] |
28 |
+ dev-python/pycryptodomex[${PYTHON_USEDEP}] |
29 |
dev-python/pyyaml[${PYTHON_USEDEP}] |
30 |
dev-python/markupsafe[${PYTHON_USEDEP}] |
31 |
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
32 |
@@ -100,23 +101,11 @@ REQUIRED_USE="|| ( raet zeromq ) |
33 |
RESTRICT="!test? ( test ) x86? ( test )" |
34 |
|
35 |
PATCHES=( |
36 |
- #"${FILESDIR}/salt-2017.7.0-dont-realpath-tmpdir.patch" |
37 |
"${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" |
38 |
"${FILESDIR}/salt-3001.1-tests.patch" |
39 |
- #"${FILESDIR}/salt-3000.2-tests.patch" |
40 |
- |
41 |
- # https://github.com/saltstack/salt/pull/55410 |
42 |
- #"${FILESDIR}/salt-3000.2-py38.patch" |
43 |
- |
44 |
- # https://github.com/saltstack/salt/pull/55900 |
45 |
- #"${FILESDIR}/salt-3000.2-py38-abc.patch" |
46 |
- |
47 |
- # misc py38 fixups |
48 |
- #"${WORKDIR}/salt-3000.2-py38-misc.patch" |
49 |
- #"${FILESDIR}/salt-3000.2-py38-logwarn.patch" |
50 |
) |
51 |
|
52 |
-python_prepare() { |
53 |
+python_prepare_all() { |
54 |
# remove tests with external dependencies that may not be available |
55 |
rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die |
56 |
rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die |
57 |
@@ -129,13 +118,14 @@ python_prepare() { |
58 |
# make sure pkg_resources doesn't bomb because pycrypto isn't installed |
59 |
find . -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d' -i || die |
60 |
|
61 |
+ distutils-r1_python_prepare_all |
62 |
+} |
63 |
+ |
64 |
+python_prepare() { |
65 |
einfo "Fixing collections.abc warnings for ${EPYTHON}" |
66 |
local abc |
67 |
abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die |
68 |
find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die |
69 |
- |
70 |
- # allow the use of the renamed msgpack |
71 |
- sed -i '/^msgpack/d' requirements/base.txt || die |
72 |
} |
73 |
|
74 |
python_install_all() { |