* Jakub Wilk:

> Disclaimer: I'm not maintainer of dh_python2. Not at all.
>
> * Hilko Bengen <ben...@debian.org>, 2011-07-25, 01:38:
>>,----
>>| $ 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
`----

As you can see, the shared library has been moved to /usr/share, with a
symlink from /usr/lib pointing to it.

After building new packages with...

fakeroot debian/rules binary

... lintian still complains:

,----
| E: python-guestfs: arch-dependent-file-in-usr-share 
usr/share/pyshared/libguestfsmod.so.0.0.0           
`----

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