[Debian-ha-maintainers] Bug#816270: Files in /usr/share/fence aren't compiled by Python

Adrian Vondendriesch adrian.vondendriesch at credativ.de
Mon Mar 14 18:39:25 UTC 2016


tags 816270 + pending
thanks

On Mon, Feb 29, 2016 at 06:26:09PM +0800, Thomas Goirand wrote:
> Hi,
> 
> The files in /usr/share/fence aren't compiled by Python at install time.
> In fact, fence-agents doesn't even have a postinst to do so. Plus the files
> in /usr/share/fence really are python modules, which should be exposed, so
> that other packages could use it without having to fix the syspath. Indeed,
> each and every /usr/sbin/fence_* programs have the following bits:
> 
> sys.path.append("/usr/share/fence")
> 
> I'm about to package fuel-library which also will import such module.
> 
> So I would suggest either:
> 1/ Move /usr/share/fence to /usr/lib/python2.7/dist-packages/fence
> 2/ Make sure dh_python2 is called correctly. If you don't want to move stuff
> into /usr/lib/python2.7/dist-packages, then you should do, in debian/rules:
> override_dh_python2:
> 	dh_python2
> 	dh_python2 /usr/share/fence

Thanks for reporting the bug.

I applied fix no. 2 to our git repository. Thanks for the hint. Version 4.0.22-3
of fence-agents will contain the dh_python2 calls. The package will be uploaded
soon.

Because fencing.py and friends are not intended to be used outside of
fence-agents we stay with /usr/share/fence.

Cheers,
 - Adrian



More information about the Debian-ha-maintainers mailing list