commit: e3231439b24ee57a2641fedda919b60c7c3df91a Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> AuthorDate: Sat Feb 27 00:29:01 2021 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Sat Feb 27 02:32:32 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3231439
app-admin/salt-3001.6: Version bump (sec bug #767919) Bug: https://bugs.gentoo.org/767919 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> app-admin/salt/Manifest | 1 + app-admin/salt/files/salt-3001.6-tests.patch | 18 +++++++ app-admin/salt/salt-3000.6.ebuild | 7 +-- .../{salt-3000.6.ebuild => salt-3001.6.ebuild} | 61 ++++++++++------------ 4 files changed, 50 insertions(+), 37 deletions(-) diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest index c9c7548556f..a08943d31b6 100644 --- a/app-admin/salt/Manifest +++ b/app-admin/salt/Manifest @@ -2,5 +2,6 @@ DIST salt-3000.2-py38-misc.patch.gz 6250 BLAKE2B 68fff80a042e6bf208ea2d9692da7a7 DIST salt-3000.5.tar.gz 15229450 BLAKE2B 135e9b9dcc461ac898231ce46e6a1359e6d60a43822320950bc0b83057f768dadf55320dd73df72d5bc917f324eef4661e6f75d8eb8e84aef958bd2df8924cfc SHA512 2579f65c24d22d77132057bd8cf37040d7d149624745dd68b4c44318be786580dcc34bf563f90d7de9ef5b726b2453bef4d8639bc8fbd9c5e691500520335317 DIST salt-3000.6.tar.gz 15236781 BLAKE2B 5a532a6915b331fb532dc6e1651cf8fca3e1a5e9f29f6d75260fdb1162dbfeec755c65f7c6fc28b1cc7dc3ace978547830af31aafc1eee8419bbc7e695725787 SHA512 739e3671766c45a0ef1eb45933c7f00f14586e91f4c4a79cbed913a48961a48baee853206ba569491756e8a872d22f3635eb6bc1a366020e551c567b2334c508 DIST salt-3001.4.tar.gz 15716372 BLAKE2B cc33b29b0da9cfaae22726b2b471245880aafa106187b531872a9ae5ee773a94e0d550a68b11b74826bc0b35197a311f690535f2280931ccb5050275ad967c2d SHA512 b7f343c65917280a96d8a3eaa6b508121b11b9f9b0bfffa5b4c79af0023bdecf4581f76014847d97f48d9677edb6f632adec3850153c3048c3114128a250b84b +DIST salt-3001.6.tar.gz 15736056 BLAKE2B 00e7674452e9d61c3cd487d27a3a1f3435c6b12dcc89008aa63c96814957b6ce8654f4d4d51dbce7b14027f0cee66fd2ea9602f6be18bf2f4beac11ae164f89f SHA512 e45c9cfddb64ab1c9d66b6b6b3e5ff8d9010c01307161e5013140b4362ee630cf912ab153d1afa72f56d18fc5353293b2f4b449caf8ee384d1e93204d490bf4c DIST salt-3002.2.tar.gz 15765855 BLAKE2B b26895ababc8551e01baa806c5a0e41dab9a379e47d2289b5c3c529ef762c69631d7ed8b32339ec66c3929c5883782131eb56d1bfbcc743829c4f0199a900ca1 SHA512 0f617a07475347b1bb0d1c6059de541e102103182820dfd6f64f4c281d660e68358eb1ab7171a637e16cef9fea2517c8356df9c449f9bbc92538aa86c316f652 DIST salt-3002.5.tar.gz 15784880 BLAKE2B baa90bb0caea572dfbe12d92fb488ee0c4adef9a07221f394009cd43a62ffef18c57f2e7cdcfcd923807c7a3d02ce6833480f74d70250c29d311420f30514300 SHA512 dda2caa338f646ec51d2de6b0df10fbb27eceddbe8c797ae192b9ef1312d566ae71a243a3a95918fa375b125089aa29a73b1b908c5cc1b0451dccb582a4978a1 diff --git a/app-admin/salt/files/salt-3001.6-tests.patch b/app-admin/salt/files/salt-3001.6-tests.patch new file mode 100644 index 00000000000..d32977e4694 --- /dev/null +++ b/app-admin/salt/files/salt-3001.6-tests.patch @@ -0,0 +1,18 @@ +--- salt-3001.6-python3_7/tests/unit/modules/test_cmdmod.py 2021-02-26 16:13:26.386553301 -0800 ++++ salt-3001.6/tests/unit/modules/test_cmdmod.py 2021-02-26 16:14:25.858150910 -0800 +@@ -437,6 +437,7 @@ + else: + raise RuntimeError + ++ @skipIf(True, "does not work with sandbox") + @skipIf(salt.utils.platform.is_windows(), "Do not run on Windows") + @skipIf(salt.utils.platform.is_darwin(), "Do not run on MacOS") + def test_run_cwd_in_combination_with_runas(self): +@@ -560,6 +561,7 @@ + + self.assertEqual(ret["stdout"], salt.utils.stringutils.to_unicode(stdout)) + ++ @skipIf(True, "does not work with sandbox") + def test_run_all_output_loglevel_debug(self): + """ + Test that specifying debug for loglevel diff --git a/app-admin/salt/salt-3000.6.ebuild b/app-admin/salt/salt-3000.6.ebuild index 14cbe4757be..a3b94dc622d 100644 --- a/app-admin/salt/salt-3000.6.ebuild +++ b/app-admin/salt/salt-3000.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -117,8 +117,9 @@ PATCHES=( ) python_prepare() { - # remove tests with external dependencies that may not be available - rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die + # remove tests with external dependencies that may not be available, and + # tests that don't work in sandbox + rm tests/unit/{test_zypp_plugins,utils/test_extend,module_names}.py || die rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die rm tests/unit/states/test_boto_vpc.py || die diff --git a/app-admin/salt/salt-3000.6.ebuild b/app-admin/salt/salt-3001.6.ebuild similarity index 79% copy from app-admin/salt/salt-3000.6.ebuild copy to app-admin/salt/salt-3001.6.ebuild index 14cbe4757be..23e5e85de8b 100644 --- a/app-admin/salt/salt-3000.6.ebuild +++ b/app-admin/salt/salt-3001.6.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8} ) +PYTHON_COMPAT=( python3_{7..8} ) DISTUTILS_USE_SETUPTOOLS=rdepend inherit systemd distutils-r1 @@ -16,8 +16,7 @@ if [[ ${PV} == 9999* ]]; then EGIT_BRANCH="develop" SRC_URI="" else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - https://dev.gentoo.org/~chutzpah/dist/salt/salt-3000.2-py38-misc.patch.gz" + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" KEYWORDS="~amd64 ~x86" fi @@ -32,13 +31,14 @@ RDEPEND=" dev-python/distro[${PYTHON_USEDEP}] dev-python/jinja[${PYTHON_USEDEP}] dev-python/libnacl[${PYTHON_USEDEP}] - >=dev-python/msgpack-0.5[${PYTHON_USEDEP}] - <dev-python/msgpack-1.0[${PYTHON_USEDEP}] - dev-python/pycryptodome[${PYTHON_USEDEP}] + >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}] + >=dev-python/pycryptodome-3.9.7[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/markupsafe[${PYTHON_USEDEP}] >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-python/watchdog[${PYTHON_USEDEP}] libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) mako? ( dev-python/mako[${PYTHON_USEDEP}] ) ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) @@ -84,12 +84,12 @@ BDEPEND=" dev-python/psutil[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] - dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] - >=dev-python/pytest-salt-2018.12.8[${PYTHON_USEDEP}] + >=dev-python/pytest-salt-2020.1.27[${PYTHON_USEDEP}] + dev-python/pytest-salt-factories[${PYTHON_USEDEP}] dev-python/pytest-tempdir[${PYTHON_USEDEP}] >=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - !x86? ( >=dev-python/boto3-1.2.1[${PYTHON_USEDEP}] ) + >=dev-python/virtualenv-20.0.20[${PYTHON_USEDEP}] + !x86? ( >=dev-python/boto3-1.3.15[${PYTHON_USEDEP}] ) )" DOCS=( README.rst AUTHORS ) @@ -99,42 +99,35 @@ 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-3000.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" - "${FILESDIR}/salt-2019.2.8-ansible-roster-fix.patch" + "${FILESDIR}/salt-3001.1-tests.patch" + "${FILESDIR}/salt-3001.6-tests.patch" ) -python_prepare() { - # remove tests with external dependencies that may not be available - rm tests/unit/{test_zypp_plugins.py,utils/test_extend.py} || die +python_prepare_all() { + # remove tests with external dependencies that may not be available, and + # tests that don't work in sandbox + rm tests/unit/{test_{zypp_plugins,module_names},utils/test_{extend,cache}}.py || die rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die rm tests/unit/states/test_boto_vpc.py || die + rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die # 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 + find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die + # pycryptodome rather than pycryptodomex + find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || 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() { @@ -142,7 +135,7 @@ python_install_all() { USE_SETUPTOOLS=1 distutils-r1_python_install_all for svc in minion master syndic api; do - newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} + newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc} newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} systemd_dounit "${FILESDIR}"/salt-${svc}.service done @@ -168,7 +161,7 @@ python_test() { addwrite "${tempdir}" ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" || die - USE_SETUPTOOLS=1 SHELL="/bin/bash" \ + USE_SETUPTOOLS=1 NO_INTERNET=1 SHELL="/bin/bash" \ TMPDIR="${tempdir}" \ ${EPYTHON} tests/runtests.py \ --unit-tests --no-report --verbose \
