Summary: | net-analyzer/nmap fails with python3.12 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | marios4 |
Component: | Current packages | Assignee: | Sam James <sam> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dilfridge, jstein, parona, vltg0903 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://github.com/nmap/nmap/issues/2649 https://bugs.gentoo.org/show_bug.cgi?id=933471 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 921826 | ||
Attachments: | diff -Naur between nmap-7.94 to -7.95 |
Description
marios4
2023-11-02 09:54:00 UTC
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. |