summaryrefslogtreecommitdiff
path: root/dh_makeshlibs.1
blob: 488356dac1fd8d9139a377a2a1aead9e0e336afc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.TH DH_MAKESHLIBS 1 "" "Debhelper Commands" "Debhelper Commands"
.SH NAME
dh_makeshlibs \- automatically create shlibs file
.SH SYNOPSIS
.B dh_makeshlibs
.I "[debhelper options] [-mmajor] [-V[dependancies]] [-n]"
.SH "DESCRIPTION"
dh_makeshlibs is a debhelper program that automatically scans for shared
libraries, and generates a shlibs file for the libraries it finds.
.P
It also adds a call to ldconfig in the postinst and postrm scripts (in
DH_COMPAT=3 mode and above only).
.SH OPTIONS
.TP
.B debhelper options
See
.BR debhelper (1)
for a list of options common to all debhelper commands.
.TP
.B \-mmajor, \--major=major
Instead of trying to guess the major number of the library from the filename
of the library, use the major number specified after the -m parameter.
.TP
.B \-V[dependancies], \--version-info, \--version-info=dependancies
By default, the shlibs file generated by this program does not make packages
depend on any particular version of the package containing the shared
library. It may be necessary for you to add some version dependancy
information to the shlibs file. If -V is specified with no dependancy
information, the current version of the package is plugged into a dependancy
that looks like "packagename (>= packageversion)". If -V is specified with
parameters, the parameters can be used to specify the exact dependancy
information needed (be sure to include the package name).
.TP
.B \-n, \--noscripts
Do not modify postinst/postrm scripts.
.SH EXAMPLES
.TP
.B dh_makeshlibs
Assuming this is a package named libfoobar1, generates a shlibs file that
looks something like:
  libfoobar 1 libfoobar1
.TP
.B dh_makeshlibs \-V
Assuming the current version of the package is 1.0-3, generates a shlibs
file that looks something like:
  libfoobar 1 libfoobar1 (>= 1.0-3)
.TP
.B dh_makeshlibs \-V "'libfoobar1 (>= 1.0)'"
Generates a shlibs file that looks something like:
  libfoobar 1 libfoobar1 (>= 1.0)
.SH ENVIRONMENT
See
.BR debhelper (1)
for a list of environment variables that affect all debhelper commands.
.SH "SEE ALSO"
.BR debhelper (1)
.SH BUGS
There is no guarantee that the program will get the shlibs file right. For
example, it may not correctly guess the major number of your package. In
cases like these (and perhaps in general, just to be safe), it is better to
create a debian/shlibs file by hand, or force it to use the correct major
number by specifying the -m parameter.
.P
This is a "do what I Mean" type program - you have been warned!
.SH AUTHOR
Joey Hess <joeyh@debian.org>