public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/llfuse/, dev-python/llfuse/files/
Date: Fri, 28 Jul 2023 09:32:14 +0000 (UTC)	[thread overview]
Message-ID: <1690536680.a2c830098c53be97bf1907b2f603e5a21dadefac.sam@gentoo> (raw)

commit:     a2c830098c53be97bf1907b2f603e5a21dadefac
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 28 09:17:24 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 28 09:31:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2c83009

dev-python/llfuse: depend on <cython-3

Bug: https://bugs.gentoo.org/911373
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/llfuse/files/llfuse-1.4.4-cython3.patch | 42 ++++++++++++++++++++++
 dev-python/llfuse/llfuse-1.4.4.ebuild              |  4 ++-
 2 files changed, 45 insertions(+), 1 deletion(-)

diff --git a/dev-python/llfuse/files/llfuse-1.4.4-cython3.patch b/dev-python/llfuse/files/llfuse-1.4.4-cython3.patch
new file mode 100644
index 000000000000..38fea36a5fac
--- /dev/null
+++ b/dev-python/llfuse/files/llfuse-1.4.4-cython3.patch
@@ -0,0 +1,42 @@
+https://github.com/python-llfuse/python-llfuse/commit/8c0160545ce01b3624c8ecad669f06fb6d22d2f6
+
+From 8c0160545ce01b3624c8ecad669f06fb6d22d2f6 Mon Sep 17 00:00:00 2001
+From: Thomas Waldmann <tw@waldmann-edv.de>
+Date: Sun, 21 May 2023 01:31:38 +0200
+Subject: [PATCH] remove Cython version check, fixes #81
+
+distutils Version classes are deprecated.
+
+I decided to remove the Cython version check completely,
+it is not as simple as checking a minimum version anyway.
+
+E.g. we can work with Cython 0.29.x and also 3.0.0b2,
+but earlier 3.0.0 releases are of unknown compatibility.
+
+Also, latest Python 3.12-dev versions require 0.29.34,
+while older Pythons are happy with stuff compiled by earlier
+0.29.x releases.
+--- a/setup.py
++++ b/setup.py
+@@ -34,7 +34,6 @@
+ 
+ import setuptools
+ from setuptools import Extension
+-from distutils.version import LooseVersion
+ 
+ basedir = os.path.abspath(os.path.dirname(__file__))
+ sys.path.insert(0, os.path.join(basedir, 'util'))
+@@ -218,11 +217,7 @@ def run(self):
+                                               stderr=subprocess.STDOUT)
+         except OSError:
+             raise SystemExit('Cython needs to be installed for this command')
+-
+-        hit = re.match('^Cython version (.+)$', version)
+-        if not hit or LooseVersion(hit.group(1)) < "0.29":
+-            # in fact, we need a very recent Cython version to support the latest pythons
+-            raise SystemExit('Need Cython 0.29 or newer, found ' + version)
++        print(f"Using {version.strip()}.")
+ 
+         cmd = ['cython', '-Wextra', '--force', '-3', '--fast-fail',
+                '--directive', 'embedsignature=True', '--include-dir',
+

diff --git a/dev-python/llfuse/llfuse-1.4.4.ebuild b/dev-python/llfuse/llfuse-1.4.4.ebuild
index 6bcd11762ba5..f6edb91dd6d3 100644
--- a/dev-python/llfuse/llfuse-1.4.4.ebuild
+++ b/dev-python/llfuse/llfuse-1.4.4.ebuild
@@ -27,13 +27,15 @@ DEPEND="
 	${RDEPEND}
 	sys-apps/attr
 "
+# <cython-3: bug #911373
 BDEPEND="
-	dev-python/cython[${PYTHON_USEDEP}]
+	<dev-python/cython-3[${PYTHON_USEDEP}]
 	virtual/pkgconfig
 "
 
 PATCHES=(
 	"${FILESDIR}"/llfuse-1.3.5-cflags.patch
+	"${FILESDIR}"/llfuse-1.4.4-cython3.patch
 )
 
 distutils_enable_sphinx rst


             reply	other threads:[~2023-07-28  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-28  9:32 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-07 15:03 [gentoo-commits] repo/gentoo:master commit in: dev-python/llfuse/, dev-python/llfuse/files/ Michał Górny
2018-12-13  6:48 Tim Harder
2017-09-21  6:02 Tim Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1690536680.a2c830098c53be97bf1907b2f603e5a21dadefac.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox