What changed, and why it matters
This commit only updates build instructions and a Makefile for compiling the COLDCARD simulator on macOS. It removes a hardcoded PKG_CONFIG_PATH workaround and updates the README to tell users to install pkgconf and libffi themselves. There is no change to firmware code, wallet logic, cryptography, or anything that handles secrets or transactions.
No security action required. Treat as routine build documentation/maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff removes an exported PKG_CONFIG_PATH override from unix/Makefile and revises unix/README.md macOS build guidance. It is a build-system/documentation hygiene change for the Unix simulator port. No source files affecting runtime behavior, secure boot, key handling, or communication protocols are modified.
Changed components
unix/Makefileunix/README.mdInspect captured patch +5 / −10
diff --git a/unix/Makefile b/unix/Makefile
index fd3429a..130ed3a 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -7,9 +7,6 @@ MPY_TOP = ../external/micropython
PORT_TOP = $(MPY_TOP)/ports/unix
V=0
-# bugfix for my Mac at least
-export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
-
CC_TOP := $(realpath ..)
MAKE_ARGS = -j 4 VARIANT=coldcard-mpy VARIANT_DIR=$(PWD)/variant CC_TOP=$(CC_TOP) DEBUG=1
diff --git a/unix/README.md b/unix/README.md
index c3a122d..963426d 100644
--- a/unix/README.md
+++ b/unix/README.md
@@ -85,19 +85,17 @@ See `variant/sim_settings.py` for the details of settings-related options.
- uses good old `xterm` for console input and output
- this directory has additional `requirements.txt` (a superset of other requirements of the project)
-- run "brew install sdl2" before/after doing python requirements
+- run "brew install sdl2" before doing python requirements
- run "make setup" then "make"
- then "./simulator.py"
# MacOS building
- Follow instructions on <https://github.com/micropython/micropython>
-- probably: `brew install libffi` if not already present
-- to get `pkg-config libffi` to output useful things, need this:
-
- setenv PKG_CONFIG_PATH /usr/local/opt/libffi/lib/pkgconfig
-
-- but that's in the Makefile now
+- probably: `brew install pkgconf libffi` if not already present
+- It used to be that to get `pkg-config libffi` to output useful
+ things, your needed this:
+ `setenv PKG_CONFIG_PATH /usr/local/opt/libffi/lib/pkgconfig`
# Other OS
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.