aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorler <ler@FreeBSD.org>2017-06-04 05:56:25 +0800
committerler <ler@FreeBSD.org>2017-06-04 05:56:25 +0800
commitbc2c429ce3f57d4797d79e9ab73c79a21e4f8058 (patch)
treead9a399944bd68fd3e8a8f97374232bd309c0524 /emulators
parent8af3d00b0b1770dbdffec52496fb24cc28b9b52f (diff)
downloadfreebsd-ports-gnome-bc2c429ce3f57d4797d79e9ab73c79a21e4f8058.tar.gz
freebsd-ports-gnome-bc2c429ce3f57d4797d79e9ab73c79a21e4f8058.tar.zst
freebsd-ports-gnome-bc2c429ce3f57d4797d79e9ab73c79a21e4f8058.zip
emulators/tpm-emulator: fail to run in arm64 due to improper getopt(3) use
Add patch to fix it. PR: 219352 Submitted by: Phillip R. Jaenke <prj@rootwyrm.com> Approved by: maintainer timeout.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/tpm-emulator/Makefile2
-rw-r--r--emulators/tpm-emulator/files/patch-tpmd_unix_tpmd.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/emulators/tpm-emulator/Makefile b/emulators/tpm-emulator/Makefile
index 5c1870085b4f..909aff9d1d43 100644
--- a/emulators/tpm-emulator/Makefile
+++ b/emulators/tpm-emulator/Makefile
@@ -3,7 +3,7 @@
PORTNAME= tpm-emulator
PORTVERSION= 0.7.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= emulators security
MASTER_SITES= SF/${PORTNAME}.berlios
DISTNAME= ${PORTNAME:S,-,_,}-${PORTVERSION}
diff --git a/emulators/tpm-emulator/files/patch-tpmd_unix_tpmd.c b/emulators/tpm-emulator/files/patch-tpmd_unix_tpmd.c
new file mode 100644
index 000000000000..30711fd64e86
--- /dev/null
+++ b/emulators/tpm-emulator/files/patch-tpmd_unix_tpmd.c
@@ -0,0 +1,11 @@
+--- tpmd/unix/tpmd.c.orig 2011-12-20 18:30:06 UTC
++++ tpmd/unix/tpmd.c
+@@ -85,7 +85,7 @@ static void print_usage(char *name)
+
+ static void parse_options(int argc, char **argv)
+ {
+- char c;
++ int c;
+ struct passwd *pwd;
+ struct group *grp;
+ opt_uid = getuid();