Skip to content

swtpm: new port, version 0.10.1 - #33885

Open
trodemaster wants to merge 1 commit into
macports:masterfrom
trodemaster:sysutils/swtpm-new-port
Open

swtpm: new port, version 0.10.1#33885
trodemaster wants to merge 1 commit into
macports:masterfrom
trodemaster:sysutils/swtpm-new-port

Conversation

@trodemaster

Copy link
Copy Markdown
Contributor

Description

New port: swtpm, a software TPM emulator based on libtpms. It
provides TPM 1.2 and TPM 2.0 emulation over a TCP/IP or Unix domain
socket interface, intended primarily for use with hypervisors such
as QEMU.

Depends on the libtpms port, which has not merged yet:
#33884

Tested on

macOS 26.6 25G70 arm64 / Command Line Tools 26.6.0.0.1781586589
macOS 27.0 26A5388g arm64 / Command Line Tools 27.0.0.0.1784267383

Verification

Have you

Comment thread sysutils/swtpm/Portfile Outdated
Comment thread sysutils/swtpm/Portfile Outdated
Comment thread sysutils/swtpm/Portfile Outdated
@barracuda156

Copy link
Copy Markdown
Contributor

@reneeotten Note, these ports were already submitted in #29634

Perhaps first consider merging that, unless the author does not respond at all.

trodemaster added a commit to trodemaster/blakeports that referenced this pull request Aug 5, 2026
* remove autoconf/automake/libtool from depends_build-append;
  use_autoreconf already adds them
* use path-style declaration for pkgconfig
* use path-style declaration for glib2 (swtpm only)

Per reneeotten review on macports/macports-ports#33885.
Software TPM emulator based on libtpms, providing TPM 1.2 and TPM
2.0 emulation over a TCP/IP or Unix domain socket interface,
intended primarily for use with hypervisors such as QEMU.
@trodemaster
trodemaster force-pushed the sysutils/swtpm-new-port branch from 0338c66 to 639cfdb Compare August 5, 2026 00:13
@trodemaster
trodemaster requested a review from reneeotten August 6, 2026 01:00
Comment thread sysutils/swtpm/Portfile
port:gmp

use_autoreconf yes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a compiler blacklist to allow building on legacy systems.

Suggested change
# clang: error: unrecognized command line option "-fstack-protector-strong"
compiler.blacklist-append \
*gcc.4.* {clang < 700}

Comment thread sysutils/swtpm/Portfile

PortSystem 1.0
PortGroup github 1.0
PortGroup openssl 1.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the legacysupport PortGroup to link with MacPort's clock_gettime to allow building on OSX < 10.11.

Suggested change
PortGroup openssl 1.0
PortGroup openssl 1.0
PortGroup legacysupport 1.1
# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants