Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/salt/files/, app-admin/salt/
Date: Thu, 30 Apr 2020 18:59:42
Message-Id: 1588273058.f46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8.chutzpah@gentoo
1 commit: f46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Thu Apr 30 18:56:47 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 30 18:57:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f46a5f23
7
8 app-admin/salt-3000.2-r3: revbump,pycrypto deps, fix warning (bug #720148)
9
10 Get rid of all pycrypto deps from requirements files, fix
11 collections.abc warning in bundled tornado.
12
13 Closes: https://bugs.gentoo.org/720148
14
15 Copyright: Sony Interactive Entertainment Inc.
16 Package-Manager: Portage-2.3.99, Repoman-2.3.22
17 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
18
19 app-admin/salt/files/salt-3000.2-tornado-py38.patch | 12 ++++++++++++
20 .../salt/{salt-3000.2-r2.ebuild => salt-3000.2-r3.ebuild} | 4 ++++
21 2 files changed, 16 insertions(+)
22
23 diff --git a/app-admin/salt/files/salt-3000.2-tornado-py38.patch b/app-admin/salt/files/salt-3000.2-tornado-py38.patch
24 new file mode 100644
25 index 00000000000..b324872c921
26 --- /dev/null
27 +++ b/app-admin/salt/files/salt-3000.2-tornado-py38.patch
28 @@ -0,0 +1,12 @@
29 +diff -ur salt-3000.2.orig/salt/ext/tornado/httputil.py salt-3000.2/salt/ext/tornado/httputil.py
30 +--- salt-3000.2.orig/salt/ext/tornado/httputil.py 2020-04-29 11:29:20.000000000 -0700
31 ++++ salt-3000.2/salt/ext/tornado/httputil.py 2020-04-30 11:52:45.690890947 -0700
32 +@@ -104,7 +104,7 @@
33 + _normalized_headers = _NormalizedHeaderCache(1000)
34 +
35 +
36 +-class HTTPHeaders(collections.MutableMapping):
37 ++class HTTPHeaders(collections.abc.MutableMapping):
38 + """A dictionary that maintains ``Http-Header-Case`` for all keys.
39 +
40 + Supports multiple values per key via a pair of new methods,
41
42 diff --git a/app-admin/salt/salt-3000.2-r2.ebuild b/app-admin/salt/salt-3000.2-r3.ebuild
43 similarity index 96%
44 rename from app-admin/salt/salt-3000.2-r2.ebuild
45 rename to app-admin/salt/salt-3000.2-r3.ebuild
46 index 2f37c30a24d..5e7ab8e084a 100644
47 --- a/app-admin/salt/salt-3000.2-r2.ebuild
48 +++ b/app-admin/salt/salt-3000.2-r3.ebuild
49 @@ -111,6 +111,7 @@ PATCHES=(
50
51 # https://github.com/saltstack/salt/pull/55900
52 "${FILESDIR}/salt-3000.2-py38-abc.patch"
53 + "${FILESDIR}/salt-3000.2-tornado-py38.patch"
54 )
55
56 python_prepare() {
57 @@ -122,6 +123,9 @@ python_prepare() {
58 # tests that require network access
59 rm tests/unit/{states,modules}/test_zcbuildout.py || die
60
61 + # make sure pkg_resources doesn't bomb because pycrypto isn't installed
62 + find . -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d' -i || die
63 +
64 # allow the use of the renamed msgpack
65 sed -i '/^msgpack/d' requirements/base.txt || die
66 }