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: RESOLVED FIXED
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-30 04:42 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
Comment 4 Larry the Git Cow gentoo-dev 2024-04-30 04:38:31 UTC
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(-)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-30 04:42:52 UTC
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.