swtpm/debian/control
Thomas Lamprecht 088a8ca44b debian: downgrade trousers package dependency to recommended
Currently `trousers` is listed as (hard) Dependency, but it does not
seems to be required for quite a few usecases, e.g., ours where we
mainly using swtpm for providing a tpm to VMs.

With trousers in Debian one gets an additional pain point: it comes
with rather dated and in some cirumstances failing by mistake init
script [0] that can throw errors when setting up during installation
and thus fail the whole installation of swtpm as Debian policy for
`Depends` hits:

> A package will not be configured unless all of the packages listed
> in its Depends field have been correctly configured
-- [1]

Declaring dependencies for things are not a hard requirement means
that a user will be required to install more dependencies than
actually needed.

Just documenting that as fact why I investigated in the
hard-requirement on trousers in the first place, not an actual
justification - it's a packaging bug after all.

So downgrade the dependency to "Suggests", as it seems a reasonable
level when checking its documented meaning:

> This is used to declare that one package may be more useful with
> one or more others. Using this field tells the packaging system and
> the user that the listed packages are related to this one and can
> perhaps enhance its usefulness, but that installing this one without
> them is perfectly reasonable.
-- [1]

[0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895201
[1]: https://www.debian.org/doc/debian-policy/ch-relationships.html

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-07 09:38:43 -04:00

70 lines
2.1 KiB
Plaintext

Source: swtpm
Maintainer: Stefan Berger <stefanb@linux.vnet.ibm.com>
Section: misc
Priority: optional
Standards-Version: 4.5.1
Rules-Requires-Root: no
Build-Depends: debhelper (>= 10),
expect,
gawk,
gnutls-bin,
gnutls-dev,
libfuse-dev,
libglib2.0-dev,
libgmp-dev,
libjson-glib-dev,
libseccomp-dev,
libssl-dev,
libtasn1-dev,
libtool,
libtpms-dev,
net-tools,
python3-twisted,
socat,
softhsm2
Package: swtpm
Architecture: any
Depends: swtpm-libs (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends}
Description: Libtpms-based TPM emulator
The swtpm package provides TPM emulators that listen for TPM commands
on sockets, character devices, or CUSE devices.
Package: swtpm-dev
Architecture: any
Depends: ${misc:Depends}
Description: Include files for the TPM emulator's CUSE interface
The swtpm-dev package provides include files for developing clients
controlling the CUSE TPM through ioctls.
Package: swtpm-libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: libglib2.0-0,
libtpms0,
openssl,
${misc:Depends},
${shlibs:Depends}
Description: Common libraries for TPM emulators
The swtpm-libs package provides the shared libraries for the swtpm
and swtpm-cuse packages.
Package: swtpm-tools
Architecture: any
Description: Tools for the TPM emulator
The swtpm-tools package contains the following types of tools:
- swtpm_bios: Tool for initializing the TPM
- swtpm_ioctl: Tool for controlling the CUSE TPM
- swtpm_setup: Tool for creating the initial state of the TPM; this
tool basically simulates TPM manufacturing where certificates are
written into the NVRAM of the TPM
- swtpm_cert: Creation of certificates for the TPM (x509)
Depends: gnutls-bin,
swtpm (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends}
Suggests: trousers (>= 0.3.9)