Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 929542 - dev-util/global: needs upgrade to Python 3.12 (PythonCompatUpdate)
Summary: dev-util/global: needs upgrade to Python 3.12 (PythonCompatUpdate)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 921826
  Show dependency tree
 
Reported: 2024-04-13 08:44 UTC by Michał Górny
Modified: 2024-06-26 13:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-13 08:44:10 UTC
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.
Comment 1 Naohiro Aota gentoo-dev 2024-06-26 13:43:58 UTC
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.