From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1904A138359 for ; Sun, 6 Sep 2020 19:13:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1758DE08F6; Sun, 6 Sep 2020 19:13:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1A79E08F6 for ; Sun, 6 Sep 2020 19:13:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 955B4340C58 for ; Sun, 6 Sep 2020 19:13:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFBD5339 for ; Sun, 6 Sep 2020 19:13:16 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1599419588.a6f5c9e44e71e1046e35bbf99351f06b2847cfac.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/salt/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/salt/salt-3001.1-r1.ebuild app-admin/salt/salt-3001.1.ebuild X-VCS-Directories: app-admin/salt/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: a6f5c9e44e71e1046e35bbf99351f06b2847cfac X-VCS-Branch: master Date: Sun, 6 Sep 2020 19:13:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a0c8c473-a2dc-4057-8a88-13d6c07d046d X-Archives-Hash: 55c01c7002dc69752e20505a9a0372e0 commit: a6f5c9e44e71e1046e35bbf99351f06b2847cfac Author: Patrick McLean gentoo org> AuthorDate: Sun Sep 6 19:12:51 2020 +0000 Commit: Patrick McLean gentoo org> CommitDate: Sun Sep 6 19:13:08 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6f5c9e4 app-admin/salt-3001.1-r1: Revbump, pycryptodomex dep (bug #740388) Closes: https://bugs.gentoo.org/740388 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Patrick McLean gentoo.org> .../{salt-3001.1.ebuild => salt-3001.1-r1.ebuild} | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/app-admin/salt/salt-3001.1.ebuild b/app-admin/salt/salt-3001.1-r1.ebuild similarity index 92% rename from app-admin/salt/salt-3001.1.ebuild rename to app-admin/salt/salt-3001.1-r1.ebuild index 8f4eea2bcf2..09299dcc1d0 100644 --- a/app-admin/salt/salt-3001.1.ebuild +++ b/app-admin/salt/salt-3001.1-r1.ebuild @@ -34,6 +34,7 @@ RDEPEND=" >=dev-python/msgpack-0.5[${PYTHON_USEDEP}] =dev-python/pycryptodome-3.9.7[${PYTHON_USEDEP}] + dev-python/pycryptodomex[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/markupsafe[${PYTHON_USEDEP}] >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] @@ -100,23 +101,11 @@ REQUIRED_USE="|| ( raet zeromq ) RESTRICT="!test? ( test ) x86? ( test )" PATCHES=( - #"${FILESDIR}/salt-2017.7.0-dont-realpath-tmpdir.patch" "${FILESDIR}/salt-2019.2.0-skip-tests-that-oom-machine.patch" "${FILESDIR}/salt-3001.1-tests.patch" - #"${FILESDIR}/salt-3000.2-tests.patch" - - # https://github.com/saltstack/salt/pull/55410 - #"${FILESDIR}/salt-3000.2-py38.patch" - - # https://github.com/saltstack/salt/pull/55900 - #"${FILESDIR}/salt-3000.2-py38-abc.patch" - - # misc py38 fixups - #"${WORKDIR}/salt-3000.2-py38-misc.patch" - #"${FILESDIR}/salt-3000.2-py38-logwarn.patch" ) -python_prepare() { +python_prepare_all() { # remove tests with external dependencies that may not be available rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die @@ -129,13 +118,14 @@ python_prepare() { # make sure pkg_resources doesn't bomb because pycrypto isn't installed find . -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d' -i || die + distutils-r1_python_prepare_all +} + +python_prepare() { einfo "Fixing collections.abc warnings for ${EPYTHON}" local abc abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die - - # allow the use of the renamed msgpack - sed -i '/^msgpack/d' requirements/base.txt || die } python_install_all() {