[arch-commits] Commit in tpm2-tools/trunk (PKGBUILD)

Jonas Witschel diabonas at archlinux.org
Tue Nov 24 14:20:16 UTC 2020


    Date: Tuesday, November 24, 2020 @ 14:20:16
  Author: diabonas
Revision: 760909

Fix test failure with tpm2-tss 3.0.2

The tpm2-tss 3.0.2 release unearthed a bug in the tpm2-tools test suite. Only
the code of an integration test is affected, so no new package release is
necessary.

Modified:
  tpm2-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-24 14:01:07 UTC (rev 760908)
+++ PKGBUILD	2020-11-24 14:20:16 UTC (rev 760909)
@@ -11,12 +11,21 @@
          'libtss2-mu.so' 'libtss2-rc.so' 'libtss2-sys.so' 'libtss2-tctildr.so')
 checkdepends=('cmocka' 'expect' 'ibm-sw-tpm2' 'iproute2' 'python-yaml' 'tpm2-abrmd' 'xxd')
 optdepends=('tpm2-abrmd: user space resource manager')
-source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
+source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
+        "tpm2-tools-5.0_fix_tests_with_tpm2-tss-3.0.2.patch::$url/commit/0db78069d9a384b33fd4c412f852a85ccf0c3733.patch")
 sha512sums=('ea57a28a61e28b78cae7067ff58facd8754fafab7a2689fd93f8b3374073b6ac30301a75f8ff5c654800ab469ee6604d0b8a86c310631b9545b816ecaa05968e'
-            'SKIP')
+            'SKIP'
+            '8b73e3d568485efb96900f6a5a7e36c950a9e18a8131f7a5c46ed6031f9c177062b6e7126a6bdc6ca63f9dc8a4bc2207439b114dec11b9f52d105fc62ad6c2bc')
 validpgpkeys=('5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1'  # William Roberts (Bill Roberts) <william.c.roberts at intel.com>
               '6313E6DC41AAFC315A8760A414986F6944B1F72B') # Desai, Imran (idesai-github-gpg) <imran.desai at intel.com>
 
+prepare() {
+	cd "$pkgname-$pkgver"
+	# Fix test failure with tpm2-tss 3.0.2 (https://github.com/tpm2-software/tpm2-tools/pull/2268)
+	patch --forward --strip=1 --input="$srcdir/tpm2-tools-5.0_fix_tests_with_tpm2-tss-3.0.2.patch"
+	./bootstrap
+}
+
 build() {
 	cd "$pkgname-$pkgver"
 	./configure --prefix=/usr $( ((CHECKFUNC)) && echo --enable-unit)



More information about the arch-commits mailing list