Skip to content

Commit 234159d

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Upgrade to macOS 14 and backport necessary changes
2 parents 9d29283 + 7ba4453 commit 234159d

File tree

4 files changed

+25
-21
lines changed

4 files changed

+25
-21
lines changed

.github/actions/brew/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ runs:
1111
code=" keg.link\(verbose: verbose\?"
1212
sudo sed -Ei '' "s/$code.*/$code, overwrite: true\)/" "$formula_installer"
1313
14+
# Some packages exist on x86 but not arm, or vice versa.
15+
# Install them with reinstall to avoid warnings.
16+
brew reinstall autoconf webp tidy-html5 libzip libsodium icu4c
1417
brew install \
1518
bison \
1619
re2c
1720
brew install \
21+
aspell \
1822
bzip2 \
1923
enchant \
2024
libffi \

.github/actions/configure-macos/action.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ runs:
1010
run: |
1111
set -x
1212
BREW_OPT="$(brew --prefix)"/opt
13-
export PATH="/usr/local/opt/bison/bin:$PATH"
14-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/[email protected]/lib/pkgconfig"
15-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/curl/lib/pkgconfig"
16-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/krb5/lib/pkgconfig"
17-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig"
18-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxml2/lib/pkgconfig"
19-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/libxslt/lib/pkgconfig"
20-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/zlib/lib/pkgconfig"
21-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig"
13+
export PATH="$BREW_OPT/bison/bin:$PATH"
14+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/[email protected]/lib/pkgconfig"
15+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/curl/lib/pkgconfig"
16+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/krb5/lib/pkgconfig"
17+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/libffi/lib/pkgconfig"
18+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/libxml2/lib/pkgconfig"
19+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/libxslt/lib/pkgconfig"
20+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/zlib/lib/pkgconfig"
21+
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/icu4c/lib/pkgconfig"
2222
sed -i -e 's/Requires.private:.*//g' "$BREW_OPT/curl/lib/pkgconfig/libcurl.pc"
2323
./buildconf --force
2424
./configure \
@@ -28,8 +28,8 @@ runs:
2828
--enable-fpm \
2929
--with-pdo-mysql=mysqlnd \
3030
--with-mysqli=mysqlnd \
31-
--with-pgsql=/usr/local/opt/libpq \
32-
--with-pdo-pgsql=/usr/local/opt/libpq \
31+
--with-pgsql="$BREW_OPT"/libpq \
32+
--with-pdo-pgsql="$BREW_OPT"/libpq \
3333
--with-pdo-sqlite \
3434
--without-pear \
3535
--enable-gd \
@@ -42,25 +42,25 @@ runs:
4242
--enable-soap \
4343
--enable-xmlreader \
4444
--with-xsl \
45-
--with-tidy=/usr/local/opt/tidy-html5 \
45+
--with-tidy="$BREW_OPT"/tidy-html5 \
4646
--with-libxml \
4747
--enable-sysvsem \
4848
--enable-sysvshm \
4949
--enable-shmop \
5050
--enable-pcntl \
51-
--with-readline=/usr/local/opt/readline \
51+
--with-readline="$BREW_OPT"/readline \
5252
--enable-mbstring \
5353
--with-curl \
54-
--with-gettext=/usr/local/opt/gettext \
54+
--with-gettext="$BREW_OPT"/gettext \
5555
--enable-sockets \
56-
--with-bz2=/usr/local/opt/bzip2 \
56+
--with-bz2="$BREW_OPT"/bzip2 \
5757
--with-openssl \
58-
--with-gmp=/usr/local/opt/gmp \
59-
--with-iconv=/usr/local/opt/libiconv \
58+
--with-gmp="$BREW_OPT"/gmp \
59+
--with-iconv="$BREW_OPT"/libiconv \
6060
--enable-bcmath \
6161
--enable-calendar \
6262
--enable-ftp \
63-
--with-pspell=/usr/local/opt/aspell \
63+
--with-pspell="$BREW_OPT"/aspell \
6464
--with-kerberos \
6565
--enable-sysvmsg \
6666
--with-ffi \

.github/actions/verify-generated-files/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ runs:
55
- shell: bash
66
run: |
77
set -x
8-
[[ "$OSTYPE" == "darwin"* ]] && export PATH="/usr/local/opt/bison/bin:$PATH"
8+
[[ "$OSTYPE" == "darwin"* ]] && export PATH="$(brew --prefix)/opt/bison/bin:$PATH"
99
scripts/dev/credits
1010
scripts/dev/genfiles
1111
Zend/zend_vm_gen.php

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
-d opcache.enable_cli=1
182182
MACOS_DEBUG_NTS:
183183
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
184-
runs-on: macos-13
184+
runs-on: macos-14
185185
steps:
186186
- name: git checkout
187187
uses: actions/checkout@v4
@@ -199,7 +199,7 @@ jobs:
199199
configurationParameters: --enable-debug --disable-zts
200200
- name: make
201201
run: |-
202-
export PATH="/usr/local/opt/bison/bin:$PATH"
202+
export PATH="$(brew --prefix)/opt/bison/bin:$PATH"
203203
make -j$(sysctl -n hw.logicalcpu) >/dev/null
204204
- name: make install
205205
run: sudo make install

0 commit comments

Comments
 (0)