Skip to content

macOS: require openssl@4, name missing Homebrew dylibs in install.sh - #616

Merged
blacktrs merged 2 commits into
mainfrom
fix/macos-openssl4
Nov 10, 2026
Merged

blacktrs merged 2 commits into
mainfrom
fix/macos-openssl4

Conversation

@blacktrs

@blacktrs blacktrs commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Published macOS builds link Homebrew's openssl@4 (/opt/homebrew/opt/openssl@4/lib/libssl.4.dylib): pkg-config on the runner resolves @4, although the workflow installs @3. README, docs/install.md, install.sh hints and manticore doctor all said brew install openssl@3. A user with only @3 gets a compiler that dyld kills before main, and install.sh reports only "failed its smoke test". Reported by a user.

Changes

  • CI, release, README, install docs, install.sh, doctor: openssl@3 → openssl@4.
  • openssl_link_flags() and tools/link_stubs.sh: the no-pkg-config fallback tries openssl@4, then openssl@3.
  • install.sh: before the smoke test on macOS, reads otool -L of the downloaded compiler and names every missing Homebrew dylib's formula (brew install openssl@4).
  • Docs: Homebrew install section (manticorephp/homebrew-tap, which bumps itself on a schedule with its own token — no secret here), coexistence with install.sh.

Verification

  • The v0.18.0 macOS tarball, in the formula's layout, compiles and runs preg/hmac/mbstring/ICU/PDO sqlite/DOM/curl programs identically to Zend.
  • install.sh missing-dylib detection exercised against a non-existent formula path.
  • src/ change is a two-line fallback loop; needs the normal CI build.

… update the Homebrew tap on release

Published macOS builds link Homebrew's openssl@4 (what pkg-config resolves on the
runner), while docs, doctor and install.sh told users to install openssl@3: on a host
with only @3 the compiler dies in dyld before main and install.sh reports a bare
smoke-test failure. Install and recommend openssl@4 everywhere, keep @3 as the
link-flag fallback, have install.sh name the missing brew formulae from otool -L, and
add a tag-only release step that points manticorephp/homebrew-tap at the new build.
@blacktrs blacktrs changed the title macOS: require openssl@4; Homebrew tap updated on release macOS: require openssl@4, name missing Homebrew dylibs in install.sh Nov 10, 2026
@blacktrs
blacktrs merged commit 1f95ad3 into main Nov 10, 2026
58 checks passed
@blacktrs
blacktrs deleted the fix/macos-openssl4 branch November 10, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant