diff -Nru tpm2-tss-3.2.0/debian/changelog tpm2-tss-3.2.0/debian/changelog --- tpm2-tss-3.2.0/debian/changelog 2022-02-22 18:27:42.000000000 +0100 +++ tpm2-tss-3.2.0/debian/changelog 2022-03-01 15:25:56.000000000 +0100 @@ -1,3 +1,10 @@ +tpm2-tss (3.2.0-0ubuntu2) jammy; urgency=medium + + * d/p/0002-fix-version.patch: Fix the version detection code to work + with tarballs (LP: #1962583) + + -- Simon Chopin Tue, 01 Mar 2022 15:25:56 +0100 + tpm2-tss (3.2.0-0ubuntu1) jammy; urgency=medium * New upstream release (LP: #1958439) diff -Nru tpm2-tss-3.2.0/debian/patches/0002-fix-version.patch tpm2-tss-3.2.0/debian/patches/0002-fix-version.patch --- tpm2-tss-3.2.0/debian/patches/0002-fix-version.patch 1970-01-01 01:00:00.000000000 +0100 +++ tpm2-tss-3.2.0/debian/patches/0002-fix-version.patch 2022-03-01 15:25:55.000000000 +0100 @@ -0,0 +1,19 @@ +Description: Extract the version from the Debian changelog + Upstream uses the VCS to get the correct version in the build system, but we're using tarballs. + This patch uses a similar mechanism but extracts the version from the packaging instead. +Author: Simon Chopin +Forwarded: not-needed +Last-Update: 2022-03-01 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/configure.ac ++++ b/configure.ac +@@ -4,7 +4,7 @@ + # All rights reserved. + + AC_INIT([tpm2-tss], +- [m4_esyscmd_s([git describe --tags --always --dirty])], ++ [m4_esyscmd_s([dpkg-parsechangelog -S Version | sed 's/\(.*\)-[^-]*/\1/'])], + [https://github.com/tpm2-software/tpm2-tss/issues], + [], + [https://github.com/tpm2-software/tpm2-tss]) diff -Nru tpm2-tss-3.2.0/debian/patches/series tpm2-tss-3.2.0/debian/patches/series --- tpm2-tss-3.2.0/debian/patches/series 2022-02-22 18:27:42.000000000 +0100 +++ tpm2-tss-3.2.0/debian/patches/series 2022-03-01 15:20:16.000000000 +0100 @@ -1 +1,2 @@ 0001_disable_fapi_io_test.patch +0002-fix-version.patch