19
dh_shlibdeps is a debhelper program that is responsible for calculating
19
B<dh_shlibdeps> is a debhelper program that is responsible for calculating
20
20
shared library dependencies for packages.
22
22
This program is merely a wrapper around L<dpkg-shlibdeps(1)> that calls it
23
once for each package listed in the control file, passing it
23
once for each package listed in the F<control> file, passing it
24
24
a list of ELF executables and shared libraries it has found.
30
30
=item B<-X>I<item>, B<--exclude=>I<item>
32
Exclude files that contain "item" anywhere in their filename from being
33
passed to dpkg-shlibdeps. This will make their dependencies be ignored.
32
Exclude files that contain F<item> anywhere in their filename from being
33
passed to B<dpkg-shlibdeps>. This will make their dependencies be ignored.
34
34
This may be useful in some situations, but use it with caution. This option
35
35
may be used more than once to exclude more than one thing.
37
37
=item B<--> I<params>
39
Pass "params" to L<dpkg-shlibdeps(1)>.
39
Pass I<params> to L<dpkg-shlibdeps(1)>.
41
41
=item B<-u>I<params>, B<--dpkg-shlibdeps-params=>I<params>
43
This is another way to pass I<params> to L<dpkg-deb(1)>.
43
This is another way to pass I<params> to L<dpkg-shlibdeps(1)>.
44
44
It is deprecated; use B<--> instead.
46
=item B<-l>I<directory>[:directory:directory:..]
46
=item B<-l>I<directory>[B<:>I<directory> ...]
48
With recent versions of dpkg-shlibdeps, this option is generally not
48
With recent versions of B<dpkg-shlibdeps>, this option is generally not
51
Before dpkg-shlibdeps is run, LD_LIBRARY_PATH will have added to it the
51
Before B<dpkg-shlibdeps> is run, B<LD_LIBRARY_PATH> will have added to it the
52
52
specified directory (or directories -- separate with colons). With recent
53
versions of dpkg-shlibdeps, this is mostly only useful for packages that
53
versions of B<dpkg-shlibdeps>, this is mostly only useful for packages that
54
54
build multiple flavors of the same library, or other situations where
55
55
the library is installed into a directory not on the regular library search
58
58
=item B<-L>I<package>, B<--libpackage=>I<package>
60
With recent versions of dpkg-shlibdeps, this option is generally not
60
With recent versions of B<dpkg-shlibdeps>, this option is generally not
61
61
needed, unless your package builds multiple flavors of the same library.
63
It tells dpkg-shlibdeps (via its -S parameter) to look first in the package
63
It tells B<dpkg-shlibdeps> (via its B<-S> parameter) to look first in the package
64
64
build directory for the specified package, when searching for libraries,
65
65
symbol files, and shlibs files.
71
71
Suppose that your source package produces libfoo1, libfoo-dev, and
72
72
libfoo-bin binary packages. libfoo-bin links against libfoo1, and should
73
depend on it. In your rules file, first run dh_makeshlibs, then dh_shlibdeps:
73
depend on it. In your rules file, first run B<dh_makeshlibs>, then B<dh_shlibdeps>:
78
78
This will have the effect of generating automatically a shlibs file for
79
79
libfoo1, and using that file and the libfoo1 library in the
80
debian/libfoo1/usr/lib directory to calculate shared library dependency
80
F<debian/libfoo1/usr/lib> directory to calculate shared library dependency
83
83
If a libbar1 package is also produced, that is an alternate build of
84
libfoo, and is installed into /usr/lib/bar/, you can make libfoo-bin depend
84
libfoo, and is installed into F</usr/lib/bar/>, you can make libfoo-bin depend
85
85
on libbar1 as follows:
87
87
dh_shlibdeps -Llibbar1 -l/usr/lib/bar