* Hilko Bengen <ben...@debian.org>, 2011-07-25, 12:56:
,----
| $ 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.

It does look bad.

I does not make sense to install static libraries, libtool control
files or .so symlinks into /usr/lib/pythonX.Y/.

This is correct, of course. I fixed this part, now the .la, .a, and the
symlinks are removed before calling dh_python2.

Just don't do that and the problem will go away.

After doing a...

fakeroot debian/rules clean
fakeroot debian/rules install

... the problem has not gone away:

,----
| $ find debian/python-guestfs -not -type d | xargs ls -l
| lrwxrwxrwx 1 bengen bengen     34 Jul 25 12:40 
debian/python-guestfs/usr/lib/python2.6/dist-packages/guestfs.py -> 
../../../share/pyshared/guestfs.py
| lrwxrwxrwx 1 bengen bengen     46 Jul 25 12:40 
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   2356 Jul 24 13:51 
debian/python-guestfs/usr/share/doc/python-guestfs/changelog.Debian.gz
| -rw-r--r-- 1 bengen bengen 142649 Jul 24 13:51 
debian/python-guestfs/usr/share/doc/python-guestfs/changelog.gz
| -rw-r--r-- 1 bengen bengen    488 Jul 24 13:51 
debian/python-guestfs/usr/share/doc/python-guestfs/copyright
| -rw-r--r-- 1 bengen bengen 186968 Jul 25 12:39 
debian/python-guestfs/usr/share/pyshared/guestfs.py
| -rw-r--r-- 1 bengen bengen 732744 Jul 25 12:39 
debian/python-guestfs/usr/share/pyshared/libguestfsmod.so.0.0.0
`----

Also rename libguestfsmod.so.0.0.0 to libguestfsmod.so (before calling dh_python2, or course).

That said, dh_python2 could do a better job here.

--
Jakub Wilk



--
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