From f46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Thu, 30 Apr 2020 11:56:47 -0700 Subject: [PATCH] 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 --- app-admin/salt/files/salt-3000.2-tornado-py38.patch | 12 ++++++++++++ .../{salt-3000.2-r2.ebuild => salt-3000.2-r3.ebuild} | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 app-admin/salt/files/salt-3000.2-tornado-py38.patch rename app-admin/salt/{salt-3000.2-r2.ebuild => salt-3000.2-r3.ebuild} (96%) 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 similarity index 96% rename from app-admin/salt/salt-3000.2-r2.ebuild rename to 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 } -- 2.26.2