Skip to content

Commit 0ca05c2

Browse files
authored
Merge pull request #40 from sminnee/fix-74-again
Fix 7.4 (and 7.2) builds
2 parents 2556f07 + 8dbd57d commit 0ca05c2

5 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ install:
8585
- ./bin/install-libsodium
8686
- ./bin/install-password-argon2
8787
- . ./bin/install-onig # sourced to export ONIG_LIBS
88+
- MINOR_VERSION=`echo $VERSION | sed -E 's/^([0-9]+\.[0-9]+).*$/\1/'` # Rewrites 7.2, 7.2snapshot, 7.2.13 => '7.2'. Leaves 'master' as-is
8889
- |
89-
if [[ -f default_configure_options.$RELEASE-${VERSION%*.*} ]]; then
90-
cp default_configure_options.$RELEASE-${VERSION%*.*} $HOME/.php-build/share/php-build/default_configure_options
90+
if [[ -f default_configure_options.$RELEASE-$MINOR_VERSION ]]; then
91+
cp default_configure_options.$RELEASE-$MINOR_VERSION $HOME/.php-build/share/php-build/default_configure_options
9192
else
9293
cp default_configure_options.$RELEASE $HOME/.php-build/share/php-build/default_configure_options
9394
fi

default_configure_options.trusty-7.4snapshot renamed to default_configure_options.trusty-7.4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--with-jpeg
66
--with-freetype
77
--enable-exif
8-
--enable-zip
8+
--with-zip
99
--with-zlib
1010
--with-zlib-dir=/usr
1111
--with-pdo-sqlite

default_configure_options.trusty-master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--with-jpeg
66
--with-freetype
77
--enable-exif
8-
--enable-zip
8+
--with-zip
99
--with-zlib
1010
--with-zlib-dir=/usr
1111
--with-pdo-sqlite

default_configure_options.xenial-7.4snapshot renamed to default_configure_options.xenial-7.4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--with-jpeg
66
--with-freetype
77
--enable-exif
8-
--enable-zip
8+
--with-zip
99
--with-zlib
1010
--with-zlib-dir=/usr
1111
--with-pdo-sqlite

default_configure_options.xenial-master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--with-jpeg
66
--with-freetype
77
--enable-exif
8-
--enable-zip
8+
--with-zip
99
--with-zlib
1010
--with-zlib-dir=/usr
1111
--with-pdo-sqlite

0 commit comments

Comments
 (0)