Package: debhelper
Version: 5.0.63
Severity: normal

Hello,

some packages build multiple flavors of the same library and when
they generate dependencies say on a -tools package, they usually indicate
the package containing the "default flavor" of the library with the -L
option of dh_shlibdeps.

This, in turn, will ask dpkg-shlibdeps to use the corresponding shlibs
file as a "shlibs override file". This works well when dependencies of
libraries come from shlibs files. However when the packages is using
symbols files, this won't give the expected result as dpkg-shlibdeps will
use a random symbols files that happen to contain dependencies for the
right soname.

In fact, with dpkg-dev 1.14.15 (that is going to be uploaded this
week-end), the order is not completely random anymore. dpkg-shlibdeps
tries to locate the library first in the package containing the binary
beeing analyzed, then in build directories indicated via the new -S
option, and last in the other binary packages. Once located, it will
always try the shlibs and symbols files of the package where the library
has been found.

That's why, "dh_shlibdeps -L pkg" should result in a -Sdebian/pkg option
being passed to dpkg-shlibdeps. Of course, this requires (again) a
versioned dependency on dpkg-dev >= 1.14.15.

It also means (at least in theory) that you don't need to pass the
-Ldebian/pkg/DEBIAN/shlibs option any more since the -S hint will work in
the same way for shlibs and symbols files.

Cheers,

PS: The commit introducing -S (if you want check its "official"
documentation in the diff of the manpage):
http://git.debian.org/?p=dpkg/dpkg.git;a=commit;h=fd4af2bc4801af30c4145dce30a3e2591ad223a6


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils            2.18.1~cvs20071027-1 The GNU assembler, linker and bina
ii  coreutils           5.97-5.6             The GNU core utilities
ii  dpkg-dev            1.14.15~ctlrm        package building tools for Debian
ii  file                4.21-4               Determines file type using "magic"
ii  html2text           1.3.2a-3             An advanced HTML to text converter
ii  perl                5.8.8-12             Larry Wall's Practical Extraction 
ii  po-debconf          1.0.11               manage translated Debconf template

debhelper recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to