DH_MAKESHLIBS(1) | Debhelper | DH_MAKESHLIBS(1) |
dh_makeshlibs - automatically create shlibs file and call dpkg-gensymbols
dh_makeshlibs [debhelper options] [-mmajor] [-V[dependencies]] [-n] [-Xitem] [-- params]
dh_makeshlibs is a debhelper program that automatically scans for shared libraries, and generates a shlibs file for the libraries it finds.
It will also ensure that ldconfig is invoked during install and removal when it finds shared libraries. Since debhelper 9.20151004, this is done via a dpkg trigger. In older versions of debhelper, dh_makeshlibs would generate a maintainer script for this purpose.
Note in compat levels 9 and earlier, this file was installed by dh_installdeb(1) rather than dh_makeshlibs.
In compat 12 and later, dh_makeshlibs defaults to -VUpstream-Version. In compat 11 and earlier the default behaved like -VNone..
The dh_makeshlibs tool can generate dependencies in three variants:
This is a conservative setting that always ensures that other packages' shared library dependencies are at least as tight as they need to be (unless the library is prone to changing ABI without updating the upstream version number).
The flip side is that packages might end up with dependencies that are too tight in some cases (note a symbols file can mitigate this issue). This is often of minor temporary inconvenience and usually a lot better than the fall out caused by forgetting to bump the dependency information.
This explicit form was added in debhelper/11.3. In previous versions, a -V without any dependency information was used instead (and that form still works)
This form is generally unsafe with the only exception being if upstream does not extend the ABI in any way. However, most upstreams improve their interfaces over time and packagers are recommended to use -VUpstream-Version (or one of the other forms of -Vdependencies).
Alternatively, this may be sufficient if (and only if) the package uses symbol versioning (see dpkg-gensymbols(1)) and does not build any udeb packages. Note that symbols are not supported for udeb packages, which solely relies on shlibs for dependency handling.
Note that debhelper will use the value as it is with no sanity checking or modification. In rare special cases, this is needed to generate a dependency on a different package than the one containing the library.
When choosing a value for this option, please keep mind that if the package provides a symbols file, then that it generally preferred over the shlibs file for regular .deb packages. See dpkg-shlibdeps(1) for more information on this topic.
This program is a part of debhelper.
Joey Hess <joeyh@debian.org>
2019-02-23 | 12.1.1 |