From cad0e7e966c9c975a34011c1a8ec3ca84136e1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 30 Jul 2023 20:33:37 +0200 Subject: [PATCH 1/4] dev-python/flake8: Enable py3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/flake8/flake8-6.1.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/flake8/flake8-6.1.0.ebuild b/dev-python/flake8/flake8-6.1.0.ebuild index 2a55f96bbc9d8..bba7b6815ba87 100644 --- a/dev-python/flake8/flake8-6.1.0.ebuild +++ b/dev-python/flake8/flake8-6.1.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{10..11} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) inherit distutils-r1 From 4f3f4e17ad074f15360e257fb191b48c2dc6ca4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 30 Jul 2023 20:33:42 +0200 Subject: [PATCH 2/4] dev-python/mccabe: Enable py3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/mccabe/mccabe-0.7.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/mccabe/mccabe-0.7.0.ebuild b/dev-python/mccabe/mccabe-0.7.0.ebuild index e494bad6bcb83..f226517744e69 100644 --- a/dev-python/mccabe/mccabe-0.7.0.ebuild +++ b/dev-python/mccabe/mccabe-0.7.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( pypy3 python3_{9..11} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 pypi From af86694a988bf16a794191383b4b624d99d4a39f Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 30 Jul 2023 19:36:07 +0100 Subject: [PATCH 3/4] toolchain-funcs.eclass: shift comment It makes a bit more sense (although still a bit suspicious, wonder if should strip . as well, see c26413ae8029f1557aae95b6f8744fc16671fa3b and bug #911503 where we had 'ld.lld.bd') now with the comment in the right place. It was added originally for bug #545218 (b959fb6c158d4727e85472b3a50af5af3f719972). Bug: https://bugs.gentoo.org/545218 Bug: https://bugs.gentoo.org/911503 Signed-off-by: Sam James --- eclass/toolchain-funcs.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 26b7a0772ca6b..0eca4dde9f36d 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -534,9 +534,9 @@ tc-ld-force-bfd() { ewarn "Forcing usage of the BFD linker" # Set up LD to point directly to bfd if it's available. + local ld=$(tc-getLD "$@") # We need to extract the first word in case there are flags appended # to its value (like multilib), bug #545218. - local ld=$(tc-getLD "$@") local bfd_ld="${ld%% *}.bfd" local path_ld=$(type -P "${bfd_ld}" 2>/dev/null) [[ -e ${path_ld} ]] && export LD=${bfd_ld} From d719ea13be2cd289a371806b226aff218c30f07f Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 30 Jul 2023 19:40:12 +0100 Subject: [PATCH 4/4] toolchain-funcs.eclass: cleanup obsolete bits in tc-ld-force-bfd I didn't want to drop this entirely in c26413ae8029f1557aae95b6f8744fc16671fa3b as I wanted to keep it to just fixing the error I'd made, but I don't see the point in keeping this now anyway - non-gcc/clang isn't a thing and if it is I'd hope they'd support -fuse-ld=bfd anyway. Plus it's an obvious approach if we need it for something else like forcing an alt linker that isn't bfd anyway, no need for having cruft remaining. Signed-off-by: Sam James --- eclass/toolchain-funcs.eclass | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 0eca4dde9f36d..e28f6148ddc10 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -545,25 +545,6 @@ tc-ld-force-bfd() { if tc-is-gcc || tc-is-clang ; then export LDFLAGS="${LDFLAGS} -fuse-ld=bfd" fi - - if false ; then - # TODO: Clean this up, or is it useful for when the compiler can't - # be detected or for rubbish shims? Might be helpful for cases like - # when porting to new linker which GCC doesn't yet recognise (less - # of a problem for Clang as it accepts absolute paths), like was - # the case for mold. - # - # <=gcc-4.7 and <=clang-3.4 require some coercion. - # Only works if bfd exists. - if [[ -e ${path_ld} ]] ; then - local d="${T}/bfd-linker" - mkdir -p "${d}" - ln -sf "${path_ld}" "${d}"/ld - export LDFLAGS="${LDFLAGS} -B${d}" - else - die "unable to locate a BFD linker" - fi - fi } # @FUNCTION: _tc-has-openmp