From 8c5cf0c48ce849524b7b39232e335c267dc2186a Mon Sep 17 00:00:00 2001 From: Larry Rosenman Date: Sat, 3 Jun 2017 21:56:25 +0000 Subject: [PATCH] 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 Approved by: maintainer timeout. --- emulators/tpm-emulator/Makefile | 2 +- emulators/tpm-emulator/files/patch-tpmd_unix_tpmd.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 emulators/tpm-emulator/files/patch-tpmd_unix_tpmd.c 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();