man-pages/man1/dh_shlibdeps.1.html
2021-03-31 01:06:50 +01:00

172 lines
4.6 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DH_SHLIBDEPS</TITLE>
</HEAD><BODY>
<H1>DH_SHLIBDEPS</H1>
Section: Debhelper (1)<BR>Updated: 2020-03-27<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
dh_shlibdeps - calculate shared library dependencies
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>dh_shlibdeps</B> [<I>debhelper options</I>] [<B>-L</B><I>package</I>] [<B>-l</B><I>directory</I>] [<B>-X</B><I>item</I>] [<B>--</B> <I>params</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>dh_shlibdeps</B> is a debhelper program that is responsible for calculating
shared library dependencies for packages.
<P>
This program is merely a wrapper around <B><A HREF="/cgi-bin/man/man2html?1+dpkg-shlibdeps">dpkg-shlibdeps</A></B>(1) that calls it
once for each package listed in the <I>control</I> file, passing it
a list of <FONT SIZE="-1">ELF</FONT> executables and shared libraries it has found.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-X</B><I>item</I>, <B>--exclude=</B><I>item</I><DD>
Exclude files that contain <I>item</I> anywhere in their filename from being
passed to <B>dpkg-shlibdeps</B>. 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.
<DT id="2"><B>--</B> <I>params</I><DD>
Pass <I>params</I> to <B><A HREF="/cgi-bin/man/man2html?1+dpkg-shlibdeps">dpkg-shlibdeps</A></B>(1).
<DT id="3"><B>-u</B><I>params</I>, <B>--dpkg-shlibdeps-params=</B><I>params</I><DD>
This is another way to pass <I>params</I> to <B><A HREF="/cgi-bin/man/man2html?1+dpkg-shlibdeps">dpkg-shlibdeps</A></B>(1).
It is deprecated; use <B>--</B> instead.
<DT id="4"><B>-l</B><I>directory</I>[<B>:</B><I>directory</I> ...]<DD>
With recent versions of <B>dpkg-shlibdeps</B>, this option is generally not
needed.
<P>
It tells <B>dpkg-shlibdeps</B> (via its <B>-l</B> parameter), to look for private
package libraries in the specified directory (or directories --- separate
with colons). With recent
versions of <B>dpkg-shlibdeps</B>, 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.
<DT id="5"><B>-L</B><I>package</I>, <B>--libpackage=</B><I>package</I><DD>
With recent versions of <B>dpkg-shlibdeps</B>, this option is generally not
needed, unless your package builds multiple flavors of the same library
or is relying on <I>debian/shlibs.local</I> for an internal library.
<P>
It tells <B>dpkg-shlibdeps</B> (via its <B>-S</B> parameter) to look first in the package
build directory for the specified package, when searching for libraries,
symbol files, and shlibs files.
<P>
If needed, this can be passed multiple times with different package
names.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLES</H2>
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 <B>dh_makeshlibs</B>, then <B>dh_shlibdeps</B>:
<P>
<PRE>
dh_makeshlibs
dh_shlibdeps
</PRE>
<P>
This will have the effect of generating automatically a shlibs file for
libfoo1, and using that file and the libfoo1 library in the
<I>debian/libfoo1/usr/lib</I> directory to calculate shared library dependency
information.
<P>
If a libbar1 package is also produced, that is an alternate build of
libfoo, and is installed into <I>/usr/lib/bar/</I>, you can make libfoo-bin depend
on libbar1 as follows:
<P>
<PRE>
dh_shlibdeps -Llibbar1 -l/usr/lib/bar
</PRE>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?7+debhelper">debhelper</A></B>(7), <B><A HREF="/cgi-bin/man/man2html?1+dpkg-shlibdeps">dpkg-shlibdeps</A></B>(1)
<P>
This program is a part of debhelper.
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
Joey Hess &lt;<A HREF="mailto:joeyh@debian.org">joeyh@debian.org</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="10"><A HREF="#lbAF">EXAMPLES</A><DD>
<DT id="11"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="12"><A HREF="#lbAH">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:11 GMT, March 31, 2021
</BODY>
</HTML>