Package: debhelper
Version: 7.4.11
Severity: normal
Hi,
I recently run into a similar porblem of badly formated sonames
causing a broken (incomplete in my case) shlibs file.
Both dh_makeshlibs and dpkg-shlibdeps use the same patterns to extract
the name and version from SONAME:
<name>.so.<ver>
<name>-<ver>.so
As said in the bugreport already it is impossible to differentiate
reliably between <name-with-dash>.so and <name>-<ver>.so. It is also
impossible to handle <name>.so in shlibs. So even if it could be
detected it would be impossible to generate an shlibs entry for it in
the current format.
The solution to the poblem comes with symbols files. The symbols files
for planner could contain (guessing what the actual SONAME is):
libplanner-1.so.0 planner
libmrp-xml.so planner
libmrp-xsl.so planner
libhtml-plugin.so planner
libmsp-plugin.so planner
libpython-plugin.so planner
libsql-plugin.so planner
libxmlplanner-plugin.so planner
libstorage-mrproject.so.1 planner
libstorage-sql.so planner
The shlibs file could remain empty. For plugins this probably makes
no difference, except when you have plugins that depend on other
plugins.
With shlibs even if the plugins are in the same package then
dpkg-shlibdebs will fail if they match its patterns. If they are in
different packages then dpkg-shlibdeps will miss dependencies because
it ignores things not matching its pattern.
With smybols files dpkg-shlibdebs matches the full SONAME and then it
finds the right entry and dependency in all cases.
So my proposed solution would be for dh_makeshlibs to stop creating
shlibs files at all and create symbols files instead, with or without
actual symbols as the user specifies.
MfG
Goswin
PS: This concerns any private shared library (any dynamically linked
shared object) outside /usr/lib and even some public shared libs in
/usr/lib.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31.5-book-1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages debhelper depends on:
ii binutils 2.20-5 The GNU assembler, linker and bina
ii dpkg-dev 1.15.5.6 Debian package development tools
ii file 5.03-5+b1 Determines file type using "magic"
ii html2text 1.3.2a-14 advanced HTML to text converter
ii man-db 2.5.6-5 on-line manual pager
ii perl 5.10.1-9 Larry Wall's Practical Extraction
ii perl-base 5.10.1-9 minimal Perl system
ii po-debconf 1.0.16 tool for managing templates file t
debhelper recommends no packages.
Versions of packages debhelper suggests:
ii dh-make 0.50 tool that converts source archives
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]