Hello,

Here is a little issue in the installer (setup.py):

When you use the "--build-base" option with the "install" option (like
./setup.py install --buildbase /my/build/directory), the build-path is
not used to contruct var-path, run-path and log-path defined in
setup.cfg. Therefore, if you build Shinken as a non-root user, you will
have the following error:
error: /var/lib/shinken: Permission denied
because setup.py try to create /var/lib/shinken instead of
/my/build/directory/var/lib/shinken

I've found this error came from the line 234 in setup.py
dirname = os.path.join(self.build_base, dirname)

if dirname begin with a slash, the join() function drop its first
parameter (self.build_base):
>>> os.path.join("/my/buildpath","toto")
'/my/buildpath/toto'
>>> os.path.join("/my/buildpath","/toto")
'/toto'

Here is a workaround :
dirname = os.path.join(self.build_base, os.path.relpath(dirname,'/'))

Regards,
Michaël Coquard


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to