18
dh_makeshlibs is a debhelper program that automatically scans for shared
18
B<dh_makeshlibs> is a debhelper program that automatically scans for shared
19
19
libraries, and generates a shlibs file for the libraries it finds.
21
It also adds a call to ldconfig in the postinst and postrm scripts (in
21
It also adds a call to ldconfig in the F<postinst> and F<postrm> scripts (in
22
22
v3 mode and above only) to any packages in which it finds shared libraries.
42
42
=item B<-m>I<major>, B<--major=>I<major>
44
Instead of trying to guess the major number of the library with objdump,
44
Instead of trying to guess the major number of the library with /postobjdump,
45
45
use the major number specified after the -m parameter. This is much less
46
46
useful than it used to be, back in the bad old days when this program
47
47
looked at library filenames rather than using objdump.
53
53
By default, the shlibs file generated by this program does not make packages
54
54
depend on any particular version of the package containing the shared
55
55
library. It may be necessary for you to add some version dependancy
56
information to the shlibs file. If -V is specified with no dependency
56
information to the shlibs file. If B<-V> is specified with no dependency
57
57
information, the current upstream version of the package is plugged into a
58
dependency that looks like "packagename (>= packageversion)". Note that in
59
debhelper compatibility levels before v4, the debian part of the package
60
version number is also included. If -V is specified with parameters, the
58
dependency that looks like "I<packagename> B<(=E<gt>> I<packageversion>B<)>". Note that in
59
debhelper compatibility levels before v4, the Debian part of the package
60
version number is also included. If B<-V> is specified with parameters, the
61
61
parameters can be used to specify the exact dependency information needed
62
62
(be sure to include the package name).
64
Beware of using -V without any parameters; this is a conservative setting
64
Beware of using B<-V> without any parameters; this is a conservative setting
65
65
that always ensures that other packages' shared library dependencies are at
66
66
least as tight as they need to be (unless your library is prone to changing
67
67
ABI without updating the upstream version number), so that if the
72
72
=item B<-n>, B<--noscripts>
74
Do not modify postinst/postrm scripts.
74
Do not modify F<postinst>/F<postrm> scripts.
76
76
=item B<-X>I<item>, B<--exclude=>I<item>
78
Exclude files that contain "item" anywhere in their filename or directory
78
Exclude files that contain I<item> anywhere in their filename or directory
79
79
from being treated as shared libraries.
81
81
=item B<--add-udeb=>I<udeb>
83
Create an additional line for udebs in the shlibs file and use "udeb" as the
83
Create an additional line for udebs in the shlibs file and use I<udeb> as the
84
84
package name for udebs to depend on instead of the regular library package.
86
86
=item B<--> I<params>
88
Pass "params" to L<dpkg-gensymbols(1)>.
88
Pass I<params> to L<dpkg-gensymbols(1)>.
96
=item B<dh_makeshlibs>
98
Assuming this is a package named libfoobar1, generates a shlibs file that
98
Assuming this is a package named F<libfoobar1>, generates a shlibs file that
99
99
looks something like:
100
100
libfoobar 1 libfoobar1
102
=item dh_makeshlibs -V
102
=item B<dh_makeshlibs -V>
104
104
Assuming the current version of the package is 1.1-3, generates a shlibs
105
105
file that looks something like:
106
106
libfoobar 1 libfoobar1 (>= 1.1)
108
=item dh_makeshlibs -V 'libfoobar1 (>= 1.0)'
108
=item B<dh_makeshlibs -V 'libfoobar1 (E<gt>= 1.0)'>
110
110
Generates a shlibs file that looks something like:
111
111
libfoobar 1 libfoobar1 (>= 1.0)