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

Jonas Witschel diabonas at archlinux.org
Fri Nov 20 21:09:13 UTC 2020


    Date: Friday, November 20, 2020 @ 21:09:13
  Author: diabonas
Revision: 758130

upgpkg: tpm2-tss 3.0.2-2: fix bug leading to tpm2-pkcs11 test failures

Modified:
  tpm2-tss/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-20 21:08:54 UTC (rev 758129)
+++ PKGBUILD	2020-11-20 21:09:13 UTC (rev 758130)
@@ -2,7 +2,7 @@
 # Contributor: Bruno Pagani <archange at archlinux.org>
 pkgname=tpm2-tss
 pkgver=3.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Implementation of the TCG Trusted Platform Module 2.0 Software Stack (TSS2)'
 arch=('x86_64')
 url='https://github.com/tpm2-software/tpm2-tss'
@@ -15,13 +15,21 @@
         'etc/tpm2-tss/fapi-profiles/P_ECCP256SHA256.json'
         'etc/tpm2-tss/fapi-profiles/P_RSA2048SHA256.json')
 options=('!emptydirs')
-source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
+source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
+        'tpm2-tss-3.0.2_fix_rel_path_to_abs_path.patch::https://patch-diff.githubusercontent.com/raw/tpm2-software/tpm2-tss/pull/1914.patch')
 sha512sums=('0b295bb1a135c904344e8a11ae9a293f71d60ea045bacd59a9b778ba19e88e1b91022f24a4775615c215db450584574901838146bc4d4d286ee8b686b72b0bab'
-            'SKIP')
+            'SKIP'
+            '742c3ee9350c76ef0c38e2beec95ca48d44ad49b8ec14e8efd065b4e76a52b77ebcfc9855d12b7ef03c31857867ca65c40cd76032cab9e8f8cd91cd9b234d1ca')
 validpgpkeys=('D760B790CCF0A41CBE7B047C316CC1FB24ABDC72'  # Tadeusz Struk <tadeusz.struk at intel.com>
               'D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84'  # Andreas Fuchs <andreas.fuchs at sit.fraunhofer.de>
               '5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts at intel.com>
 
+prepare() {
+	cd "$pkgname-$pkgver"
+	# Fix a bug that leads to tpm2-pkcs11 test failures (https://github.com/tpm2-software/tpm2-tss/pull/1914)
+	patch --forward --strip=1 --input="$srcdir/tpm2-tss-3.0.2_fix_rel_path_to_abs_path.patch"
+}
+
 build() {
 	cd "$pkgname-$pkgver"
 	./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \



More information about the arch-commits mailing list