From 633975107b4a543c40454e3bdb7a44c498cb566b Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Fri, 23 Aug 2024 15:26:39 +0800 Subject: digest.py: bump to Python 3.11. portage has a C implementation of Whirlpool as the hash algorithm is largely unavailable after OpenSSL 3 is released. Signed-off-by: Benda Xu --- roverlay-9999.ebuild | 2 +- roverlay/digest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roverlay-9999.ebuild b/roverlay-9999.ebuild index a2d2888..3e40ee6 100644 --- a/roverlay-9999.ebuild +++ b/roverlay-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_8 ) +PYTHON_COMPAT=( python3_11 ) PYTHON_REQ_USE="ssl,threads(+),readline(+)" EGIT_REPO_URI='git://anongit.gentoo.org/proj/R_overlay.git' diff --git a/roverlay/digest.py b/roverlay/digest.py index 99e094b..ffe2336 100644 --- a/roverlay/digest.py +++ b/roverlay/digest.py @@ -68,7 +68,7 @@ if hashlib_supports ( 'whirlpool' ): _HASH_CREATE_MAP ['whirlpool'] = hashlib_wrap ( "whirlpool" ) else: import portage.util.whirlpool - _HASH_CREATE_MAP ['whirlpool'] = portage.util.whirlpool.new + _HASH_CREATE_MAP ['whirlpool'] = portage.util.whirlpool.CWhirlpool # -- end of imports / HASH_CREATE_MAP -- cgit v1.2.3-65-gdbad