I have been using app-portage/pfl with python3.11 for a while and everything seems to be working. The tests are also passing. Besides PYTHON_COMPAT, pfl ebuild needs to update PYTHON_REQ_USE. Below is the required diff --- /var/db/repos/gentoo/app-portage/pfl/pfl-3.2-r2.ebuild 2022-05-10 23:10:16.000000000 +0200 +++ /var/db/repos/local/app-portage/pfl/pfl-3.2-r2.ebuild 2022-08-02 21:21:51.223196682 +0200 @@ -4,8 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10} ) -PYTHON_REQ_USE="xml" +PYTHON_COMPAT=( python3_{8,9,10,11} ) +PYTHON_REQ_USE="xml(+)" inherit distutils-r1 systemd
Fixed in Git. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5789759be59ccd7cf67789584417b8140d6ab34b