summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2020-04-30 11:56:47 -0700
committerPatrick McLean <chutzpah@gentoo.org>2020-04-30 11:57:38 -0700
commitf46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8 (patch)
treeddb768d397ce2b7232c71e09cdf6c0ed4109d118 /app-admin
parentdev-python/sphinxcontrib-websupport: Mark ALLARCHES (diff)
downloadgentoo-f46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8.tar.gz
gentoo-f46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8.tar.bz2
gentoo-f46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8.zip
app-admin/salt-3000.2-r3: revbump,pycrypto deps, fix warning (bug #720148)
Get rid of all pycrypto deps from requirements files, fix collections.abc warning in bundled tornado. Closes: https://bugs.gentoo.org/720148 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/salt/files/salt-3000.2-tornado-py38.patch12
-rw-r--r--app-admin/salt/salt-3000.2-r3.ebuild (renamed from app-admin/salt/salt-3000.2-r2.ebuild)4
2 files changed, 16 insertions, 0 deletions
diff --git a/app-admin/salt/files/salt-3000.2-tornado-py38.patch b/app-admin/salt/files/salt-3000.2-tornado-py38.patch
new file mode 100644
index 000000000000..b324872c921e
--- /dev/null
+++ b/app-admin/salt/files/salt-3000.2-tornado-py38.patch
@@ -0,0 +1,12 @@
+diff -ur salt-3000.2.orig/salt/ext/tornado/httputil.py salt-3000.2/salt/ext/tornado/httputil.py
+--- salt-3000.2.orig/salt/ext/tornado/httputil.py 2020-04-29 11:29:20.000000000 -0700
++++ salt-3000.2/salt/ext/tornado/httputil.py 2020-04-30 11:52:45.690890947 -0700
+@@ -104,7 +104,7 @@
+ _normalized_headers = _NormalizedHeaderCache(1000)
+
+
+-class HTTPHeaders(collections.MutableMapping):
++class HTTPHeaders(collections.abc.MutableMapping):
+ """A dictionary that maintains ``Http-Header-Case`` for all keys.
+
+ Supports multiple values per key via a pair of new methods,
diff --git a/app-admin/salt/salt-3000.2-r2.ebuild b/app-admin/salt/salt-3000.2-r3.ebuild
index 2f37c30a24d4..5e7ab8e084aa 100644
--- a/app-admin/salt/salt-3000.2-r2.ebuild
+++ b/app-admin/salt/salt-3000.2-r3.ebuild
@@ -111,6 +111,7 @@ PATCHES=(
# https://github.com/saltstack/salt/pull/55900
"${FILESDIR}/salt-3000.2-py38-abc.patch"
+ "${FILESDIR}/salt-3000.2-tornado-py38.patch"
)
python_prepare() {
@@ -122,6 +123,9 @@ python_prepare() {
# tests that require network access
rm tests/unit/{states,modules}/test_zcbuildout.py || die
+ # make sure pkg_resources doesn't bomb because pycrypto isn't installed
+ find . -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d' -i || die
+
# allow the use of the renamed msgpack
sed -i '/^msgpack/d' requirements/base.txt || die
}