problems with dpkg-shlibs
I built two shared libraries libscore and libpml. dh_shlibdeps calls
dpkg-shlibdeps and produces some warnings, which result in missing
shlibs control files.
$ dpkg-shlibdeps -Tdebian/substvars debian/tmp/usr/lib/libpml.so.1 debian/tmp/usr/lib/libscore.so.1
dpkg-shlibdeps: warning: unable to find dependency information for shared library libscore (soname 1, path /usr/lib/libscore.so.1, dependency field Depends)
$ ldd debian/tmp/usr/lib/libscore.so.1
libm.so.6 => /lib/libm.so.6 (0x40015000)
libc.so.6 => /lib/libc.so.6 (0x4002e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
$ ldd debian/tmp/usr/lib/libpml.so.1
libscore.so.1 => /usr/lib/libscore.so.1 (0x40024000)
libm.so.6 => /lib/libm.so.6 (0x40033000)
libc.so.6 => /lib/libc.so.6 (0x4004c000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
How can I convince dpkg-shlibdeps
- to search for libscore in debian/tmp/usr/lib (using LD_LIBRARY_PATH
yields unknown output: dpkg-shlibdeps: warning: unknown output from
ldd on `debian/tmp/usr/lib/libpml.so.1': ` libscore.so.1 =>
debian/tmp/usr/lib/libscore.so.1 (0x4001e000)
- to build a correct shlibs control file?
Is it ok to use the debian/shlibs.local file to provide the
information about the shared libraries, which the package provides
itself?
If yes, is it necessary to add the exact version information?
With this schema the ${shlibs:Depends} expands to a reference to the
package itself. Is this ok?
A final question, when to run ldconfig.
- in postinst configure ?
- in postrm upgrade ?
In the latter case, I get an error from ldconfig:
ldconfig: warning: can't open /usr/lib/libscore.so.1.dpkg-tmp (Too many levels of symbolic links), skipping
Thanks for any help.
--
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: