Skip to content

Commit 5d95946

Browse files
authored
Merge pull request Homebrew#195811 from Homebrew/php8.1-sonoma
[email protected]: apply MacPorts patch for Xcode 16
2 parents 1df3cca + 7ead152 commit 5d95946

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

Formula/p/[email protected]

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ class PhpAT81 < Formula
1414
end
1515

1616
bottle do
17-
sha256 arm64_sequoia: "bda07c54c481d4717807986dc68414e6afb99f212933b7c8ee40b677752db997"
18-
sha256 arm64_sonoma: "34c90ef7ec0014051e18a25da64df075b08f6c2b51c0c28f12921fce0a01ee39"
19-
sha256 arm64_ventura: "2ec9f47f5c3c3457f74541c5bc7cc5a0299f283c7bafe2d8db961fe22f43493a"
20-
sha256 sonoma: "8b63e3d897b33cc0b8c51bee88ac8bcb55cc801bae809fd685634693c23fee93"
21-
sha256 ventura: "c2749c7933dffc43ef5e517527f2b1e4730934dd30daabb93a225f1c7994a7ec"
22-
sha256 x86_64_linux: "3ed5dced786f4116d35f61c9996826a87939b1e47b467c4b9e0062ce73fae0cd"
17+
rebuild 1
18+
sha256 arm64_sequoia: "23cf3bc5ebd1d3dc66c479d05c22fdb36522310984ec39e279a44a5f8df477e3"
19+
sha256 arm64_sonoma: "16392221c41745036549edc449bbee442b1f7199ea004c58e819de555461fe74"
20+
sha256 arm64_ventura: "08e0899fd76cbacb919055715e9a3c72f62df5ac4f98b9ca2553421b68c29323"
21+
sha256 sonoma: "70a0e68ce92a5596f14eff638fe9428db6cd5c47ae235c12ee19bb40f18f1623"
22+
sha256 ventura: "e3383f67213aee2fe96bc25064d64f64575a79fc56a8fae520ffda971c1989d1"
23+
sha256 x86_64_linux: "70955a8694162c77ad819bf79128b19d806c5c5fa19db29b05255a99a628f8fd"
2324
end
2425

2526
keg_only :versioned_formula
@@ -62,6 +63,13 @@ class PhpAT81 < Formula
6263
uses_from_macos "zlib"
6364

6465
on_macos do
66+
# Apply MacPorts patch for Xcode 16. Upstream fix doesn't cleanly apply
67+
# Ref: https://github.com/php/php-src/commit/e2e2b3ab62686af85fb079a403b5dda75595f6dd
68+
patch do
69+
url "https://raw.githubusercontent.com/macports/macports-ports/f6c30c5b3a810d4154ab8c85bb23274baa020fe1/lang/php/files/patch-php81-zend_string_equal_val.diff"
70+
sha256 "382b1815dda418f539799c05674c3bfc22ec7e1da7494afd9f883938b4b3a1e2"
71+
end
72+
6573
# PHP build system incorrectly links system libraries
6674
# see https://github.com/php/php-src/issues/10680
6775
patch :DATA
@@ -349,7 +357,7 @@ def caveats
349357
assert_includes (bin/"php").dynamically_linked_libraries,
350358
(Formula["libpq"].opt_lib/shared_library("libpq", 5)).to_s
351359

352-
system "#{sbin}/php-fpm", "-t"
360+
system sbin/"php-fpm", "-t"
353361
system bin/"phpdbg", "-V"
354362
system bin/"php-cgi", "-m"
355363
# Prevent SNMP extension to be added

0 commit comments

Comments
 (0)