Public bug reported:
## FFE ##
Packaging changes only from Debian. The main changes are autopkgtest being
added, system user/group creation by shippin g the upstream sysusers.d config
file, and a new meta package that automatically lists all the libraries
provided by the tpm2-tss package, making it easier to pull them all in
regardless of SONAME changes and additions/removals, which matches Fedora and
makes it much easier for image builders. Given it's only packages changes, and
that autopkgtest was added, risk of regressions is very low. This needs to go
in tandem with tpm-udev 0.7
(https://bugs.launchpad.net/ubuntu/+source/tpm-udev/+bug/2142534).
The delta in Ubuntu is tiny so it's a very easy change to make. Diff
from 4.1.3-1.3 to 4.1.3-4 in Debian:
diff --git a/debian/changelog b/debian/changelog
index 5cc4be25..cbc4ea79 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,30 @@
+tpm2-tss (4.1.3-4) unstable; urgency=medium
+
+ [ Zaiba Sanglikar ]
+ * Add autopkgtest suite with upstream test suite (Closes: #1087380)
+
+ [ Luca Boccassi ]
+ * libtss2-dev: drop ${shlibs:Depends}
+ * Add tpm2-tss metapackage that depends on all libtss2 library packages
+
+ -- Mario Limonciello <[email protected]> Sun, 22 Feb 2026 07:57:28 -0600
+
+tpm2-tss (4.1.3-3) unstable; urgency=medium
+
+ [ Luca Boccassi ]
+ * Build depend on tmpfiles and sysusers packages
+ * Drop tpm-udev build dependency
+ * Add d/s/options to ignore files in git but not in tarball
+
+ -- Mario Limonciello <[email protected]> Tue, 17 Feb 2026 22:56:25 -0600
+
+tpm2-tss (4.1.3-2) unstable; urgency=medium
+
+ [ Luca Boccassi ]
+ * Install sysusers.d conf file
+
+ -- Mario Limonciello <[email protected]> Mon, 16 Feb 2026 14:29:24 -0600
+
tpm2-tss (4.1.3-1.3) unstable; urgency=medium
* Non-maintainer upload
diff --git a/debian/control b/debian/control
index 41b70ab7..ff800207 100644
--- a/debian/control
+++ b/debian/control
@@ -24,7 +24,8 @@ Build-Depends: acl,
libtpms-dev,
libusb-1.0-0-dev,
pkgconf,
- tpm-udev,
+ systemd | systemd-standalone-tmpfiles | systemd-tmpfiles,
+ systemd | systemd-standalone-sysusers | systemd-sysusers,
uthash-dev,
uuid-dev,
xsltproc
@@ -421,27 +422,8 @@ Section: libdevel
Depends: libcurl4-openssl-dev | libcurl-ssl-dev,
libjson-c-dev,
libssl-dev,
- libtss2-esys-3.0.2-0t64 (= ${binary:Version}),
- libtss2-fapi1t64 (= ${binary:Version}),
- libtss2-mu-4.0.1-0t64 (= ${binary:Version}),
- libtss2-policy0t64 (= ${binary:Version}),
- libtss2-rc0t64 (= ${binary:Version}),
- libtss2-sys1t64 (= ${binary:Version}),
- libtss2-tcti-cmd0t64 (= ${binary:Version}),
- libtss2-tcti-device0t64 (= ${binary:Version}),
- libtss2-tcti-i2c-ftdi0 (= ${binary:Version}),
- libtss2-tcti-i2c-helper0 (= ${binary:Version}),
- libtss2-tcti-libtpms0t64 (= ${binary:Version}),
- libtss2-tcti-mssim0t64 (= ${binary:Version}),
- libtss2-tcti-pcap0t64 (= ${binary:Version}),
- libtss2-tcti-spi-ftdi0 (= ${binary:Version}),
- libtss2-tcti-spi-helper0t64 (= ${binary:Version}),
- libtss2-tcti-spi-ltt2go0 (= ${binary:Version}),
- libtss2-tcti-spidev0 (= ${binary:Version}),
- libtss2-tcti-swtpm0t64 (= ${binary:Version}),
- libtss2-tctildr0t64 (= ${binary:Version}),
+ ${libtss2:All},
${misc:Depends},
- ${shlibs:Depends}
Multi-Arch: same
Description: TPM2 Software stack library - development files
TPM2.0 TSS (Software Stack) consists of API layers provided to support
@@ -456,6 +438,25 @@ Description: TPM2 Software stack library - development
files
This package contains development files for use when writing applications
that need access to TPM chips.
+Package: tpm2-tss
+Architecture: any
+Depends: ${libtss2:All},
+ ${misc:Depends},
+Multi-Arch: same
+Description: TPM2 Software stack library - metapackage for libraries
+ TPM2.0 TSS (Software Stack) consists of API layers provided to support
+ TPM 2.0 chips. It is made out of three layers:
+ .
+ - Enhanced System API (ESAPI)
+ - System API (SAPI), which implements the system layer API;
+ - Marshaling/Unmarshaling (MU)
+ - TPM Command Transmission Interface (TCTI), which is used by SAPI to
+ allow communication with the TAB/RM layer;
+ .
+ This is a metapackage that depends on all the libtss2 binary packages, to
+ facilitate installing all libraries at once, independently of the changing
+ SONAMEs.
+
Package: libtss2-doc
Architecture: all
Section: doc
diff --git a/debian/libtss2-fapi1t64.install b/debian/libtss2-fapi1t64.install
index 4db1f493..29acae82 100644
--- a/debian/libtss2-fapi1t64.install
+++ b/debian/libtss2-fapi1t64.install
@@ -1,4 +1,5 @@
etc/tmpfiles.d/tpm2-tss-fapi.conf usr/lib/tmpfiles.d/
+etc/sysusers.d/tpm2-tss.conf usr/lib/sysusers.d/
etc/tpm2-tss/fapi-config.json
etc/tpm2-tss/fapi-profiles/P_*.json
usr/lib/*/libtss2-fapi.so.*
diff --git a/debian/not-installed b/debian/not-installed
index 11b0470c..18a8feab 100644
--- a/debian/not-installed
+++ b/debian/not-installed
@@ -1,2 +1 @@
-etc/sysusers.d/tpm2-tss.conf
usr/lib/${DEB_HOST_MULTIARCH}/udev/rules.d/tpm-udev.rules
diff --git a/debian/rules b/debian/rules
index a4dbd2f0..15eb465a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -34,3 +34,10 @@ tpmclient.1: debian/tpmclient.xml
tpmtest.1: debian/tpmtest.xml
$(XP) $(DB2MAN) $<
+
+execute_after_dh_gencontrol:
+ # debian/files will not exist until dh_gencontrol has ran at least once.
+ # The list of libraries is everchanging, so generate the dependency
lists
+ # automatically at build time.
+ tsslibs=$$(grep -E 'libtss2-*' ./debian/files | grep -v -e 'dbgsym' -e
'libtss2-dev' -e 'libtss2-meta' -e 'libtss2-doc' | tr '_' ' ' | awk '{ print
$$1,"(=",$$2 ")" }' | paste -sd ',' - | sed -e 's/,/, /g'); \
+ dh_gencontrol -p libtss2-dev -p tpm2-tss --
-V"libtss2:All=$${tsslibs}"
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 00000000..c28ebf06
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+# These are in git but not in the source tarball, ignore to avoid build
failures on salsa-ci
+extend-diff-ignore = "(^|/)(.*\.vcxproj|.*\.sln)$"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 00000000..dc780bca
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,10 @@
+Tests: testsuite
+Restrictions: allow-stderr
+Depends: @,
+ @builddeps@,
+ iproute2,
+ procps,
+ swtpm-tools,
+ swtpm,
+ tpm-udev,
+ udev,
diff --git a/debian/tests/testsuite b/debian/tests/testsuite
new file mode 100644
index 00000000..196d8c63
--- /dev/null
+++ b/debian/tests/testsuite
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+set -x
+
+LIBDL_LDFLAGS="-ldl" ./bootstrap
+./configure --enable-unit --enable-integration --enable-tcti-swtpm
+
+make -j$(nproc) check
** Affects: tpm2-tss (Ubuntu)
Importance: Undecided
Status: New
** Affects: tpm2-tss (Ubuntu Resolute)
Importance: Undecided
Status: New
** Also affects: tpm2-tss (Ubuntu Resolute)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2142535
Title:
[FFE] Please merge 4.1.3-4 into resolute
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tpm2-tss/+bug/2142535/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs