net-analyzer/nmap should have python3_12 at PYTHON_SINGLE_TARGET
In addition ndiff/ndifftest.py uses imp which has been removed in python3.12 breaking tests.
Some build log snippets: > cd zenmap && /usr/bin/python3.12 setup.py build > /x/portage/net-analyzer/nmap-7.94/work/nmap-7.94/zenmap/setup.py:314: SyntaxWarning: invalid escape sequence '\.' > re_bin = re.compile("(bin|\.sh)") > /x/portage/net-analyzer/nmap-7.94/work/nmap-7.94/zenmap/setup.py:357: SyntaxWarning: invalid escape sequence '\s' > pcontent = re.sub("%s\s+=\s+.+" % path, > Traceback (most recent call last): > File "/x/portage/net-analyzer/nmap-7.94/work/nmap-7.94/ndiff/ndifftest.py", line 15, in <module> > import imp > ModuleNotFoundError: No module named 'imp'
Created attachment 891590 [details] diff -Naur between nmap-7.94 to -7.95 nmap-7.95 is out and builds fine against python-3.12
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e96b131c7c5036490685986a33d4711e601e3385 commit e96b131c7c5036490685986a33d4711e601e3385 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-04-27 04:36:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-04-30 04:38:06 +0000 net-analyzer/nmap: add 7.95 Closes: https://bugs.gentoo.org/916709 Closes: https://bugs.gentoo.org/927775 Signed-off-by: Sam James <sam@gentoo.org> net-analyzer/nmap/Manifest | 4 +- net-analyzer/nmap/nmap-7.95.ebuild | 206 +++++++++++++++++++++++++++++++++++++ net-analyzer/nmap/nmap-9999.ebuild | 37 +++++-- 3 files changed, 237 insertions(+), 10 deletions(-)
ndifftest.py still seems to use imp in 7.95, but then again, the failures seem to get ignored, and I already had to patch other test issues now, so I'm not going to lose sleep over it for now.