Summary: | emulators/tpm-emulator: fail to run in arm64 due to improper getopt(3) use | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Phillip R. Jaenke <prj> | ||||
Component: | Individual Port(s) | Assignee: | Larry Rosenman <ler> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Many People | CC: | emaste, kevans, ler, linimon | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(hrs) |
||||
Version: | Latest | ||||||
Hardware: | arm64 | ||||||
OS: | Any | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 201763 | ||||||
Attachments: |
|
Description
Phillip R. Jaenke
2017-05-17 13:02:57 UTC
Created attachment 182663 [details]
Patch suitable for ${WRKSRC} and upstream submission
I have confirmed this patch resolves the issue. Port was built with patch added to files via qemu on poudriere system. tpm-emulator was reinstalled on test system and simple test performed. [root@ironhorn ~]# uname -a FreeBSD ironhorn.rootwyrm.pvt 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r313109M: Thu Feb 2 16:16:39 MST 2017 raspberry@hive.raspbsd.org:/usr/home/brd/rpi3/crochet/work/obj/arm64.aarch64/usr/src/sys/GENERIC arm64 [root@ironhorn ~]# service tpmd start Starting tpmd. tpmd.c:390: Info: starting TPM Emulator daemon (1.2.0.7-475) tpmd.c:93: Info: parsing options tpmd.c:164: Info: no startup mode was specified; asuming 'clear' tpmd.c:175: Info: switching effective group ID to 601 tpmd.c:182: Info: switching effective user ID to 601 tpmd.c:198: Info: installing signal handlers tpmd.c:220: Info: daemonizing process [root@ironhorn ~]# ps axuw | grep tpm _tss 3056 0.0 0.1 6800 1064 - Ss 13:33 0:00.42 /usr/local/bin/tpmd -o _tss -g _tss <trimmed 'pkg install trousers'> [root@ironhorn ~]# service tcsd start Starting tcsd. [root@ironhorn ~]# service tcsd status tcsd is running as pid 3084. Further research reveals that the tpm-emulator project has moved to github. The version on github is significantly newer and has already addressed this issue fully. https://github.com/PeterHuewe/tpm-emulator A commit references this bug: Author: ler Date: Sat Jun 3 21:56:26 UTC 2017 New revision: 442522 URL: https://svnweb.freebsd.org/changeset/ports/442522 Log: 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. Changes: head/emulators/tpm-emulator/Makefile head/emulators/tpm-emulator/files/patch-tpmd_unix_tpmd.c Committed, thanks! |