dpkg (1.18.25) stretch; urgency=medium
[dpkg] / man / deb-shlibs.man
CommitLineData
1479465f
GJ
1.\" dpkg manual page - deb-shlibs(5)
2.\"
3.\" Copyright © 1996 Michael Shields <shields@crosslink.net>
4.\" Copyright © 2008 Zack Weinberg <zackw@panix.com>
5.\"
6.\" This is free software; you can redistribute it and/or modify
7.\" it under the terms of the GNU General Public License as published by
8.\" the Free Software Foundation; either version 2 of the License, or
9.\" (at your option) any later version.
10.\"
11.\" This is distributed in the hope that it will be useful,
12.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
13.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14.\" GNU General Public License for more details.
15.\"
16.\" You should have received a copy of the GNU General Public License
17.\" along with this program. If not, see <https://www.gnu.org/licenses/>.
18.
19.TH deb\-shlibs 5 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
20.nh
21.SH NAME
22deb\-shlibs \- Debian shared library information file
23.
24.SH DESCRIPTION
25.PP
26.B shlibs
27files map shared library names and versions
28.RI ( sonames )
29to dependencies suitable for a package control file. There is one
30entry per line. Blank lines are \fBnot\fP allowed. Lines beginning
31with an \fB#\fP character are considered commentary, and are ignored.
32All other lines must have the format
33.IP
34.RI [ type\fB:\fP ]
35.I library
36.I version
37.I dependencies
38.PP
39The \fIlibrary\fP and \fIversion\fP fields are whitespace-delimited,
40but the \fIdependencies\fP field extends to the end of the line. The
41\fItype\fP field is optional and normally not needed.
42.PP
43The \fIdependencies\fP field has the same syntax as the \fBDepends\fP
44field in a binary control file, see \fBdeb\-control\fP(5).
45.
46.SH EXAMPLES
47.PP
48The
49.B shlibs
50file for a typical library package, named
51.IR libcrunch1 ,
52that provides one library whose soname is
53.IR libcrunch.so.1 ,
54might read
55.IP
56libcrunch 1 libcrunch1 (>= 1.2-1)
57.PP
58The \fIdependencies\fP
59must mention the most recent version of the package that added new
60symbols to the library: in the above example, new symbols were added to
61version 1.2 of
62.IR libcrunch .
63This is not the only reason the dependencies might need to be
64tightened.
65.
66.SH SEE ALSO
67.BR deb\-control (5),
68.BR dpkg\-shlibdeps (1),
69.BR deb\-symbols (5).