Nmap Development mailing list archives

Re: Zenmap path problem


From: David Fifield <david () bamsoftware com>
Date: Wed, 20 Jan 2010 10:06:46 -0700

On Tue, Jan 19, 2010 at 11:20:54PM -0700, David Fifield wrote:
On Mon, Jan 18, 2010 at 04:37:39PM -0600, Chris Clements wrote:
I have ndiff and some radialnet files in these directories, but no  
reference to zenmap:

/usr/local/local/bin/ndiff
/usr/local/local/lib/python2.6/dist-packages/radialnet/

It appears the files are going in the right place (/usr/local/share/ 
zenmap).  If I manually delete them, then re-run the install, they are  
recreated in that location.  The problem seems to be isolated to the  
incorrect lines being entered (or not entered as the case might be) into 
the definitions in the file "/usr/local/lib/python2.6/dist- 
packages/zenmapCore/Paths.py".

I can reproduce this now with Ubuntu 9.10. Straight off the install CD
it had python2.6_2.6.4-rc2-0ubuntu1, which had the /usr/local/local
problem. After upgrading python 2.6 to python2.6_2.6.4-0ubuntu3, it
installs in /usr/local but Paths.py has things under /usr.

I'll let you know if I find out more.

Here's the revision I think is responsible:

http://bazaar.launchpad.net/%7Eubuntu-branches/ubuntu/karmic/python2.6/karmic-proposed/revision/38/debian/patches/distutils-install-layout.dpatch

I filed an Ubuntu bug:

https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/510211

For now, a workaround is to manually add in the "local" to these lines
in /usr/local/lib/python2.6/dist-packages/zenmapCore/Paths.py:

# These lines are overwritten by the installer to hard-code the installed
# locations.
CONFIG_DIR = '/usr/share/zenmap/config'
LOCALE_DIR = '/usr/share/zenmap/locale'
MISC_DIR = '/usr/share/zenmap/misc'
PIXMAPS_DIR = '/usr/share/zenmap/pixmaps'
DOCS_DIR = '/usr/share/zenmap/docs'

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: