1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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.
This commit is contained in:
Larry Rosenman 2017-06-03 21:56:25 +00:00
parent 7b4e221f99
commit 8c5cf0c48c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442522
2 changed files with 12 additions and 1 deletions

View File

@ -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}

View File

@ -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();