Help: CPack DEB Generator page use field lists

This commit is contained in:
Alex Turbov
2023-01-30 04:48:40 +04:00
committed by Brad King
parent 26f962f8b1
commit fbb5ac4735

View File

@@ -8,16 +8,16 @@ Variables specific to CPack Debian (DEB) generator
The CPack DEB generator may be used to create DEB package using :module:`CPack`. The CPack DEB generator may be used to create DEB package using :module:`CPack`.
The CPack DEB generator is a :module:`CPack` generator thus it uses the The CPack DEB generator is a :module:`CPack` generator thus it uses the
``CPACK_XXX`` variables used by :module:`CPack`. :variable:`!CPACK_XXX` variables used by :module:`CPack`.
The CPack DEB generator should work on any Linux host but it will produce The CPack DEB generator should work on any Linux host but it will produce
better deb package when Debian specific tools ``dpkg-xxx`` are usable on better deb package when Debian specific tools ``dpkg-xxx`` are usable on
the build system. the build system.
The CPack DEB generator has specific features which are controlled by the The CPack DEB generator has specific features which are controlled by the
specifics ``CPACK_DEBIAN_XXX`` variables. specifics :variable:`!CPACK_DEBIAN_XXX` variables.
``CPACK_DEBIAN_<COMPONENT>_XXXX`` variables may be used in order to have :variable:`!CPACK_DEBIAN_<COMPONENT>_XXXX` variables may be used in order to have
**component** specific values. Note however that ``<COMPONENT>`` refers to **component** specific values. Note however that ``<COMPONENT>`` refers to
the **grouping name** written in upper case. It may be either a component name the **grouping name** written in upper case. It may be either a component name
or a component GROUP name. or a component GROUP name.
@@ -34,10 +34,10 @@ List of CPack DEB generator specific variables:
Enable component packaging for CPackDEB Enable component packaging for CPackDEB
* Mandatory : NO :Mandatory: No
* Default : OFF :Default: ``OFF``
If enabled (ON) multiple packages are generated. By default a single package If enabled (``ON``) multiple packages are generated. By default a single package
containing files of all components is generated. containing files of all components is generated.
.. variable:: CPACK_DEBIAN_PACKAGE_NAME .. variable:: CPACK_DEBIAN_PACKAGE_NAME
@@ -46,16 +46,16 @@ List of CPack DEB generator specific variables:
Set Package control field (variable is automatically transformed to lower Set Package control field (variable is automatically transformed to lower
case). case).
* Mandatory : YES :Mandatory: Yes
* Default : :Default:
- :variable:`CPACK_PACKAGE_NAME` for non-component based - :variable:`CPACK_PACKAGE_NAME` for non-component based
installations installations
- :variable:`CPACK_DEBIAN_PACKAGE_NAME` suffixed with -<COMPONENT> - :variable:`CPACK_DEBIAN_PACKAGE_NAME` suffixed with ``-<COMPONENT>``
for component-based installations. for component-based installations.
.. versionadded:: 3.5 .. versionadded:: 3.5
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_NAME`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_NAME` variables.
See https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-source See https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-source
@@ -66,8 +66,8 @@ List of CPack DEB generator specific variables:
Package file name. Package file name.
* Mandatory : YES :Mandatory: Yes
* Default : ``<CPACK_PACKAGE_FILE_NAME>[-<component>].deb`` :Default: ``<CPACK_PACKAGE_FILE_NAME>[-<component>].deb``
This may be set to ``DEB-DEFAULT`` to allow the CPack DEB generator to generate This may be set to ``DEB-DEFAULT`` to allow the CPack DEB generator to generate
package file name by itself in deb format:: package file name by itself in deb format::
@@ -98,8 +98,8 @@ List of CPack DEB generator specific variables:
The Debian package epoch The Debian package epoch
* Mandatory : No :Mandatory: No
* Default : - :Default: None
Optional number that should be incremented when changing versioning schemas Optional number that should be incremented when changing versioning schemas
or fixing mistakes in the version numbers of older packages. or fixing mistakes in the version numbers of older packages.
@@ -108,8 +108,8 @@ List of CPack DEB generator specific variables:
The Debian package version The Debian package version
* Mandatory : YES :Mandatory: Yes
* Default : :variable:`CPACK_PACKAGE_VERSION` :Default: :variable:`CPACK_PACKAGE_VERSION`
This variable may contain only alphanumerics (A-Za-z0-9) and the characters This variable may contain only alphanumerics (A-Za-z0-9) and the characters
. + - ~ (full stop, plus, hyphen, tilde) and should start with a digit. If . + - ~ (full stop, plus, hyphen, tilde) and should start with a digit. If
@@ -130,8 +130,8 @@ List of CPack DEB generator specific variables:
The Debian package release - Debian revision number. The Debian package release - Debian revision number.
* Mandatory : No :Mandatory: No
* Default : - :Default: None
This is the numbering of the DEB package itself, i.e. the version of the This is the numbering of the DEB package itself, i.e. the version of the
packaging and not the version of the content (see packaging and not the version of the content (see
@@ -144,20 +144,20 @@ List of CPack DEB generator specific variables:
The Debian package architecture The Debian package architecture
* Mandatory : YES :Mandatory: Yes
* Default : Output of ``dpkg --print-architecture`` (or ``i386`` :Default: Output of ``dpkg --print-architecture`` (or ``i386``
if ``dpkg`` is not found) if ``dpkg`` is not found)
.. versionadded:: 3.6 .. versionadded:: 3.6
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_ARCHITECTURE`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_ARCHITECTURE` variables.
.. variable:: CPACK_DEBIAN_PACKAGE_DEPENDS .. variable:: CPACK_DEBIAN_PACKAGE_DEPENDS
CPACK_DEBIAN_<COMPONENT>_PACKAGE_DEPENDS CPACK_DEBIAN_<COMPONENT>_PACKAGE_DEPENDS
Sets the Debian dependencies of this package. Sets the Debian dependencies of this package.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_DEPENDS` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_DEPENDS` for component-based
@@ -165,7 +165,7 @@ List of CPack DEB generator specific variables:
.. versionadded:: 3.3 .. versionadded:: 3.3
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_DEPENDS`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_DEPENDS` variables.
.. note:: .. note::
@@ -178,7 +178,9 @@ List of CPack DEB generator specific variables:
only the automatically discovered dependencies will be set for this only the automatically discovered dependencies will be set for this
component. component.
Example:: Example:
.. code-block:: cmake
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.3.1-6), libc6 (< 2.4)") set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.3.1-6), libc6 (< 2.4)")
@@ -189,23 +191,23 @@ List of CPack DEB generator specific variables:
Sets inter-component dependencies if listed with Sets inter-component dependencies if listed with
:variable:`CPACK_COMPONENT_<compName>_DEPENDS` variables. :variable:`CPACK_COMPONENT_<compName>_DEPENDS` variables.
* Mandatory : NO :Mandatory: No
* Default : - :Default: None
.. variable:: CPACK_DEBIAN_PACKAGE_MAINTAINER .. variable:: CPACK_DEBIAN_PACKAGE_MAINTAINER
The Debian package maintainer The Debian package maintainer
* Mandatory : YES :Mandatory: Yes
* Default : ``CPACK_PACKAGE_CONTACT`` :Default: :variable:`!CPACK_PACKAGE_CONTACT`
.. variable:: CPACK_DEBIAN_PACKAGE_DESCRIPTION .. variable:: CPACK_DEBIAN_PACKAGE_DESCRIPTION
CPACK_DEBIAN_<COMPONENT>_DESCRIPTION CPACK_DEBIAN_<COMPONENT>_DESCRIPTION
The Debian package description The Debian package description
* Mandatory : YES :Mandatory: Yes
* Default : :Default:
- :variable:`CPACK_DEBIAN_<COMPONENT>_DESCRIPTION` (component - :variable:`CPACK_DEBIAN_<COMPONENT>_DESCRIPTION` (component
based installers only) if set, or :variable:`CPACK_DEBIAN_PACKAGE_DESCRIPTION` if set, or based installers only) if set, or :variable:`CPACK_DEBIAN_PACKAGE_DESCRIPTION` if set, or
@@ -218,13 +220,13 @@ List of CPack DEB generator specific variables:
line of description as defined in `Debian Policy Manual`_. line of description as defined in `Debian Policy Manual`_.
.. versionadded:: 3.3 .. versionadded:: 3.3
Per-component ``CPACK_COMPONENT_<compName>_DESCRIPTION`` variables. Per-component :variable:`!CPACK_COMPONENT_<compName>_DESCRIPTION` variables.
.. versionadded:: 3.16 .. versionadded:: 3.16
Per-component ``CPACK_DEBIAN_<COMPONENT>_DESCRIPTION`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_DESCRIPTION` variables.
.. versionadded:: 3.16 .. versionadded:: 3.16
The ``CPACK_PACKAGE_DESCRIPTION_FILE`` variable. The :variable:`!CPACK_PACKAGE_DESCRIPTION_FILE` variable.
.. _Debian Policy Manual: https://www.debian.org/doc/debian-policy/ch-controlfields.html#description .. _Debian Policy Manual: https://www.debian.org/doc/debian-policy/ch-controlfields.html#description
@@ -233,11 +235,11 @@ List of CPack DEB generator specific variables:
Set Section control field e.g. admin, devel, doc, ... Set Section control field e.g. admin, devel, doc, ...
* Mandatory : YES :Mandatory: Yes
* Default : "devel" :Default: ``devel``
.. versionadded:: 3.5 .. versionadded:: 3.5
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_SECTION`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_SECTION` variables.
See https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections See https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
@@ -249,12 +251,10 @@ List of CPack DEB generator specific variables:
The archive format used for creating the Debian package. The archive format used for creating the Debian package.
* Mandatory : YES :Mandatory: Yes
* Default : "gnutar" :Default: ``gnutar``
Possible value is: Possible value is: ``gnutar``
- gnutar
.. note:: .. note::
@@ -269,8 +269,8 @@ List of CPack DEB generator specific variables:
The compression used for creating the Debian package. The compression used for creating the Debian package.
* Mandatory : YES :Mandatory: Yes
* Default : "gzip" :Default: ``gzip``
Possible values are: Possible values are:
@@ -298,11 +298,11 @@ List of CPack DEB generator specific variables:
Set Priority control field e.g. required, important, standard, optional, Set Priority control field e.g. required, important, standard, optional,
extra extra
* Mandatory : YES :Mandatory: Yes
* Default : "optional" :Default: ``optional``
.. versionadded:: 3.5 .. versionadded:: 3.5
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_PRIORITY`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_PRIORITY` variables.
See https://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities See https://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities
@@ -312,11 +312,11 @@ List of CPack DEB generator specific variables:
site from which the original source can be obtained and any additional site from which the original source can be obtained and any additional
upstream documentation or information may be found. upstream documentation or information may be found.
* Mandatory : NO :Mandatory: No
* Default : :variable:`CMAKE_PROJECT_HOMEPAGE_URL` :Default: :variable:`CMAKE_PROJECT_HOMEPAGE_URL`
.. versionadded:: 3.12 .. versionadded:: 3.12
The ``CMAKE_PROJECT_HOMEPAGE_URL`` variable. The :variable:`!CMAKE_PROJECT_HOMEPAGE_URL` variable.
.. note:: .. note::
@@ -329,11 +329,11 @@ List of CPack DEB generator specific variables:
May be set to ON in order to use ``dpkg-shlibdeps`` to generate May be set to ON in order to use ``dpkg-shlibdeps`` to generate
better package dependency list. better package dependency list.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- :variable:`CPACK_DEBIAN_PACKAGE_SHLIBDEPS` if set or - :variable:`CPACK_DEBIAN_PACKAGE_SHLIBDEPS` if set or
- OFF - ``OFF``
.. note:: .. note::
@@ -350,7 +350,7 @@ List of CPack DEB generator specific variables:
shared libraries that could not get resolved otherwise. shared libraries that could not get resolved otherwise.
.. versionadded:: 3.3 .. versionadded:: 3.3
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_SHLIBDEPS`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_SHLIBDEPS` variables.
.. versionadded:: 3.6 .. versionadded:: 3.6
Correct handling of ``$ORIGIN`` in :variable:`CMAKE_INSTALL_RPATH`. Correct handling of ``$ORIGIN`` in :variable:`CMAKE_INSTALL_RPATH`.
@@ -363,8 +363,8 @@ List of CPack DEB generator specific variables:
via its ``-l`` option. These will be searched by ``dpkg-shlibdeps`` in order via its ``-l`` option. These will be searched by ``dpkg-shlibdeps`` in order
to find private shared library dependencies. to find private shared library dependencies.
* Mandatory : NO :Mandatory: No
* Default : :Default: None
.. note:: .. note::
@@ -377,8 +377,8 @@ List of CPack DEB generator specific variables:
May be set when invoking cpack in order to trace debug information May be set when invoking cpack in order to trace debug information
during the CPack DEB generator run. during the CPack DEB generator run.
* Mandatory : NO :Mandatory: No
* Default : - :Default: None
.. variable:: CPACK_DEBIAN_PACKAGE_PREDEPENDS .. variable:: CPACK_DEBIAN_PACKAGE_PREDEPENDS
CPACK_DEBIAN_<COMPONENT>_PACKAGE_PREDEPENDS CPACK_DEBIAN_<COMPONENT>_PACKAGE_PREDEPENDS
@@ -389,58 +389,58 @@ List of CPack DEB generator specific variables:
before even starting the installation of the package which declares the before even starting the installation of the package which declares the
pre-dependency. pre-dependency.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_PREDEPENDS` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_PREDEPENDS` for component-based
installations. installations.
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_PREDEPENDS`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_PREDEPENDS` variables.
See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
.. variable:: CPACK_DEBIAN_PACKAGE_ENHANCES .. variable:: CPACK_DEBIAN_PACKAGE_ENHANCES
CPACK_DEBIAN_<COMPONENT>_PACKAGE_ENHANCES CPACK_DEBIAN_<COMPONENT>_PACKAGE_ENHANCES
Sets the `Enhances` field of the Debian package. Sets the ``Enhances`` field of the Debian package.
Similar to :variable:`Suggests <CPACK_DEBIAN_PACKAGE_SUGGESTS>` but works Similar to :variable:`Suggests <CPACK_DEBIAN_PACKAGE_SUGGESTS>` but works
in the opposite direction: declares that a package can enhance the in the opposite direction: declares that a package can enhance the
functionality of another package. functionality of another package.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_ENHANCES` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_ENHANCES` for component-based
installations. installations.
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_ENHANCES`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_ENHANCES` variables.
See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
.. variable:: CPACK_DEBIAN_PACKAGE_BREAKS .. variable:: CPACK_DEBIAN_PACKAGE_BREAKS
CPACK_DEBIAN_<COMPONENT>_PACKAGE_BREAKS CPACK_DEBIAN_<COMPONENT>_PACKAGE_BREAKS
Sets the `Breaks` field of the Debian package. Sets the ``Breaks`` field of the Debian package.
When a binary package (P) declares that it breaks other packages (B), When a binary package (P) declares that it breaks other packages (B),
``dpkg`` will not allow the package (P) which declares `Breaks` be ``dpkg`` will not allow the package (P) which declares ``Breaks`` be
**unpacked** unless the packages that will be broken (B) are deconfigured **unpacked** unless the packages that will be broken (B) are deconfigured
first. first.
As long as the package (P) is configured, the previously deconfigured As long as the package (P) is configured, the previously deconfigured
packages (B) cannot be reconfigured again. packages (B) cannot be reconfigured again.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_BREAKS` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_BREAKS` for component-based
installations. installations.
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_BREAKS`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_BREAKS` variables.
See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-breaks See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-breaks
@@ -452,15 +452,15 @@ List of CPack DEB generator specific variables:
field, ``dpkg`` will not allow them to be unpacked on the system at field, ``dpkg`` will not allow them to be unpacked on the system at
the same time. the same time.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_CONFLICTS` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_CONFLICTS` for component-based
installations. installations.
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_CONFLICTS`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_CONFLICTS` variables.
See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-conflicts See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-conflicts
@@ -479,15 +479,15 @@ List of CPack DEB generator specific variables:
A virtual package is one which appears in the `Provides` control field of A virtual package is one which appears in the `Provides` control field of
another package. another package.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_PROVIDES` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_PROVIDES` for component-based
installations. installations.
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_PROVIDES`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_PROVIDES` variables.
See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-virtual See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-virtual
@@ -498,34 +498,34 @@ List of CPack DEB generator specific variables:
Packages can declare in their control file that they should overwrite Packages can declare in their control file that they should overwrite
files in certain other packages, or completely replace other packages. files in certain other packages, or completely replace other packages.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_REPLACES` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_REPLACES` for component-based
installations. installations.
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_REPLACES`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_REPLACES` variables.
See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
.. variable:: CPACK_DEBIAN_PACKAGE_RECOMMENDS .. variable:: CPACK_DEBIAN_PACKAGE_RECOMMENDS
CPACK_DEBIAN_<COMPONENT>_PACKAGE_RECOMMENDS CPACK_DEBIAN_<COMPONENT>_PACKAGE_RECOMMENDS
Sets the `Recommends` field of the Debian package. Sets the ``Recommends`` field of the Debian package.
Allows packages to declare a strong, but not absolute, dependency on other Allows packages to declare a strong, but not absolute, dependency on other
packages. packages.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_RECOMMENDS` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_RECOMMENDS` for component-based
installations. installations.
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_RECOMMENDS`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_RECOMMENDS` variables.
See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
@@ -535,15 +535,15 @@ List of CPack DEB generator specific variables:
Sets the `Suggests` field of the Debian package. Sets the `Suggests` field of the Debian package.
Allows packages to declare a suggested package install grouping. Allows packages to declare a suggested package install grouping.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_SUGGESTS` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_SUGGESTS` for component-based
installations. installations.
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_SUGGESTS`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_SUGGESTS` variables.
See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps See https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
@@ -551,8 +551,8 @@ List of CPack DEB generator specific variables:
.. versionadded:: 3.6 .. versionadded:: 3.6
* Mandatory : NO :Mandatory: No
* Default : OFF :Default: ``OFF``
Allows to generate shlibs control file automatically. Compatibility is defined by Allows to generate shlibs control file automatically. Compatibility is defined by
:variable:`CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY` variable value. :variable:`CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY` variable value.
@@ -569,11 +569,11 @@ List of CPack DEB generator specific variables:
Compatibility policy for auto-generated shlibs control file. Compatibility policy for auto-generated shlibs control file.
* Mandatory : NO :Mandatory: No
* Default : "=" :Default: ``=``
Defines compatibility policy for auto-generated shlibs control file. Defines compatibility policy for auto-generated shlibs control file.
Possible values: "=", ">=" Possible values: ``=``, ``>=``
See https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-shlibdeps See https://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-shlibdeps
@@ -584,16 +584,18 @@ List of CPack DEB generator specific variables:
control.tar.gz. control.tar.gz.
Typical usage is for conffiles, postinst, postrm, prerm. Typical usage is for conffiles, postinst, postrm, prerm.
* Mandatory : NO :Mandatory: No
* Default : - :Default: None
Usage:: Usage:
.. code-block:: cmake
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
"${CMAKE_CURRENT_SOURCE_DIR}/prerm;${CMAKE_CURRENT_SOURCE_DIR}/postrm") "${CMAKE_CURRENT_SOURCE_DIR}/prerm;${CMAKE_CURRENT_SOURCE_DIR}/postrm")
.. versionadded:: 3.4 .. versionadded:: 3.4
Per-component ``CPACK_DEBIAN_<COMPONENT>_PACKAGE_CONTROL_EXTRA`` variables. Per-component :variable:`!CPACK_DEBIAN_<COMPONENT>_PACKAGE_CONTROL_EXTRA` variables.
.. variable:: CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION .. variable:: CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION
CPACK_DEBIAN_<COMPONENT>_PACKAGE_CONTROL_STRICT_PERMISSION CPACK_DEBIAN_<COMPONENT>_PACKAGE_CONTROL_STRICT_PERMISSION
@@ -603,10 +605,12 @@ List of CPack DEB generator specific variables:
This variable indicates if the Debian policy on control files should be This variable indicates if the Debian policy on control files should be
strictly followed. strictly followed.
* Mandatory : NO :Mandatory: No
* Default : FALSE :Default: ``FALSE``
Usage:: Usage:
.. code-block:: cmake
set(CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION TRUE) set(CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION TRUE)
@@ -632,8 +636,8 @@ List of CPack DEB generator specific variables:
source) the source from which the binary has been generated should be source) the source from which the binary has been generated should be
indicated with the field ``Source``. indicated with the field ``Source``.
* Mandatory : NO :Mandatory: No
* Default : :Default:
- An empty string for non-component based installations - An empty string for non-component based installations
- :variable:`CPACK_DEBIAN_PACKAGE_SOURCE` for component-based - :variable:`CPACK_DEBIAN_PACKAGE_SOURCE` for component-based
@@ -660,8 +664,8 @@ Dbgsym packaging has its own set of variables:
Enable generation of dbgsym .ddeb package(s). Enable generation of dbgsym .ddeb package(s).
* Mandatory : NO :Mandatory: No
* Default : OFF :Default: ``OFF``
.. note:: .. note::
@@ -683,7 +687,7 @@ Building Debian packages on Windows
.. versionadded:: 3.10 .. versionadded:: 3.10
To communicate UNIX file permissions from the install stage To communicate UNIX file permissions from the install stage
to the CPack DEB generator the "cmake_mode_t" NTFS to the CPack DEB generator the ``cmake_mode_t`` NTFS
alternate data stream (ADT) is used. alternate data stream (ADT) is used.
When a filesystem without ADT support is used only owner read/write When a filesystem without ADT support is used only owner read/write
@@ -694,7 +698,7 @@ Reproducible packages
.. versionadded:: 3.13 .. versionadded:: 3.13
The environment variable ``SOURCE_DATE_EPOCH`` may be set to a UNIX The environment variable :envvar:`!SOURCE_DATE_EPOCH` may be set to a UNIX
timestamp, defined as the number of seconds, excluding leap seconds, timestamp, defined as the number of seconds, excluding leap seconds,
since 01 Jan 1970 00:00:00 UTC. If set, the CPack DEB generator will since 01 Jan 1970 00:00:00 UTC. If set, the CPack DEB generator will
use its value for timestamps in the package. use its value for timestamps in the package.