.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "DH_SHLIBDEPS 1" .TH DH_SHLIBDEPS 1 "2019-09-14" "12.6" "Debhelper" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" dh_shlibdeps \- calculate shared library dependencies .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBdh_shlibdeps\fR [\fIdebhelperĀ options\fR] [\fB\-L\fR\fIpackage\fR] [\fB\-l\fR\fIdirectory\fR] [\fB\-X\fR\fIitem\fR] [\fB\-\-\fRĀ \fIparams\fR] .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBdh_shlibdeps\fR is a debhelper program that is responsible for calculating shared library dependencies for packages. .PP This program is merely a wrapper around \fBdpkg\-shlibdeps\fR\|(1) that calls it once for each package listed in the \fIcontrol\fR file, passing it a list of \s-1ELF\s0 executables and shared libraries it has found. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-X\fR\fIitem\fR, \fB\-\-exclude=\fR\fIitem\fR" 4 .IX Item "-Xitem, --exclude=item" Exclude files that contain \fIitem\fR anywhere in their filename from being passed to \fBdpkg-shlibdeps\fR. This will make their dependencies be ignored. This may be useful in some situations, but use it with caution. This option may be used more than once to exclude more than one thing. .IP "\fB\-\-\fR \fIparams\fR" 4 .IX Item "-- params" Pass \fIparams\fR to \fBdpkg\-shlibdeps\fR\|(1). .IP "\fB\-u\fR\fIparams\fR, \fB\-\-dpkg\-shlibdeps\-params=\fR\fIparams\fR" 4 .IX Item "-uparams, --dpkg-shlibdeps-params=params" This is another way to pass \fIparams\fR to \fBdpkg\-shlibdeps\fR\|(1). It is deprecated; use \fB\-\-\fR instead. .IP "\fB\-l\fR\fIdirectory\fR[\fB:\fR\fIdirectory\fR ...]" 4 .IX Item "-ldirectory[:directory ...]" With recent versions of \fBdpkg-shlibdeps\fR, this option is generally not needed. .Sp It tells \fBdpkg-shlibdeps\fR (via its \fB\-l\fR parameter), to look for private package libraries in the specified directory (or directories \*(-- separate with colons). With recent versions of \fBdpkg-shlibdeps\fR, this is mostly only useful for packages that build multiple flavors of the same library, or other situations where the library is installed into a directory not on the regular library search path. .IP "\fB\-L\fR\fIpackage\fR, \fB\-\-libpackage=\fR\fIpackage\fR" 4 .IX Item "-Lpackage, --libpackage=package" With recent versions of \fBdpkg-shlibdeps\fR, this option is generally not needed, unless your package builds multiple flavors of the same library or is relying on \fIdebian/shlibs.local\fR for an internal library. .Sp It tells \fBdpkg-shlibdeps\fR (via its \fB\-S\fR parameter) to look first in the package build directory for the specified package, when searching for libraries, symbol files, and shlibs files. .Sp If needed, this can be passed multiple times with different package names. .SH "EXAMPLES" .IX Header "EXAMPLES" Suppose that your source package produces libfoo1, libfoo-dev, and libfoo-bin binary packages. libfoo-bin links against libfoo1, and should depend on it. In your rules file, first run \fBdh_makeshlibs\fR, then \fBdh_shlibdeps\fR: .PP .Vb 2 \& dh_makeshlibs \& dh_shlibdeps .Ve .PP This will have the effect of generating automatically a shlibs file for libfoo1, and using that file and the libfoo1 library in the \&\fIdebian/libfoo1/usr/lib\fR directory to calculate shared library dependency information. .PP If a libbar1 package is also produced, that is an alternate build of libfoo, and is installed into \fI/usr/lib/bar/\fR, you can make libfoo-bin depend on libbar1 as follows: .PP .Vb 1 \& dh_shlibdeps \-Llibbar1 \-l/usr/lib/bar .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdebhelper\fR\|(7), \fBdpkg\-shlibdeps\fR\|(1) .PP This program is a part of debhelper. .SH "AUTHOR" .IX Header "AUTHOR" Joey Hess