The package needs porting to Python 3.13.
Simple PYTHON_COMPAT change seems to work (ebuild compiles/installs and able to build kernel with resulting genkernel)
I can confirm that. Successfully built an initramfs using Python 3.13 after simple PYTHON_COMPAT change in the ebuild.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6156854197e2956cb23f86bb53e08e9324951a4a commit 6156854197e2956cb23f86bb53e08e9324951a4a Author: Norbert Norbiros <norbiros@protonmail.com> AuthorDate: 2025-04-12 14:27:54 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-04-29 19:39:53 +0000 sys-kernel/genkernel: enable py3.13 Closes: https://bugs.gentoo.org/952740 Signed-off-by: Norbert Norbiros <norbiros@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41549 Closes: https://github.com/gentoo/gentoo/pull/41549 Signed-off-by: Sam James <sam@gentoo.org> sys-kernel/genkernel/genkernel-4.3.16-r2.ebuild | 2 +- sys-kernel/genkernel/genkernel-4.3.16-r3.ebuild | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)