@@ -164,7 +164,7 @@ jobs:
164
164
freetype \
165
165
oniguruma \
166
166
libzip \
167
- postgresql@15 \
167
+ postgresql@17 \
168
168
readline \
169
169
bzip2 \
170
170
gmp \
@@ -173,7 +173,8 @@ jobs:
173
173
icu4c \
174
174
libsodium \
175
175
zlib \
176
- libiconv
176
+ libiconv \
177
+ gettext
177
178
178
179
# Verify readline installation
179
180
echo "Checking readline installation:"
@@ -182,23 +183,30 @@ jobs:
182
183
183
184
# Verify PostgreSQL installation
184
185
echo "Checking PostgreSQL installation:"
185
- ls -la $(brew --prefix postgresql@15 )/include/libpq-fe.h || echo "libpq-fe.h not found in expected location"
186
- ls -la $(brew --prefix postgresql@15 )/lib/libpq.* || echo "libpq not found in expected location"
186
+ ls -la $(brew --prefix postgresql@17 )/include/libpq-fe.h || echo "libpq-fe.h not found in expected location"
187
+ ls -la $(brew --prefix postgresql@17 )/lib/libpq.* || echo "libpq not found in expected location"
187
188
which pg_config || echo "pg_config not found in PATH"
188
189
189
190
# Verify bzip2 installation
190
191
echo "Checking bzip2 installation:"
191
192
ls -la $(brew --prefix bzip2)/include/bzlib.h || echo "bzlib.h not found in expected location"
192
193
ls -la $(brew --prefix bzip2)/lib/libbz2.* || echo "libbz2 not found in expected location"
193
194
194
- # Create symlinks to help PHP find readline and bzip2
195
- echo "Creating symlinks for readline and bzip2:"
195
+ # Verify gettext installation
196
+ echo "Checking gettext installation:"
197
+ ls -la $(brew --prefix gettext)/include/libintl.h || echo "libintl.h not found in expected location"
198
+ ls -la $(brew --prefix gettext)/lib/libintl.* || echo "libintl not found in expected location"
199
+
200
+ # Create symlinks to help PHP find readline, bzip2, and gettext
201
+ echo "Creating symlinks for readline, bzip2, and gettext:"
196
202
sudo mkdir -p /usr/local/include/readline /usr/local/lib
197
203
sudo ln -sf $(brew --prefix readline)/include/readline/readline.h /usr/local/include/readline/readline.h
198
204
sudo ln -sf $(brew --prefix readline)/include/readline/history.h /usr/local/include/readline/history.h
199
205
sudo ln -sf $(brew --prefix readline)/lib/libreadline.* /usr/local/lib/
200
206
sudo ln -sf $(brew --prefix bzip2)/include/bzlib.h /usr/local/include/bzlib.h
201
207
sudo ln -sf $(brew --prefix bzip2)/lib/libbz2.* /usr/local/lib/
208
+ sudo ln -sf $(brew --prefix gettext)/include/libintl.h /usr/local/include/libintl.h
209
+ sudo ln -sf $(brew --prefix gettext)/lib/libintl.* /usr/local/lib/
202
210
203
211
- name : Create build configuration
204
212
run : |
@@ -232,10 +240,11 @@ jobs:
232
240
if : matrix.platform == 'darwin'
233
241
run : |
234
242
# Set paths for Homebrew dependencies including keg-only packages
235
- echo "PKG_CONFIG_PATH=$(brew --prefix)/lib/pkgconfig:$(brew --prefix openssl@3)/lib/pkgconfig:$(brew --prefix libxml2)/lib/pkgconfig:$(brew --prefix icu4c)/lib/pkgconfig:$(brew --prefix zlib)/lib/pkgconfig:$(brew --prefix postgresql@15)/lib/pkgconfig:$(brew --prefix bzip2)/lib/pkgconfig" >> $GITHUB_ENV
236
- echo "PATH=$(brew --prefix bison)/bin:$(brew --prefix)/bin:$(brew --prefix postgresql@15)/bin:$PATH" >> $GITHUB_ENV
237
- echo "LDFLAGS=-L$(brew --prefix)/lib -L$(brew --prefix openssl@3)/lib -L$(brew --prefix zlib)/lib -L$(brew --prefix libiconv)/lib -L$(brew --prefix postgresql@15)/lib -L$(brew --prefix bzip2)/lib" >> $GITHUB_ENV
238
- echo "CPPFLAGS=-I$(brew --prefix)/include -I$(brew --prefix openssl@3)/include -I$(brew --prefix zlib)/include -I$(brew --prefix libiconv)/include -I$(brew --prefix postgresql@15)/include -I$(brew --prefix bzip2)/include" >> $GITHUB_ENV
243
+ echo "PKG_CONFIG_PATH=$(brew --prefix)/lib/pkgconfig:$(brew --prefix openssl@3)/lib/pkgconfig:$(brew --prefix libxml2)/lib/pkgconfig:$(brew --prefix icu4c)/lib/pkgconfig:$(brew --prefix zlib)/lib/pkgconfig:$(brew --prefix postgresql@17)/lib/pkgconfig:$(brew --prefix bzip2)/lib/pkgconfig:$(brew --prefix gettext)/lib/pkgconfig" >> $GITHUB_ENV
244
+ echo "PATH=$(brew --prefix bison)/bin:$(brew --prefix)/bin:$(brew --prefix postgresql@17)/bin:$(brew --prefix gettext)/bin:$PATH" >> $GITHUB_ENV
245
+ echo "LDFLAGS=-L$(brew --prefix)/lib -L$(brew --prefix openssl@3)/lib -L$(brew --prefix zlib)/lib -L$(brew --prefix libiconv)/lib -L$(brew --prefix postgresql@17)/lib -L$(brew --prefix bzip2)/lib -L$(brew --prefix gettext)/lib" >> $GITHUB_ENV
246
+ echo "CPPFLAGS=-I$(brew --prefix)/include -I$(brew --prefix openssl@3)/include -I$(brew --prefix zlib)/include -I$(brew --prefix libiconv)/include -I$(brew --prefix postgresql@17)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix gettext)/include" >> $GITHUB_ENV
247
+ echo "CXXFLAGS=-std=c++11" >> $GITHUB_ENV
239
248
240
249
# Set readline-specific paths
241
250
echo "READLINE_CFLAGS=-I$(brew --prefix readline)/include" >> $GITHUB_ENV
@@ -270,14 +279,18 @@ jobs:
270
279
export LIBS="$LIBS -lreadline"
271
280
272
281
# Set PostgreSQL environment variables and PATH
273
- export PGSQL_CFLAGS="-I$(brew --prefix postgresql@15 )/include"
274
- export PGSQL_LIBS="-L$(brew --prefix postgresql@15 )/lib -lpq"
275
- export PATH="$(brew --prefix postgresql@15 )/bin:$PATH"
282
+ export PGSQL_CFLAGS="-I$(brew --prefix postgresql@17 )/include"
283
+ export PGSQL_LIBS="-L$(brew --prefix postgresql@17 )/lib -lpq"
284
+ export PATH="$(brew --prefix postgresql@17 )/bin:$PATH"
276
285
277
286
# Set bzip2 environment variables
278
287
export BZIP2_CFLAGS="-I$(brew --prefix bzip2)/include"
279
288
export BZIP2_LIBS="-L$(brew --prefix bzip2)/lib -lbz2"
280
289
290
+ # Set gettext environment variables
291
+ export GETTEXT_CFLAGS="-I$(brew --prefix gettext)/include"
292
+ export GETTEXT_LIBS="-L$(brew --prefix gettext)/lib -lintl"
293
+
281
294
# Try to find readline.h and set the path explicitly
282
295
READLINE_PATH=$(brew --prefix readline)
283
296
if [[ -f "$READLINE_PATH/include/readline/readline.h" ]]; then
@@ -289,13 +302,15 @@ jobs:
289
302
fi
290
303
291
304
# Check if PostgreSQL is available and working
292
- if which pg_config >/dev/null 2>&1 && [[ -f "$(brew --prefix postgresql@15 )/include/libpq-fe.h" ]]; then
305
+ if which pg_config >/dev/null 2>&1 && [[ -f "$(brew --prefix postgresql@17 )/include/libpq-fe.h" ]]; then
293
306
echo "PostgreSQL found and working"
294
307
else
295
308
echo "PostgreSQL not found or not working, will disable PostgreSQL support"
296
309
# Remove PostgreSQL extensions from CONFIGURE_EXTENSIONS
297
310
export CONFIGURE_EXTENSIONS=$(echo "$CONFIGURE_EXTENSIONS" | sed 's/--with-pdo-pgsql//g' | sed 's/--with-pgsql//g' | sed 's/ */ /g')
298
311
echo "Updated CONFIGURE_EXTENSIONS: $CONFIGURE_EXTENSIONS"
312
+ # Also disable PostgreSQL in the configuration
313
+ EXTRA_CONFIG="$EXTRA_CONFIG --disable-pgsql --disable-pdo-pgsql"
299
314
fi
300
315
else
301
316
# On Linux, use system-installed libraries
0 commit comments