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

Thomas Goirand zigo at debian.org
Mon Feb 29 10:26:09 UTC 2016


Package: fence-agents
Version: 4.0.22-2
Severity: important

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

(yes, there's really 2 dh_python calls, that's the way it should be...)

Cheers,

Thomas Goirand (zigo)



More information about the Debian-ha-maintainers mailing list