Package: python2.6
Version: 2.6.7-1
Severity: normal

I tried following the recent calls to move python-related packages to
dh_python2, but failed with a package (libguestfs) that includes Python
bindings which are built and installed using an autoconf/automake-based
build system. Running dh_python2 after dh_install messed things up
considerably.

After building the whole package...

,----
| $ fakeroot debian/rules binary
`----

... I cleaned up the path the python-specific package and had dh_install
copy the relevant bits back into the directory:

,----
| $ rm -rf debian/python-guestfs
| $ cat debian/python-guestfs.install
| usr/lib/python*
| $ $ dh_install -ppython-guestfs
| $ find debian/python-guestfs -not -type d
| debian/python-guestfs/usr/lib/python2.6/dist-packages/guestfs.py
| debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.so.0
| debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.so.0.0.0
| debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.so
| debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.a
| debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.la
`----

This doesn't look too bad, as far as I can see.

However, after running dh_python2, the shared library and the archive
have been put under /usr/share. Lintian complains about this.

,----
| $ dh_python2 -ppython-guestfs --no-guessing-versions
| $ find debian/python-guestfs -not -type d | xargs ls -l
| lrwxrwxrwx 1 bengen bengen      46 Jul 25 01:24 
debian/python-guestfs/usr/lib/pyshared/python2.6/libguestfsmod.so -> 
../../python2.6/dist-packages/libguestfsmod.so
| lrwxrwxrwx 1 bengen bengen      34 Jul 25 01:24 
debian/python-guestfs/usr/lib/python2.6/dist-packages/guestfs.py -> 
../../../share/pyshared/guestfs.py
| lrwxrwxrwx 1 bengen bengen      39 Jul 25 01:24 
debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.a -> 
../../../share/pyshared/libguestfsmod.a
| lrwxrwxrwx 1 bengen bengen      40 Jul 25 01:24 
debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.la -> 
../../../share/pyshared/libguestfsmod.la
| lrwxrwxrwx 1 bengen bengen      22 Jul 25 00:46 
debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.so -> 
libguestfsmod.so.0.0.0
| lrwxrwxrwx 1 bengen bengen      42 Jul 25 01:24 
debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.so.0 -> 
../../../share/pyshared/libguestfsmod.so.0
| lrwxrwxrwx 1 bengen bengen      46 Jul 25 01:24 
debian/python-guestfs/usr/lib/python2.6/dist-packages/libguestfsmod.so.0.0.0 -> 
../../../share/pyshared/libguestfsmod.so.0.0.0
| -rw-r--r-- 1 bengen bengen  186968 Jul 25 00:46 
debian/python-guestfs/usr/share/pyshared/guestfs.py
| -rw-r--r-- 1 bengen bengen 1156172 Jul 25 00:46 
debian/python-guestfs/usr/share/pyshared/libguestfsmod.a
| -rwxr-xr-x 1 bengen bengen     998 Jul 25 00:46 
debian/python-guestfs/usr/share/pyshared/libguestfsmod.la
| lrwxrwxrwx 1 bengen bengen      22 Jul 25 00:46 
debian/python-guestfs/usr/share/pyshared/libguestfsmod.so.0 -> 
libguestfsmod.so.0.0.0
| -rwxr-xr-x 1 bengen bengen  732744 Jul 25 00:46 
debian/python-guestfs/usr/share/pyshared/libguestfsmod.so.0.0.0
`----

There are no other python-specific files in debian/ and there are no
special headers in debian/control, either.

Cheers,
-Hilko



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to