Skip to content

Commit

Permalink
Try to fix support for icu 75.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 11, 2024
1 parent 6775955 commit 881a52b
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 41 deletions.
34 changes: 0 additions & 34 deletions patches/intl/intl-icu-75.1-php7.1-8.0.patch

This file was deleted.

1 change: 0 additions & 1 deletion patches/intl/series-php5.6
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ intl-icu-73.1-php5.6-8.0.patch
intl-icu-73.2-php5.6-8.0.patch
intl-icu-74.1-php5.6-8.0.patch
intl-icu-74.2-php5.6-8.0.patch
intl-icu-75.1-php5.6-7.0.patch
intl-icu-75.1-php5.6-8.0.patch
1 change: 0 additions & 1 deletion patches/intl/series-php7.1
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ intl-icu-73.1-php5.6-8.0.patch
intl-icu-73.2-php5.6-8.0.patch
intl-icu-74.1-php5.6-8.0.patch
intl-icu-74.2-php5.6-8.0.patch
intl-icu-75.1-php7.1-8.0.patch
intl-icu-75.1-php5.6-8.0.patch
1 change: 0 additions & 1 deletion patches/intl/series-php7.2
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ intl-icu-73.1-php5.6-8.0.patch
intl-icu-73.2-php5.6-8.0.patch
intl-icu-74.1-php5.6-8.0.patch
intl-icu-74.2-php5.6-8.0.patch
intl-icu-75.1-php7.1-8.0.patch
intl-icu-75.1-php5.6-8.0.patch
1 change: 0 additions & 1 deletion patches/intl/series-php7.3
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ intl-icu-73.1-php5.6-8.0.patch
intl-icu-73.2-php5.6-8.0.patch
intl-icu-74.1-php5.6-8.0.patch
intl-icu-74.2-php5.6-8.0.patch
intl-icu-75.1-php7.1-8.0.patch
intl-icu-75.1-php5.6-8.0.patch
1 change: 0 additions & 1 deletion patches/intl/series-php7.4
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ intl-icu-73.2-php5.6-8.0.patch
intl-icu-74.1-php5.6-8.0.patch
intl-icu-74.2-php5.6-8.0.patch
intl-icu-75.1-php7.4-8.1.patch
intl-icu-75.1-php5.6-8.0.patch
5 changes: 3 additions & 2 deletions src/build-intl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ install_intl() {
while read patch || [[ $patch ]]; do
[[ "$patch" =~ $ICU ]] && patch -d /tmp/php-src -N -p1 -s < "patches/intl/$patch"
done < patches/intl/series-php"$VERSION"
cd "/tmp/php-src/ext/intl" || exit 1
cd "/tmp/php-src/ext/intl" || exit 1
phpize && sudo ./configure --with-php-config="$(command -v php-config)" --enable-intl
echo "#define FALSE 0" >> config.h
echo "#define TRUE 1" >> config.h
make CXXFLAGS="-O2 -std=c++11 -DU_USING_ICU_NAMESPACE=1 -DTRUE=1 -DFALSE=0 $CXXFLAGS"
[[ "${ICU%.*}" -ge 75 ]] && CXX=17 || CXX=11
make CXXFLAGS="-O2 -std=c++$CXX -DU_USING_ICU_NAMESPACE=1 -DTRUE=1 -DFALSE=0 $CXXFLAGS"
sudo cp ./modules/* "$ext_dir/"
enable_extension intl extension
)
Expand Down

0 comments on commit 881a52b

Please sign in to comment.