This package does not support Python 3.12. Please test it with Python 3.12 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg99104.html. Please check the information provided in the tracker. Ask in #gentoo-python on IRC if need any help.
Python is required only for the following pygments_parser.py. When I run it with python3.12, following warnings printed. $ ./usr/share/gtags/script/pygments_parser.py /dev/shm/portage/dev-util/global-6.6.12/image/./usr/share/gtags/script/pygments_parser.py:92: SyntaxWarning: invalid escape sequence '\s' tag = re.sub('\s+', '', tag) # remove newline and spaces /dev/shm/portage/dev-util/global-6.6.12/image/./usr/share/gtags/script/pygments_parser.py:161: SyntaxWarning: invalid escape sequence '\s' match = re.search(r'(\S+)\s+(\d+)\s+' + re.escape(path) + '\s+(.*)$', line) Usage: pygments_parser.py [options] pygments_parser.py: error: --langmap option not given Upstream already fixed the issue with recent commits. I'm going to pick these patches and add python3.12 support.