I am uploading a NMU to fix this.
The debdiff is attached.
diff -Nru swtpm-0.7.1/debian/changelog swtpm-0.7.1/debian/changelog
--- swtpm-0.7.1/debian/changelog 2023-05-18 17:52:09.000000000 +0000
+++ swtpm-0.7.1/debian/changelog 2024-04-20 10:43:03.000000000 +0000
@@ -1,3 +1,10 @@
+swtpm (0.7.1-1.4) unstable; urgency=medium
+
+ * Non-maintainer upload
+ * Don't hard-code dependency on shared library package (Closes: #1068602)
+
+ -- Bastian Germann <b...@debian.org> Sat, 20 Apr 2024 10:43:03 +0000
+
swtpm (0.7.1-1.3) unstable; urgency=medium
* Non-maintainer upload
diff -Nru swtpm-0.7.1/debian/control swtpm-0.7.1/debian/control
--- swtpm-0.7.1/debian/control 2023-05-18 17:30:13.000000000 +0000
+++ swtpm-0.7.1/debian/control 2024-04-20 10:41:02.000000000 +0000
@@ -49,7 +49,7 @@
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
-Depends: libglib2.0-0,
+Depends: ${lib:Depends},
libtpms0,
openssl,
${misc:Depends},
diff -Nru swtpm-0.7.1/debian/rules swtpm-0.7.1/debian/rules
--- swtpm-0.7.1/debian/rules 2023-05-18 15:10:10.000000000 +0000
+++ swtpm-0.7.1/debian/rules 2024-04-20 10:39:52.000000000 +0000
@@ -13,6 +13,9 @@
SWTPM_TEST_SECCOMP_OPT="--seccomp action=none" make -j4 check VERBOSE=1
endif
+override_dh_gencontrol:
+ dh_gencontrol -- -Vlib:Depends="$(shell dpkg-query -f '$${Depends}' -W
libglib2.0-dev | sed -E 's/.*(libglib2.0-0[[:alnum:]]+).*/\1/')"
+
override_dh_clean:
dh_clean --exclude=man/man8/swtpm-localca.8