libtpms: new port, version 0.10.2 - #33884
Open
trodemaster wants to merge 1 commit into
Open
Conversation
6 tasks
barracuda156
suggested changes
Aug 4, 2026
barracuda156
reviewed
Aug 4, 2026
Contributor
There was a problem hiding this comment.
P. S. If someone cares about this working on older macOS, pick fixes from macos-powerpc/powerpc-ports@2772b2b
P. S. Let me check if those flags are still relevant.
Upd. Flags that I had in my portfile to downgrade errors to warnings are NOT needed with 0.10.2.
P. P. S. The port was submitted earlier in #29634
Library for software emulation of a Trusted Platform Module (TPM). libtpms provides TPM 1.2 and TPM 2.0 functionality for integrating TPM emulation into hypervisors, primarily QEMU, via the swtpm software TPM emulator.
trodemaster
force-pushed
the
security/libtpms-new-port
branch
from
August 5, 2026 00:13
9ed15cc to
994c65e
Compare
trodemaster
added a commit
to trodemaster/blakeports
that referenced
this pull request
Aug 5, 2026
Matches the amended macports/macports-ports#33884 per barracuda156's review comment.
Contributor
|
@trodemaster Since MacPorts supports "older" platforms, there are more changes you should take into account given @barracuda156's suggetion. Tested on macOS 10.7.5 11G63 x86_64 Xcode 4.6.3 4H1503. Essentially
diff --git a/security/libtpms/Portfile b/security/libtpms/Portfile
index 6b262e80225..2c07a72ebc9 100644
--- a/security/libtpms/Portfile
+++ b/security/libtpms/Portfile
@@ -3,6 +3,10 @@
PortSystem 1.0
PortGroup github 1.0
PortGroup openssl 1.0
+PortGroup legacysupport 1.1
+
+# clock_gettime
+legacysupport.newest_darwin_requires_legacy 15
github.setup stefanberger libtpms 0.10.2 v
github.tarball_from archive
@@ -28,6 +32,12 @@ depends_build-append \
use_autoreconf yes
+# clang: error: unrecognized command line option "-fstack-protector-strong"
+# VerifyConfiguration.h:72: error: expected declaration specifiers or '...' before '(' token
+compiler.blacklist-append \
+ *gcc-4.* {clang < 700}
+
configure.args-append \
--with-openssl \
- --with-tpm2
+ --with-tpm2 \
+ --disable-silent-rules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
New port: libtpms, a library for software emulation of a Trusted
Platform Module (TPM). It provides TPM 1.2 and TPM 2.0 functionality
for integrating TPM emulation into hypervisors, primarily QEMU, via
the swtpm software TPM emulator.
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
port lint?sudo port -vs install?