Package: debhelper
Version: 8.0.0
Severity: wishlist
For cases where an app uses some libs via dlopen, the dependencies for those
libs have to be manually added to control file. I want to be sure I'm using
shlibdeps mechanism to get the proper dependencies for those libs. Here's an
example of what I currently do in a debian/rules file.
override_dh_gencontrol:
dh_gencontrol
# Manually add lib dependencies
LIBSOMELIB1_DEPENDS=$$(cat /var/lib/dpkg/info/libsomelib1.shlibs | \
sed
's/^[^[:space:]]\+\?[[:space:]]\+\?[^[:space:]]\+\?[[:space:]]\+\?\(.*\)$/\1/')
sed "s/^Depends:.*$$/&, $(LIBSOMELIB1_DEPENDS)/" \
-i "debian/$(SOME_PACKAGE)/DEBIAN/control"
LIBSOMELIB2_DEPENDS=$$(cat /var/lib/dpkg/info/libsomelib2.shlibs | \
sed
's/^[^[:space:]]\+\?[[:space:]]\+\?[^[:space:]]\+\?[[:space:]]\+\?\(.*\)$/\1/')
sed "s/^Depends:.*$$/&, $(LIBSOMELIB2_DEPENDS)/" \
-i "debian/$(SOME_PACKAGE)/DEBIAN/control"
...
It would be great if debhelper could make this easier, perhaps making use of
${misc:Depends} in control file, or something similar.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages debhelper depends on:
ii binutils 2.20.1-14 The GNU assembler, linker and bina
ii dpkg-dev 1.15.8.4 Debian package development tools
ii file 5.04-5 Determines file type using "magic"
ii html2text 1.3.2a-15 advanced HTML to text converter
ii man-db 2.5.7-4 on-line manual pager
ii perl 5.10.1-14 Larry Wall's Practical Extraction
ii perl-base 5.10.1-14 minimal Perl system
ii po-debconf 1.0.16 tool for managing templates file t
debhelper recommends no packages.
Versions of packages debhelper suggests:
pn dh-make <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]