diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-16 20:27:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-16 20:27:28 +0000 |
commit | 2fd57282f0262ca084e05b0f2c63fbada395d02b (patch) | |
tree | 4e0f23cea9ce9fd972e70ebc5214bf36fed465cc /dev-python/cython | |
parent | c3bc61051d7f12b4c682efa7a5460bbc8815649e (diff) |
gentoo resync : 16.01.2021
Diffstat (limited to 'dev-python/cython')
-rw-r--r-- | dev-python/cython/Manifest | 13 | ||||
-rw-r--r-- | dev-python/cython/cython-0.29.21.ebuild | 81 | ||||
-rw-r--r-- | dev-python/cython/cython-0.29.23.ebuild | 78 | ||||
-rw-r--r-- | dev-python/cython/cython-0.29.24-r1.ebuild | 77 | ||||
-rw-r--r-- | dev-python/cython/cython-0.29.25.ebuild | 2 | ||||
-rw-r--r-- | dev-python/cython/files/cython-0.29.14-sphinx-update.patch | 13 | ||||
-rw-r--r-- | dev-python/cython/files/cython-0.29.21-spawn-multiprocessing.patch | 29 | ||||
-rw-r--r-- | dev-python/cython/files/cython-0.29.23-tracing-py310.patch | 213 | ||||
-rw-r--r-- | dev-python/cython/files/cython-0.29.24-test-failure-warning.patch | 20 | ||||
-rw-r--r-- | dev-python/cython/files/cython-0.29.24-unaligned-format.patch | 33 |
10 files changed, 2 insertions, 557 deletions
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest index cfcc9f74fea7..e972193e55b6 100644 --- a/dev-python/cython/Manifest +++ b/dev-python/cython/Manifest @@ -1,19 +1,8 @@ AUX 50cython-gentoo.el 388 BLAKE2B 5bc38190b467efa9e7be1a5831022534dbfdc02206fca34f39bb2c897aa50cdebf960589181a9614a50829c380a892a9013e8ec5f538d51f52475cb8d92fdb5b SHA512 dd554d0d6cc220988552b06a20337af20b847e75bee76c90eb92ea979d9c2ae9d64ffa849266ff403d857b3737981de451bf40061bea0533600476bc57661c18 -AUX cython-0.29.14-sphinx-update.patch 377 BLAKE2B 32ba9ccc6c093fb9e575686c9a3b707a10a2488979d0a1dcc0863022d48255455216d11c1968bc5d49a8b583a340113c090ec103ae233dcac2164beb1765f9cc SHA512 3714019a1659b69243bf5f76d1557e3e4e507fa6b15bf4259001f961d1127e18e01e3d17fe04706c882e264651ea5699c6295f33c66af7577ab6e0906c0d3273 -AUX cython-0.29.21-spawn-multiprocessing.patch 1096 BLAKE2B f31e9e8bdc86ab1098bfa115e60470410f41fdf4be558c6a11d0c3ea61b8a8009f6242a96e2574f525e53b6125de78c5f8dbd8f7499d8debd368e80a6d383e47 SHA512 71f2349dfee2504bffe2ce378a00b2033ad229f99c597382eafa54107fbdc56fc177e4412e6314794b5ce22d9713e535467b0ed3e36ae657a5deb9c3325eb242 AUX cython-0.29.22-spawn-multiprocessing.patch 963 BLAKE2B ebbc3f6f4fa88e7e082326bccbad328724a4ff5645f0b2aa28f21419044b17bed8495618bb980b23a99310c2b6ef275331e1b9aa6d734017eb33646c92a07a73 SHA512 3f5c6b4108b87cf3014416386095c07ac91762152bbd87e8bd589177d40b933c11e19610bea06720c5c70f76b5b9b70d27e5c3cfa20eed30deaaf7d122910bd3 AUX cython-0.29.23-test_exceptions-py310.patch 656 BLAKE2B 6c650c85d01b8bf367528d144cd967fa9def94634e35763e2e7a1c3e5afa2b01d0c84694024dde6e45577eee223f6464b5f88ab971d207d35892edf347a0c08f SHA512 d8f7f770a0b3303552deec0e7d3f9258de1edcd384f4b2c3881634fd21ce847a3d974e9142d1ed2fbe3a549e65292c6690be3a36ab4de52d0593d9831dc2f7ce -AUX cython-0.29.23-tracing-py310.patch 13401 BLAKE2B e2359644ef2dd2c2f9eadc41eac6634d8bcde77edc4f7c11b8c6c3ae2f037965291c3cf9907ac5e07f3f97505adf9c2040f30e7830c9216bd7d51aeca68b5286 SHA512 e0fbd24224da1e848fc37dc8652738086c43297432627599ec8d43cf75c6f7a9cd1ff360d156f778e13749f339767608e631336f988f6f17d6f3f40b654275f8 -AUX cython-0.29.24-test-failure-warning.patch 632 BLAKE2B 6bc40e4c2db922bc05735f83f90017e72df75fb200b285b665b5894f7cf979110b3964a5f49ec7c30710a02650ab9f03ca29f973fd262b5a7a2da30881b88034 SHA512 30ce0529d543d4379d0fef442a0023e1076ff9121bfa98f14792aa3b7c47d98ab1597b85a3851c243c762ed12264fbcdc4f6a177698d2784fb8d06c200d5f9b1 -AUX cython-0.29.24-unaligned-format.patch 1632 BLAKE2B 04b95419636cffd58e4a932227287ca1e3fdc1f7c1f2874233567c01c7cb18aa691281284e917afa24f14ffcee185828ca52022a4ab3092f72569283bfae0e19 SHA512 82665de428d8c043d9ab67bf66a427de61110cd9aae18c7a100ea6d1e8c6b42050d4bfde096b774600bc63c68d81433dca68f2e987ba1b2ea82163f76401eabd -DIST cython-0.29.21.gh.tar.gz 2088511 BLAKE2B 7a4ddabb65a519d3c71454ac8417438a3a9c46b47489c18e7c7e82ffcb5d5f2f0c5246d0b364f8317d374c53f0c83844c73c7d2ef6b9f75f10707aaf2931ce41 SHA512 2c0c3e3fff07106eb98862f71cd5dec9ff29460cf9b9e4de74537ca5e033f7523989beb5fbdc14723beaf94a535976f75c803e791b87e017961d9694b8c37679 -DIST cython-0.29.23.gh.tar.gz 2093463 BLAKE2B c710b9bc9e05e0030dff3098857b349564fd167f7d9c47e2ef4e8897e072f67497b8ed3994f45135c21f8b2bf3a2cff016fec9a808b2bbe9712174dd0a6b1a3e SHA512 093b7a1d5c68f6e2d2b9b8adb9ac99e8967ddd0a66c0513a78e88bd55d96533dd8352b2478554fb53bf32a72d730967fb08ccb2eaa462da68f86891dceb4925a -DIST cython-0.29.24.gh.tar.gz 2097245 BLAKE2B 9f5f2da0aed61d7fda2e14ea0669a2dd187cd053f3b82621342c7be29e26ff581b673a32e43bacd5c0df3e515f250eb23a64b1dae8911132fdca48175910a3dc SHA512 387a827f3cb7428248019744e3ed606a133d98ac882b83624d24ae0fdf8a8f2334978555d7d84e5cc4adaf715c541fef64e45bcbdda85ca33473c21f99360be8 DIST cython-0.29.25.gh.tar.gz 2100012 BLAKE2B 497c2550c870c808f1c972d3e9ffedd6672544b9976653faac4a4125008e4472ae5a2e0db0510c8b2c5fd11f73a5885e0e4394bbce2f1327b7610bf59b64f640 SHA512 1d655bb4de8bd3480bcd579c32cd0e5bfc5cfc3d966d3d892b98cc86f59c9bd0522066c4c5dbc4c6abeb3ebe3fcd3f49ec873dd724f9ad04976635f652fdf9e3 DIST cython-0.29.26.gh.tar.gz 2100616 BLAKE2B 9990d8fd14a8042b1a27a4f60fcc8f6d4be42a1e475f0e5d37bc6c60439ca00a1a70b49ab708ad2dfac5184a62c25d75f27ff158ef7f0df9132355c570a9aac6 SHA512 936449dd0031c2e2baeb4402a448d632324c1b66bf062ae0e632cf63dc27556607efb8446e8f913253b761627d3946283c2a60fdcad8c2434e1601fe4b0fb60e -EBUILD cython-0.29.21.ebuild 1987 BLAKE2B 1df83b6ef7f839622cd73c07384ccf0a6e722fe5ae9f42374ff9df2995e5b624e78a534c078534c341d034f984f73fc5c3abe954166ba8ef0f3fcc6aff2fbf06 SHA512 aa85e5d5ea9a1413686d8903af4c2c310f504ba0fc1ca469253010dae7a2abbb434b5d2e59f18b1a22f1149cfaade4b942466973e9559b913146abdf3b191155 -EBUILD cython-0.29.23.ebuild 1952 BLAKE2B e8d88577efb70db3f75a7c0068bc1b9659132bde1927c3a50a92822020d6d575761ccacd66f2efea021570439c5c052cb352834071d8ef505247ba427d045da9 SHA512 cc6643d4a19a075e0e54184775596251060bcc9b73c6b9d6a26564c5588ab81734d30127c42b723d3c1e62d9afdc5f268dddf1a26df5c138634b9cabc5caca44 -EBUILD cython-0.29.24-r1.ebuild 1932 BLAKE2B a2ecc222a291fc50a5e8f6f6149a7702b7430cf413a34ec748a62520098c755af92e6f945bf47df0a3be80faca57a21baefd7da6c6479a8abdc6462ba9a8b7a2 SHA512 6d1b1c269003c998d6fb2b326e58efd0bd434d494d9dccda5fbc0512b9e75c3f2be0a677a9b42755141a642dcc06f5eada7b7c7f16c5557be1d797be45a80115 -EBUILD cython-0.29.25.ebuild 1825 BLAKE2B 93ddf306ea56ae40708fb45e7e597dd7048784becc0de6211b1d731f3b2e231f849db143b620a9652b541a54d10c07b640a8b5c01637100b3f2eb8def41191a3 SHA512 ac0701ccaaa308283ae1f244ca2eeba8f0d6024f9511f162b00ba7809b00253c6a377f66dd1a2dfe7e85a66992d279d7b997d96c4de6ec032ff98fab4d18d945 +EBUILD cython-0.29.25.ebuild 1824 BLAKE2B 2c84e4bf9cfc26bed3d8f88ceab4f760565688ce44a8d2082e3058a6dadc4f71ad89c6e85d192739b6d176e382d08d0ad1f532bd1d8f0285de5bd8bbce970ec2 SHA512 c80bd93c6c289b3c6a150dca28f4b891f9489bdb70643a0e26443e77e3b1510cc97a899655a173409147283c49db31f9315873a6be1658a11696c7d2f6eb9966 EBUILD cython-0.29.26.ebuild 1832 BLAKE2B 8c16b823cd4559572787a1b135050bd7cda1301e902b393b537363b4657764aa8386810b9d57fd25b66231fc47d9502be265b1bd4822170ee3020af709e95d1a SHA512 68bcd199642518860b62784d718138510cb3e0036803e856642dbbd53ef50126c2d9df17fefb16d82929f8547973cbf20a4fd73897e6adb17fe6fa90d95d3b2f MISC metadata.xml 606 BLAKE2B 1ee3fc75852383aa0618afeb7521c3ae0e95b518c85b2c58ff958905092cf68017d313a09d25031a50b649f9dd1b452e751036f2552df9d91447baaeff0a8f0b SHA512 b7917c2e417cee9e59c8011246f7223f5095c87f0294ea140dbfc8fda0b09cf61c9f055380a9d3f74a07e71bb49d75f219d6224ea95f1f4d4b451e5688c13f78 diff --git a/dev-python/cython/cython-0.29.21.ebuild b/dev-python/cython/cython-0.29.21.ebuild deleted file mode 100644 index bb017b7e2557..000000000000 --- a/dev-python/cython/cython-0.29.21.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 toolchain-funcs elisp-common - -DESCRIPTION="A Python to C compiler" -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/ - https://github.com/cython/cython" -SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" -IUSE="emacs test" -RESTRICT="!test? ( test )" - -RDEPEND=" - emacs? ( >=app-editors/emacs-23.1:* ) -" -BDEPEND="${RDEPEND} - test? ( - $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \ - python3_{6,7,8}) - )" - -PATCHES=( - "${FILESDIR}/cython-0.29.14-sphinx-update.patch" - "${FILESDIR}/cython-0.29.21-spawn-multiprocessing.patch" -) - -SITEFILE=50cython-gentoo.el - -distutils_enable_sphinx docs - -python_compile() { - if ! python_is_python3; then - local CFLAGS="${CFLAGS} -fno-strict-aliasing" - local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" - fi - - # Python gets confused when it is in sys.path before build. - local -x PYTHONPATH= - - distutils-r1_python_compile -} - -python_compile_all() { - use emacs && elisp-compile Tools/cython-mode.el -} - -python_test() { - tc-export CC - # https://github.com/cython/cython/issues/1911 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow" - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ - || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) - distutils-r1_python_install_all - - if use emacs; then - elisp-install ${PN} Tools/cython-mode.* - elisp-site-file-install "${FILESDIR}/${SITEFILE}" - fi -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} diff --git a/dev-python/cython/cython-0.29.23.ebuild b/dev-python/cython/cython-0.29.23.ebuild deleted file mode 100644 index bce6983a00f2..000000000000 --- a/dev-python/cython/cython-0.29.23.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{7..10} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 toolchain-funcs elisp-common - -DESCRIPTION="A Python to C compiler" -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/ - https://github.com/cython/cython" -SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" -IUSE="emacs test" -RESTRICT="!test? ( test )" - -RDEPEND=" - emacs? ( >=app-editors/emacs-23.1:* ) -" -BDEPEND="${RDEPEND} - test? ( - $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \ - 'python3*') - )" - -PATCHES=( - "${FILESDIR}/${PN}-0.29.14-sphinx-update.patch" - "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch" - "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch" - "${FILESDIR}/${PN}-0.29.23-tracing-py310.patch" -) - -SITEFILE=50cython-gentoo.el - -distutils_enable_sphinx docs - -python_compile() { - # Python gets confused when it is in sys.path before build. - local -x PYTHONPATH= - - distutils-r1_python_compile -} - -python_compile_all() { - use emacs && elisp-compile Tools/cython-mode.el -} - -python_test() { - tc-export CC - # https://github.com/cython/cython/issues/1911 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow" - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ - || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) - distutils-r1_python_install_all - - if use emacs; then - elisp-install ${PN} Tools/cython-mode.* - elisp-site-file-install "${FILESDIR}/${SITEFILE}" - fi -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} diff --git a/dev-python/cython/cython-0.29.24-r1.ebuild b/dev-python/cython/cython-0.29.24-r1.ebuild deleted file mode 100644 index f613ee176918..000000000000 --- a/dev-python/cython/cython-0.29.24-r1.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{7..10} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 toolchain-funcs elisp-common - -DESCRIPTION="A Python to C compiler" -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/ - https://github.com/cython/cython" -SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" -IUSE="emacs test" -RESTRICT="!test? ( test )" - -RDEPEND=" - emacs? ( >=app-editors/emacs-23.1:* ) -" -BDEPEND="${RDEPEND} - test? ( - $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \ - 'python3*') - )" - -PATCHES=( - "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch" - "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch" - "${FILESDIR}/${PN}-0.29.24-unaligned-format.patch" - "${FILESDIR}/${PN}-0.29.24-test-failure-warning.patch" -) - -SITEFILE=50cython-gentoo.el - -distutils_enable_sphinx docs - -python_compile() { - # Python gets confused when it is in sys.path before build. - local -x PYTHONPATH= - - distutils-r1_python_compile -} - -python_compile_all() { - use emacs && elisp-compile Tools/cython-mode.el -} - -python_test() { - tc-export CC - # https://github.com/cython/cython/issues/1911 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow" - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests || - die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) - distutils-r1_python_install_all - - if use emacs; then - elisp-install ${PN} Tools/cython-mode.* - elisp-site-file-install "${FILESDIR}/${SITEFILE}" - fi -} - -pkg_postinst() { - use emacs && elisp-site-regen -} - -pkg_postrm() { - use emacs && elisp-site-regen -} diff --git a/dev-python/cython/cython-0.29.25.ebuild b/dev-python/cython/cython-0.29.25.ebuild index 9a05a3bf7890..13ce9563c542 100644 --- a/dev-python/cython/cython-0.29.25.ebuild +++ b/dev-python/cython/cython-0.29.25.ebuild @@ -15,7 +15,7 @@ SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${P}.gh.tar.gz LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" IUSE="emacs test" RESTRICT="!test? ( test )" diff --git a/dev-python/cython/files/cython-0.29.14-sphinx-update.patch b/dev-python/cython/files/cython-0.29.14-sphinx-update.patch deleted file mode 100644 index 3f426754f6f1..000000000000 --- a/dev-python/cython/files/cython-0.29.14-sphinx-update.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/docs/conf.py b/docs/conf.py -index 10662e28c..a84e0b928 100644 ---- a/docs/conf.py -+++ b/docs/conf.py -@@ -41,7 +41,7 @@ highlight_language = 'cython' - extensions = [ - 'ipython_console_highlighting', - 'cython_highlighting', -- 'sphinx.ext.pngmath', -+ 'sphinx.ext.imgmath', - 'sphinx.ext.todo', - 'sphinx.ext.intersphinx', - 'sphinx.ext.autodoc' diff --git a/dev-python/cython/files/cython-0.29.21-spawn-multiprocessing.patch b/dev-python/cython/files/cython-0.29.21-spawn-multiprocessing.patch deleted file mode 100644 index 0aa7212b9a34..000000000000 --- a/dev-python/cython/files/cython-0.29.21-spawn-multiprocessing.patch +++ /dev/null @@ -1,29 +0,0 @@ -Needed to prevent a loop while calling cythonize on macOS - or any platform -defaulting to the 'spawn' method, as Python 3.8 does on Darwin. - -https://github.com/cython/cython/pull/3263 -From 15ae78bb74a856836dd64828326f4f0812d36520 Mon Sep 17 00:00:00 2001 -From: Marcel Bargull <marcel.bargull@udo.edu> -Date: Fri, 6 Dec 2019 18:21:19 +0100 -Subject: [PATCH] Disable parallel cythonization for "spawn" start method. - ---- - Cython/Build/Dependencies.py | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py -index 593e00a6ef..f9b9c15bc5 100644 ---- a/Cython/Build/Dependencies.py -+++ b/Cython/Build/Dependencies.py -@@ -1073,6 +1073,11 @@ def copy_to_build_dir(filepath, root=os.getcwd()): - - if N <= 1: - nthreads = 0 -+ if nthreads: -+ import multiprocessing -+ if multiprocessing.get_start_method() == 'spawn': -+ print('Disabling parallel cythonization for "spawn" process start method.') -+ nthreads = 0 - if nthreads: - import multiprocessing - pool = multiprocessing.Pool( diff --git a/dev-python/cython/files/cython-0.29.23-tracing-py310.patch b/dev-python/cython/files/cython-0.29.23-tracing-py310.patch deleted file mode 100644 index ff0e45a646dc..000000000000 --- a/dev-python/cython/files/cython-0.29.23-tracing-py310.patch +++ /dev/null @@ -1,213 +0,0 @@ -From c9cccfeaf3f0e20c2bb14fc234e86f4fc8e4fe81 Mon Sep 17 00:00:00 2001 -From: Stefan Behnel <stefan_ml@behnel.de> -Date: Fri, 14 May 2021 19:39:58 +0200 -Subject: [PATCH] Adapt tracing code to Py3.10 beta 1. - ---- - Cython/Utility/Profile.c | 79 +++++++++++++++++++++++++--------------- - 1 file changed, 49 insertions(+), 30 deletions(-) - -diff --git a/Cython/Utility/Profile.c b/Cython/Utility/Profile.c -index 15ceb41cc2..2cd9af9da7 100644 ---- a/Cython/Utility/Profile.c -+++ b/Cython/Utility/Profile.c -@@ -47,13 +47,32 @@ - #define CYTHON_FRAME_DEL(frame) Py_CLEAR(frame) - #endif - -- #define __Pyx_TraceDeclarations \ -- static PyCodeObject *$frame_code_cname = NULL; \ -- CYTHON_FRAME_MODIFIER PyFrameObject *$frame_cname = NULL; \ -- int __Pyx_use_tracing = 0; -+ #define __Pyx_TraceDeclarations \ -+ static PyCodeObject *$frame_code_cname = NULL; \ -+ CYTHON_FRAME_MODIFIER PyFrameObject *$frame_cname = NULL; \ -+ int __Pyx_use_tracing = 0; - -- #define __Pyx_TraceFrameInit(codeobj) \ -- if (codeobj) $frame_code_cname = (PyCodeObject*) codeobj; -+ #define __Pyx_TraceFrameInit(codeobj) \ -+ if (codeobj) $frame_code_cname = (PyCodeObject*) codeobj; -+ -+#if PY_VERSION_HEX >= 0x030a00b1 -+ #define __Pyx_IsTracing(tstate, check_tracing, check_funcs) \ -+ (unlikely(tstate->cframe->use_tracing) && \ -+ (!(check_tracing) || !tstate->tracing) && \ -+ (!(check_funcs) || tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) -+ -+ #define __Pyx_SetTracing(tstate, enable) \ -+ (tstate)->cframe->use_tracing = (enable) -+ -+#else -+ #define __Pyx_IsTracing(tstate, check_tracing, check_funcs) \ -+ (unlikely(tstate->use_tracing) && \ -+ (!(check_tracing) || !tstate->tracing) && \ -+ (!(check_funcs) || tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) -+ -+ #define __Pyx_SetTracing(tstate, enable) \ -+ (tstate)->use_tracing = (enable) -+#endif - - #ifdef WITH_THREAD - #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) \ -@@ -62,8 +81,7 @@ - PyThreadState *tstate; \ - PyGILState_STATE state = PyGILState_Ensure(); \ - tstate = __Pyx_PyThreadState_Current; \ -- if (unlikely(tstate->use_tracing) && !tstate->tracing && \ -- (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) { \ -+ if (__Pyx_IsTracing(tstate, 1, 1)) { \ - __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&$frame_code_cname, &$frame_cname, tstate, funcname, srcfile, firstlineno); \ - } \ - PyGILState_Release(state); \ -@@ -71,8 +89,7 @@ - } \ - } else { \ - PyThreadState* tstate = PyThreadState_GET(); \ -- if (unlikely(tstate->use_tracing) && !tstate->tracing && \ -- (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) { \ -+ if (__Pyx_IsTracing(tstate, 1, 1)) { \ - __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&$frame_code_cname, &$frame_cname, tstate, funcname, srcfile, firstlineno); \ - if (unlikely(__Pyx_use_tracing < 0)) goto_error; \ - } \ -@@ -80,8 +97,7 @@ - #else - #define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) \ - { PyThreadState* tstate = PyThreadState_GET(); \ -- if (unlikely(tstate->use_tracing) && !tstate->tracing && \ -- (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) { \ -+ if (__Pyx_IsTracing(tstate, 1, 1)) { \ - __Pyx_use_tracing = __Pyx_TraceSetupAndCall(&$frame_code_cname, &$frame_cname, tstate, funcname, srcfile, firstlineno); \ - if (unlikely(__Pyx_use_tracing < 0)) goto_error; \ - } \ -@@ -91,10 +107,9 @@ - #define __Pyx_TraceException() \ - if (likely(!__Pyx_use_tracing)); else { \ - PyThreadState* tstate = __Pyx_PyThreadState_Current; \ -- if (tstate->use_tracing && \ -- (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) { \ -+ if (__Pyx_IsTracing(tstate, 0, 1)) { \ - tstate->tracing++; \ -- tstate->use_tracing = 0; \ -+ __Pyx_SetTracing(tstate, 0); \ - PyObject *exc_info = __Pyx_GetExceptionTuple(tstate); \ - if (exc_info) { \ - if (CYTHON_TRACE && tstate->c_tracefunc) \ -@@ -104,7 +119,7 @@ - tstate->c_profileobj, $frame_cname, PyTrace_EXCEPTION, exc_info); \ - Py_DECREF(exc_info); \ - } \ -- tstate->use_tracing = 1; \ -+ __Pyx_SetTracing(tstate, 1); \ - tstate->tracing--; \ - } \ - } -@@ -113,13 +128,13 @@ - PyObject *type, *value, *traceback; - __Pyx_ErrFetchInState(tstate, &type, &value, &traceback); - tstate->tracing++; -- tstate->use_tracing = 0; -+ __Pyx_SetTracing(tstate, 0); - if (CYTHON_TRACE && tstate->c_tracefunc) - tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result); - if (tstate->c_profilefunc) - tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result); - CYTHON_FRAME_DEL(frame); -- tstate->use_tracing = 1; -+ __Pyx_SetTracing(tstate, 1); - tstate->tracing--; - __Pyx_ErrRestoreInState(tstate, type, value, traceback); - } -@@ -132,14 +147,14 @@ - PyThreadState *tstate; \ - PyGILState_STATE state = PyGILState_Ensure(); \ - tstate = __Pyx_PyThreadState_Current; \ -- if (tstate->use_tracing) { \ -+ if (__Pyx_IsTracing(tstate, 0, 0)) { \ - __Pyx_call_return_trace_func(tstate, $frame_cname, (PyObject*)result); \ - } \ - PyGILState_Release(state); \ - } \ - } else { \ - PyThreadState* tstate = __Pyx_PyThreadState_Current; \ -- if (tstate->use_tracing) { \ -+ if (__Pyx_IsTracing(tstate, 0, 0)) { \ - __Pyx_call_return_trace_func(tstate, $frame_cname, (PyObject*)result); \ - } \ - } \ -@@ -148,7 +163,7 @@ - #define __Pyx_TraceReturn(result, nogil) \ - if (likely(!__Pyx_use_tracing)); else { \ - PyThreadState* tstate = __Pyx_PyThreadState_Current; \ -- if (tstate->use_tracing) { \ -+ if (__Pyx_IsTracing(tstate, 0, 0)) { \ - __Pyx_call_return_trace_func(tstate, $frame_cname, (PyObject*)result); \ - } \ - } -@@ -176,9 +191,11 @@ - __Pyx_ErrFetchInState(tstate, &type, &value, &traceback); - __Pyx_PyFrame_SetLineNumber(frame, lineno); - tstate->tracing++; -- tstate->use_tracing = 0; -+ __Pyx_SetTracing(tstate, 0); -+ - ret = tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_LINE, NULL); -- tstate->use_tracing = 1; -+ -+ __Pyx_SetTracing(tstate, 1); - tstate->tracing--; - if (likely(!ret)) { - __Pyx_ErrRestoreInState(tstate, type, value, traceback); -@@ -199,7 +216,7 @@ - PyThreadState *tstate; \ - PyGILState_STATE state = __Pyx_PyGILState_Ensure(); \ - tstate = __Pyx_PyThreadState_Current; \ -- if (unlikely(tstate->use_tracing && tstate->c_tracefunc && $frame_cname->f_trace)) { \ -+ if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && $frame_cname->f_trace) { \ - ret = __Pyx_call_line_trace_func(tstate, $frame_cname, lineno); \ - } \ - __Pyx_PyGILState_Release(state); \ -@@ -207,7 +224,7 @@ - } \ - } else { \ - PyThreadState* tstate = __Pyx_PyThreadState_Current; \ -- if (unlikely(tstate->use_tracing && tstate->c_tracefunc && $frame_cname->f_trace)) { \ -+ if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && $frame_cname->f_trace) { \ - int ret = __Pyx_call_line_trace_func(tstate, $frame_cname, lineno); \ - if (unlikely(ret)) goto_error; \ - } \ -@@ -217,7 +234,7 @@ - #define __Pyx_TraceLine(lineno, nogil, goto_error) \ - if (likely(!__Pyx_use_tracing)); else { \ - PyThreadState* tstate = __Pyx_PyThreadState_Current; \ -- if (unlikely(tstate->use_tracing && tstate->c_tracefunc && $frame_cname->f_trace)) { \ -+ if (__Pyx_IsTracing(tstate, 0, 0) && tstate->c_tracefunc && $frame_cname->f_trace) { \ - int ret = __Pyx_call_line_trace_func(tstate, $frame_cname, lineno); \ - if (unlikely(ret)) goto_error; \ - } \ -@@ -263,19 +280,21 @@ static int __Pyx_TraceSetupAndCall(PyCodeObject** code, - (*frame)->f_tstate = tstate; - #endif - } -- __Pyx_PyFrame_SetLineNumber(*frame, firstlineno); -+ __Pyx_PyFrame_SetLineNumber(*frame, firstlineno); -+ - retval = 1; - tstate->tracing++; -- tstate->use_tracing = 0; -+ __Pyx_SetTracing(tstate, 0); - __Pyx_ErrFetchInState(tstate, &type, &value, &traceback); -+ - #if CYTHON_TRACE - if (tstate->c_tracefunc) - retval = tstate->c_tracefunc(tstate->c_traceobj, *frame, PyTrace_CALL, NULL) == 0; - if (retval && tstate->c_profilefunc) - #endif - retval = tstate->c_profilefunc(tstate->c_profileobj, *frame, PyTrace_CALL, NULL) == 0; -- tstate->use_tracing = (tstate->c_profilefunc || -- (CYTHON_TRACE && tstate->c_tracefunc)); -+ -+ __Pyx_SetTracing(tstate, (tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))); - tstate->tracing--; - if (retval) { - __Pyx_ErrRestoreInState(tstate, type, value, traceback); diff --git a/dev-python/cython/files/cython-0.29.24-test-failure-warning.patch b/dev-python/cython/files/cython-0.29.24-test-failure-warning.patch deleted file mode 100644 index 64202a93ecad..000000000000 --- a/dev-python/cython/files/cython-0.29.24-test-failure-warning.patch +++ /dev/null @@ -1,20 +0,0 @@ -https://github.com/cython/cython/commit/bf4979e2441ffbc9aaeb88f5c67608578040588f -https://bugs.gentoo.org/739516 - -From: Stefan Behnel <stefan_ml@behnel.de> -Date: Sat, 3 Apr 2021 08:23:44 +0200 -Subject: [PATCH] Make a helper function in a C++ test correctly propagate - exceptions so that it won't have to spit out compiler warnings. - ---- a/tests/run/cpp_stl_conversion.pyx -+++ b/tests/run/cpp_stl_conversion.pyx -@@ -15,7 +15,7 @@ py_set = set - py_xrange = xrange - py_unicode = unicode - --cdef string add_strings(string a, string b): -+cdef string add_strings(string a, string b) except *: - return a + b - - def normalize(bytes b): - diff --git a/dev-python/cython/files/cython-0.29.24-unaligned-format.patch b/dev-python/cython/files/cython-0.29.24-unaligned-format.patch deleted file mode 100644 index 955c32debb49..000000000000 --- a/dev-python/cython/files/cython-0.29.24-unaligned-format.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 2c08fd50d62e4255602ee3c0d41157df7608e773 Mon Sep 17 00:00:00 2001 -From: Stefan Behnel <stefan_ml@behnel.de> -Date: Wed, 1 Sep 2021 00:09:02 +0200 -Subject: [PATCH] Avoid copying unaligned 16-bit values since some platforms - require them to be aligned. Use memcpy() instead to let the C compiler decide - how to do it. - -Closes https://github.com/cython/cython/issues/4343 ---- - Cython/Utility/TypeConversion.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/Cython/Utility/TypeConversion.c b/Cython/Utility/TypeConversion.c -index 751d12b62a..3669bc9ec1 100644 ---- a/Cython/Utility/TypeConversion.c -+++ b/Cython/Utility/TypeConversion.c -@@ -829,14 +829,14 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value, Py_ssize_t wid - digit_pos = abs((int)(remaining % (8*8))); - remaining = ({{TYPE}}) (remaining / (8*8)); - dpos -= 2; -- *(uint16_t*)dpos = ((const uint16_t*)DIGIT_PAIRS_8)[digit_pos]; /* copy 2 digits at a time */ -+ memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2); /* copy 2 digits at a time, unaligned */ - last_one_off = (digit_pos < 8); - break; - case 'd': - digit_pos = abs((int)(remaining % (10*10))); - remaining = ({{TYPE}}) (remaining / (10*10)); - dpos -= 2; -- *(uint16_t*)dpos = ((const uint16_t*)DIGIT_PAIRS_10)[digit_pos]; /* copy 2 digits at a time */ -+ memcpy(dpos, DIGIT_PAIRS_10 + digit_pos * 2, 2); /* copy 2 digits at a time, unaligned */ - last_one_off = (digit_pos < 10); - break; - case 'x': |