From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/safeeyes/files/, x11-misc/safeeyes/
Date: Sun, 3 Dec 2023 15:58:18 +0000 (UTC) [thread overview]
Message-ID: <1701619050.0af193126b0874fc5e7f76addb8fb81b7bfcd0e7.sping@gentoo> (raw)
commit: 0af193126b0874fc5e7f76addb8fb81b7bfcd0e7
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 3 15:42:01 2023 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sun Dec 3 15:57:30 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0af19312
x11-misc/safeeyes: Fix support for Python 3.12
Closes: https://bugs.gentoo.org/919099
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
x11-misc/safeeyes/files/safeeyes-2.1.6-py312.patch | 34 ++++++++++++++++++++++
x11-misc/safeeyes/safeeyes-2.1.6-r1.ebuild | 2 +-
...es-2.1.6-r1.ebuild => safeeyes-2.1.6-r2.ebuild} | 4 +++
3 files changed, 39 insertions(+), 1 deletion(-)
diff --git a/x11-misc/safeeyes/files/safeeyes-2.1.6-py312.patch b/x11-misc/safeeyes/files/safeeyes-2.1.6-py312.patch
new file mode 100644
index 000000000000..93430da89b88
--- /dev/null
+++ b/x11-misc/safeeyes/files/safeeyes-2.1.6-py312.patch
@@ -0,0 +1,34 @@
+From 043d9c5018431b3b41cc2bcfacdaaa7f0db1563c Mon Sep 17 00:00:00 2001
+From: Alyssa Rosenzweig <alyssa@rosenzweig.io>
+Date: Thu, 9 Nov 2023 12:14:13 -0400
+Subject: [PATCH] Fix with python3.12
+
+imp is deprecated in 3.4 and removed in 3.12. this caused safe eyes to
+break on upgrading to fedora 39
+
+Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
+---
+ safeeyes/utility.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/safeeyes/utility.py b/safeeyes/utility.py
+index e145d4d..3976140 100644
+--- a/safeeyes/utility.py
++++ b/safeeyes/utility.py
+@@ -21,7 +21,6 @@
+ """
+
+ import errno
+-import imp
+ import inspect
+ import importlib
+ import json
+@@ -355,7 +354,7 @@ def module_exist(module):
+ Check wther the given Python module exists or not.
+ """
+ try:
+- imp.find_module(module)
++ importlib.util.find_spec(module)
+ return True
+ except ImportError:
+ return False
diff --git a/x11-misc/safeeyes/safeeyes-2.1.6-r1.ebuild b/x11-misc/safeeyes/safeeyes-2.1.6-r1.ebuild
index 02c1bee35ae8..c6d102ef6476 100644
--- a/x11-misc/safeeyes/safeeyes-2.1.6-r1.ebuild
+++ b/x11-misc/safeeyes/safeeyes-2.1.6-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{9..12} )
+PYTHON_COMPAT=( python3_{9..11} )
PYTHON_REQ_USE="tk" # for site-packages/Xlib/ext/randr.py
DISTUTILS_USE_PEP517=setuptools
diff --git a/x11-misc/safeeyes/safeeyes-2.1.6-r1.ebuild b/x11-misc/safeeyes/safeeyes-2.1.6-r2.ebuild
similarity index 95%
copy from x11-misc/safeeyes/safeeyes-2.1.6-r1.ebuild
copy to x11-misc/safeeyes/safeeyes-2.1.6-r2.ebuild
index 02c1bee35ae8..307103b60daf 100644
--- a/x11-misc/safeeyes/safeeyes-2.1.6-r1.ebuild
+++ b/x11-misc/safeeyes/safeeyes-2.1.6-r2.ebuild
@@ -16,6 +16,10 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~riscv ~x86"
+PATCHES=(
+ "${FILESDIR}"/${P}-py312.patch
+)
+
RDEPEND="
dev-libs/libayatana-appindicator
dev-python/Babel[${PYTHON_USEDEP}]
next reply other threads:[~2023-12-03 15:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-03 15:58 Sebastian Pipping [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-05 22:08 [gentoo-commits] repo/gentoo:master commit in: x11-misc/safeeyes/files/, x11-misc/safeeyes/ Sebastian Pipping
2023-01-24 17:54 Sebastian Pipping
2018-01-03 19:17 Sebastian Pipping
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=1701619050.0af193126b0874fc5e7f76addb8fb81b7bfcd0e7.sping@gentoo \
--to=sping@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