DH_MAKECLILIBS(1) | Debhelper for CLI (Common Language Infrastructure) | DH_MAKECLILIBS(1) |
dh_makeclilibs - automatically create clilibs file
dh_makeclilibs [debhelper options] [-r] [-V[dependancies]] [-mminversion] [-lnextincompatible] [-Xitem]
dh_makeclilibs is a debhelper program that automatically scans for versioned CIL (.NET) assemblies, and generates a clilibs file for the libraries it finds.
By default, dh_makeclilibs scans the .dll files in the package directories and writes the discovered compatibility data (major/minor, build, token) to "clilibs" files in the appropriate packages.
However, if a file like debian/package.clilibs is found, this one will be installed and no scanning is performed.
Beware of using -V without any parameters; this is a conservative setting that always ensures that other packages' shared library dependencies are at least as tight as they need to be, so that if the maintainer screws up then they won't break. The flip side is that packages might end up with dependencies that are too tight and so find it harder to be upgraded.
dh_makeclilibs
Assuming this is a package named libfoobar0.9x-cil, generates a
clilibs file that looks something like:
libfoobar 1.0.2345.0_23a12f34 libfoobar0.9x-cil
dh_makeclilibs -V
Assuming the current version of the package is 0.93-3, generates a
clilibs file that looks something like:
libfoobar 1.0.2345.0_23a12f34 libfoobar0.9x-cil (>= 0.93-3)
dh_makeclilibs -V 'libfoobar0.9x-cil (>= 0.92)'
Generates a clilibs file that looks something like:
libfoobar 1.0.2345.0_23a12f34 libfoobar0.9x-cil (>= 0.92)
Assuming that your package creates libfoobar-cil and liblafasel-cil, which are compatible to 0.92 versions but the upstream is going to break compatibility in the next version, 0.94:
dh_makeclilibs -m 0.92 -l 0.94
Generates clilibs file that looks something like:
libfoobar 1.0.2345.0_23a12f34 libfoobar-cil (>= 0.92), libfoobar-cil (<< 0.94)
and
liblafasel 1.0.2345.0_23a12f34 liblafasel-cil (>= 0.92), liblafasel-cil (<< 0.94)
debhelper(7)
This program is a part of cli-common-dev.
Will possibly not work correctly with DH_COMPAT levels 1 and 2.
Mirco Bauer <meebey@meebey.net>, Eduard Bloch <blade@debian.org>, inspired by dh_makeshlibs by Joey Hess <joeyh@debian.org>
2022-04-21 | perl v5.34.0 |