xkeyboard-config-2.42/rules/generate-options-symbols.py tries to from enum import StrEnum, unique StrEnum was added in python 3.11 Reproducible: Always Steps to Reproduce: 1.emerge xkeyboard-config Actual Results: [1/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mlvs --number=0 rules/0010-mlv_s.part ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [2/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mlvs --number=1 rules/0016-ml1v1_s.part ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [3/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mls --number=0 rules/0012-ml_s.part ../xkeyboard-config-2.42/rules/compat/layoutsMapping.lst ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [4/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mls --number=1 rules/0014-ml1_s.part ../xkeyboard-config-2.42/rules/compat/layoutsMapping.lst ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [5/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mls --number=2 rules/0017-ml2_s.part ../xkeyboard-config-2.42/rules/compat/layoutsMapping.lst ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [6/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mlvs --number=2 rules/0023-ml2v2_s.part ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [7/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mlvs --number=3 rules/0024-ml3v3_s.part ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [8/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mls --number=3 rules/0019-ml3_s.part ../xkeyboard-config-2.42/rules/compat/layoutsMapping.lst ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [9/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mls --number=4 rules/0021-ml4_s.part ../xkeyboard-config-2.42/rules/compat/layoutsMapping.lst ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [10/63] /usr/bin/msgfmt -o po/af/LC_MESSAGES/xkeyboard-config.mo ../xkeyboard-config-2.42/po/af.po [11/63] /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/compat/map-variants.py --want=mlvs --number=4 rules/0025-ml4v4_s.part ../xkeyboard-config-2.42/rules/compat/variantsMapping.lst [12/63] /usr/bin/msgfmt -o po/ar/LC_MESSAGES/xkeyboard-config.mo ../xkeyboard-config-2.42/po/ar.po [13/63] /usr/bin/msgfmt -o po/az/LC_MESSAGES/xkeyboard-config.mo ../xkeyboard-config-2.42/po/az.po [14/63] /usr/lib/python-exec/python3.10/meson --internal exe --capture rules/0044-option_types.part -- /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py --rules-section=types --xkb-config-root /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42 ../xkeyboard-config-2.42/rules/base.xml ../xkeyboard-config-2.42/rules/base.extras.xml FAILED: rules/0044-option_types.part /usr/lib/python-exec/python3.10/meson --internal exe --capture rules/0044-option_types.part -- /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py --rules-section=types --xkb-config-root /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42 ../xkeyboard-config-2.42/rules/base.xml ../xkeyboard-config-2.42/rules/base.extras.xml --- stderr --- Traceback (most recent call last): File "/var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py", line 10, in <module> from enum import StrEnum, unique ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py) [15/63] /usr/lib/python-exec/python3.10/meson --internal exe --capture rules/0042-option_symbols.part -- /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py --rules-section=symbols --xkb-config-root /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42 ../xkeyboard-config-2.42/rules/base.xml ../xkeyboard-config-2.42/rules/base.extras.xml FAILED: rules/0042-option_symbols.part /usr/lib/python-exec/python3.10/meson --internal exe --capture rules/0042-option_symbols.part -- /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py --rules-section=symbols --xkb-config-root /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42 ../xkeyboard-config-2.42/rules/base.xml ../xkeyboard-config-2.42/rules/base.extras.xml --- stderr --- Traceback (most recent call last): File "/var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py", line 10, in <module> from enum import StrEnum, unique ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py) [16/63] /usr/lib/python-exec/python3.10/meson --internal exe --capture rules/0043-option_compat.part -- /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py --rules-section=compatibility --xkb-config-root /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42 ../xkeyboard-config-2.42/rules/base.xml ../xkeyboard-config-2.42/rules/base.extras.xml FAILED: rules/0043-option_compat.part /usr/lib/python-exec/python3.10/meson --internal exe --capture rules/0043-option_compat.part -- /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py --rules-section=compatibility --xkb-config-root /var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42 ../xkeyboard-config-2.42/rules/base.xml ../xkeyboard-config-2.42/rules/base.extras.xml --- stderr --- Traceback (most recent call last): File "/var/tmp/portage/x11-misc/xkeyboard-config-2.42/work/xkeyboard-config-2.42/rules/generate-options-symbols.py", line 10, in <module> from enum import StrEnum, unique ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py) Expected Results: Successful compile
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea8ea67d109af6f9e7bc5b7af374ddecd9ac5fff commit ea8ea67d109af6f9e7bc5b7af374ddecd9ac5fff Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2024-06-10 18:05:54 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2024-06-10 18:06:03 +0000 x11-misc/xkeyboard-config: Remove Python 3.10 compatibility Closes: https://bugs.gentoo.org/933984 Signed-off-by: Matt Turner <mattst88@gentoo.org> x11-misc/xkeyboard-config/xkeyboard-config-2.42.ebuild | 2 +- x11-misc/xkeyboard-config/xkeyboard-config-9999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61309a4ab7a675175279172ab0ad4ee2b62881d9 commit 61309a4ab7a675175279172ab0ad4ee2b62881d9 Author: Maide <github@maide.ca> AuthorDate: 2024-08-10 22:00:51 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2024-08-12 15:31:11 +0000 x11-misc/xkeyboard-config: Enforce >= python3_11 dependency Python is now always listed as a dependency, as `xkeyboard-config` uses python during the build process whether or not the `test` USE flag is set. Always call `python-any-r1_pkg_setup` during package setup so that the `PYTHON_COMPAT` value is used/enforced. This fixes a build error if the system's default python is an incompatible version. Updated trivial homepage url change pkgcheck complained about. Closes: https://bugs.gentoo.org/936137 Closes: https://bugs.gentoo.org/933984 Signed-off-by: Maide <github@maide.ca> Closes: https://github.com/gentoo/gentoo/pull/38089 Signed-off-by: Matt Turner <mattst88@gentoo.org> x11-misc/xkeyboard-config/xkeyboard-config-2.42.ebuild | 6 +++--- x11-misc/xkeyboard-config/xkeyboard-config-9999.ebuild | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)