[arch-commits] Commit in ibm-sw-tpm2/trunk (PKGBUILD)
Jonas Witschel
diabonas at archlinux.org
Thu May 28 20:33:11 UTC 2020
Date: Thursday, May 28, 2020 @ 20:33:11
Author: diabonas
Revision: 636676
upgpkg: ibm-sw-tpm2 1628-2: increase NV memory
Version 1628 enabled RSA 3072 objects, which need more storage space, without
increasing the available memory. As a result, only three objects can be
persisted (the previous version 1563 could store up to five objects), which
causes issues with the current master branch of the tpm2-pkcs11 test suite. The
memory size is a configurable option that must be set a compile time.
Modified:
ibm-sw-tpm2/trunk/PKGBUILD
----------+
PKGBUILD | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-28 20:32:27 UTC (rev 636675)
+++ PKGBUILD 2020-05-28 20:33:11 UTC (rev 636676)
@@ -2,14 +2,16 @@
# Contributor: Bruno Pagani <archange at archlinux.org>
pkgname=ibm-sw-tpm2
pkgver=1628
-pkgrel=1
+pkgrel=2
pkgdesc='Implementation of the TCG Trusted Platform Module 2.0 specification'
arch=('x86_64')
url='https://sourceforge.net/projects/ibmswtpm2/'
license=('BSD')
depends=('openssl')
-source=("https://downloads.sourceforge.net/${pkgname//-}/ibmtpm$pkgver.tar.gz")
-sha512sums=('ab47caa4406ba57c0afc6fadae304fc9ef5e3e125be0f2fb1955a419cf93cd5e9176e103f0b566825abc16cca00b795f98d2b407f0a2bf7b141ef4b025d907d0')
+source=("https://downloads.sourceforge.net/${pkgname//-}/ibmtpm$pkgver.tar.gz"
+ "ibm-sw-tpm2-1628-increase-nv-memory.patch::https://github.com/kgoldman/ibmswtpm2/commit/3e535e65e307ef9ce02d87993e98ec5dbf7e6dc2.patch")
+sha512sums=('ab47caa4406ba57c0afc6fadae304fc9ef5e3e125be0f2fb1955a419cf93cd5e9176e103f0b566825abc16cca00b795f98d2b407f0a2bf7b141ef4b025d907d0'
+ '6fd3319f7f3a1aa56af1964a8e4ccb211240232035910c4cdc1738b3c9787ba619dcbdffdae4a9dda1c853de734a176fb87c9b51b076b9c89e253f2ce2adf355')
prepare() {
sed -e 's|$(CCFLAGS)|& $(CFLAGS)|' \
@@ -16,6 +18,9 @@
-e 's|$(LNFLAGS)|& $(LDFLAGS)|' \
-e 's|-Werror ||' -e 's|-ggdb -O0||' \
-i src/makefile
+
+ # Increase NV memory (https://github.com/kgoldman/ibmswtpm2/pull/4)
+ patch --strip=1 --input="$srcdir/ibm-sw-tpm2-1628-increase-nv-memory.patch"
}
build() {
More information about the arch-commits
mailing list