Package: python-libhamlib2
Version: 1.2.6.2-4
Severity: serious
Justification: Python policy, FHS

Hi,

your package doesn’t conform to the python policy; it is prone to expose
serious crashes at the time the python version changes.

Currently it does this horrible stuff:
        mv $(CURDIR)/debian/tmp/usr/lib/_Hamlib.so 
$(CURDIR)/debian/python-libhamlib2/usr/share/python-support/python-libhamlib2

You don’t need to move files by hand to the python-support directory,
and you *must* not put architecture-dependent files in /usr/share.

I see two issues here:
      * The python module is built in /usr/lib instead
        of /usr/lib/python2.X/site-packages; this is probably an
        upstream issue but you can work around it without patching.
      * The Debian build process only builds the package for one python
        version; this way the module built for python2.4 will not work
        with python2.5. You must loop over the supported python versions
        to build the module for each of them, and install it in each of
        the corresponding /usr/lib/python2.X/site-packages directories.

There are examples of how to do that in the python-support documentation
and on the wiki. If you need help, please don’t hesitate to ask for a
patch.

After doing that, you will be able to simply:
        mv $(CURDIR)/debian/tmp/usr/lib/python* 
$(CURDIR)/debian/python-libhamlib2/usr/lib/
and dh_pysupport/dh_pycentral will take care of the rest (including
putting the files in specific directories).

Cheers,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

Reply via email to