summaryrefslogtreecommitdiff
path: root/dev-python/greenlet
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-28 02:49:59 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-28 02:49:59 +0000
commite53aa6b4fbe5a0c6db75d893829f7a6a37a14180 (patch)
treedd095d36490410a724fd271fcdf08c31a5336edd /dev-python/greenlet
parentc5ee568457ac776b65b71fa444e0dd47535bc44a (diff)
gentoo auto-resync : 28:01:2023 - 02:49:59
Diffstat (limited to 'dev-python/greenlet')
-rw-r--r--dev-python/greenlet/Manifest4
-rw-r--r--dev-python/greenlet/files/greenlet-2.0.1-gcc-13.patch47
-rw-r--r--dev-python/greenlet/greenlet-2.0.1-r1.ebuild33
-rw-r--r--dev-python/greenlet/metadata.xml1
4 files changed, 84 insertions, 1 deletions
diff --git a/dev-python/greenlet/Manifest b/dev-python/greenlet/Manifest
index 4efb9f1113d3..0f90cb2ad752 100644
--- a/dev-python/greenlet/Manifest
+++ b/dev-python/greenlet/Manifest
@@ -1,5 +1,7 @@
+AUX greenlet-2.0.1-gcc-13.patch 1458 BLAKE2B c99ef6da5a9d9a09ee02eb96eb04599db95c3fef22ad28c3d9066ceb54ef975c8dbfcbca48ade74be9601ca7111d8802d22543d986ac94ec2e7e6e8baafafeae SHA512 3cf43f496e24de66cbb788be6a529cd254cbc0721bd7e1a1b4b3e75d6bcef61b654e4d6f65c11f7e41590fa3b57477964eb263ca7bfa6849f01a936af3da1f37
DIST greenlet-1.1.3.tar.gz 91624 BLAKE2B 88ba03f7a5acc7de2ab757a04667de9774ec8979b0f3d45131f8174a4ea9a608e359e4d8ce2f7e57c58ce4844e58a082d35d983fd583fc6f53ffa38363fb7863 SHA512 9ece4a4e758de963c96c7cbd33aec33fa11ddd3d46b8dc4194e14d534f8f68787df551cb1e3be57fc8a65fbd8d5daf8fee59567927f6f272535dd7c720baa4f4
DIST greenlet-2.0.1.tar.gz 163824 BLAKE2B 4b06e3b95399f38dc529b06656dfee0347eb72cbce4ab62d4655d017457bf9df234d2767c1296705ba23b0d9f6476654327766efd329e48459c311600f33248a SHA512 3f4ccc761f64c7f10946d2fa965ef847e814ca1b6f57dc0df262cb6eed24148b44c6629770bf038656a9e3706e45553080844dfc841643604bd4776ca7ca03a2
EBUILD greenlet-1.1.3.ebuild 747 BLAKE2B 7b9b6ac190e1b8d9395d5ea3046c9faa42d0e4ac70ca6f484806d7c3a0c08a4c2cb4695bc5e6861c16108bdb6c1a56573dd3e2ae8c14048b0cd30c60f99c2c86 SHA512 8a5d22cde3504cabfd318cd7b65232e516e84076fb33cbc7e4e40915e768982a8d588f3770534b64ed0e12c311a6c0940600f0fbb04c5d0b87c382de6261fc9c
+EBUILD greenlet-2.0.1-r1.ebuild 800 BLAKE2B 880b2bf1220e428a0f4bfe7c2e1f7662c8da1ba5a02226aa88ba3c79f96a84dbd95291d841bf45c2291578d163cfe39466856581e5718bf24c91cedc3f847ebc SHA512 efa880f7a3663e30986d60efec273850756223bf3ebe63c3a24ba1a622fdf3216f423fa0f4823dbe3c91f35cfdd95928e3a5dd95c47ecee308473480c2515c48
EBUILD greenlet-2.0.1.ebuild 752 BLAKE2B 44b12f599b30a7a9192d9902f9a9bb600987e07cc3594828a0699d3480c5757db69f9e2aac4cc9aeb4563c8470bd36d76a21991c768a9b9b244fdb220df44e46 SHA512 abf080585de3cd9ff73935a2ca2ed759ca8af7bf32c86ac7fec8382541dd2e7b14ecc2fa551cc689214c3df75494fcdfa9b70aac093c1c9f3260d8cf1456619b
-MISC metadata.xml 322 BLAKE2B 57f3f966edd48a761d9ff80514dcd8e2439eb83fd79c1df2dd6610b9c03366a70be02134b6fa3e2d06ceeaafc1e5ed594efbcbcaea015043ff7bfdf54bd52e53 SHA512 2e119f8948096d416c6aa1db1203a37820a353dfe704f596243f805b5a6892498bb82a59b1fe59a51a1086d1b24c79a90de265bd06170e3b1bbd836bdee1915d
+MISC metadata.xml 388 BLAKE2B db0aba92c5c405fa5736f97c2db14319514e95296ad11aa9aac26e95bdb630961e2ae430cbfcdf2b72425c805b83556f3dda6983dde075be3cb0a3f7d0a45e8f SHA512 3b9003e181f15b46ddd5af3e4a6012f115ca42be0bf2f4e40c0fbb196231de8a5b1320d402de6d4105f61d7e4fd5d868131404796cea19a7547a53ee17c26ce1
diff --git a/dev-python/greenlet/files/greenlet-2.0.1-gcc-13.patch b/dev-python/greenlet/files/greenlet-2.0.1-gcc-13.patch
new file mode 100644
index 000000000000..4afbca8f1479
--- /dev/null
+++ b/dev-python/greenlet/files/greenlet-2.0.1-gcc-13.patch
@@ -0,0 +1,47 @@
+https://github.com/python-greenlet/greenlet/commit/3be53248cd1f8e4859563b84b04054de7a9fcad2
+https://github.com/python-greenlet/greenlet/commit/86c4e2a98f1bd27eff38edd5dba8c10300bc8e64
+
+From 3be53248cd1f8e4859563b84b04054de7a9fcad2 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 16 Jan 2023 21:37:26 -0800
+Subject: [PATCH] greenlet: Drop using 'register' storage class keyword
+
+This has been dropped in c++17 and newer
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/src/greenlet/platform/switch_riscv_unix.h
++++ b/src/greenlet/platform/switch_riscv_unix.h
+@@ -11,8 +11,8 @@
+ static int
+ slp_switch(void)
+ {
+- register int ret;
+- register long *stackref, stsizediff;
++ int ret;
++ long *stackref, stsizediff;
+ __asm__ volatile ("" : : : REGS_TO_SAVE);
+ __asm__ volatile ("mv %0, sp" : "=r" (stackref) : );
+ {
+
+From 86c4e2a98f1bd27eff38edd5dba8c10300bc8e64 Mon Sep 17 00:00:00 2001
+From: Jason Madden <jamadden@gmail.com>
+Date: Thu, 26 Jan 2023 12:58:46 -0600
+Subject: [PATCH] Add the rebind member to the allocator.
+
+Based on, and fixes #335
+--- a/src/greenlet/greenlet_allocator.hpp
++++ b/src/greenlet/greenlet_allocator.hpp
+@@ -51,6 +51,11 @@ namespace greenlet
+ else
+ PyMem_Free(p);
+ }
++ // This member is deprecated in C++17 and removed in C++20
++ template< class U >
++ struct rebind {
++ typedef PythonAllocator<U> other;
++ };
+
+ };
+ }
+
+
diff --git a/dev-python/greenlet/greenlet-2.0.1-r1.ebuild b/dev-python/greenlet/greenlet-2.0.1-r1.ebuild
new file mode 100644
index 000000000000..2b8702123d9d
--- /dev/null
+++ b/dev-python/greenlet/greenlet-2.0.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+# Note: greenlet is built-in in pypy
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Lightweight in-process concurrent programming"
+HOMEPAGE="
+ https://greenlet.readthedocs.io/en/latest/
+ https://github.com/python-greenlet/greenlet/
+ https://pypi.org/project/greenlet/
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 -hppa -ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc-13.patch
+)
+
+distutils_enable_sphinx docs
+distutils_enable_tests unittest
+
+python_test() {
+ eunittest greenlet.tests
+}
diff --git a/dev-python/greenlet/metadata.xml b/dev-python/greenlet/metadata.xml
index 48a9cde06bf9..c3a8eb410e30 100644
--- a/dev-python/greenlet/metadata.xml
+++ b/dev-python/greenlet/metadata.xml
@@ -7,5 +7,6 @@
</maintainer>
<upstream>
<remote-id type="pypi">greenlet</remote-id>
+ <remote-id type="github">python-greenlet/greenlet</remote-id>
</upstream>
</pkgmetadata>