Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916709 - net-analyzer/nmap fails with python3.12
Summary: net-analyzer/nmap fails with python3.12
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 921826
  Show dependency tree
 
Reported: 2023-11-02 09:54 UTC by marios4
Modified: 2024-04-23 23:39 UTC (History)
4 users (show)

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


Attachments
diff -Naur between nmap-7.94 to -7.95 (nmap-7.94-7.95.ebuild.patch,1.42 KB, text/plain)
2024-04-23 23:39 UTC, vltg0903
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marios4 2023-11-02 09:54:00 UTC
net-analyzer/nmap should have python3_12 at PYTHON_SINGLE_TARGET
Comment 1 Alfred Wingate 2023-11-08 02:14:17 UTC
In addition ndiff/ndifftest.py uses imp which has been removed in python3.12 breaking tests.
Comment 2 Mike Gilbert gentoo-dev 2024-01-10 19:54:16 UTC
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'
Comment 3 vltg0903 2024-04-23 23:39:06 UTC
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