Skip to content

Commit

Permalink
Use system libsqlite on heroku-16 and heroku-18
Browse files Browse the repository at this point in the history
  • Loading branch information
dzuelke committed Feb 28, 2020
1 parent 166644c commit ec6572d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Use system libc-client for IMAP extension [David Zuelke]
- Use system libmcrypt on all stacks [David Zuelke]
- Use system libzip on heroku-16 and heroku-18 stacks [David Zuelke]
- Use system libsqlite on heroku-16 and heroku-18 stacks [David Zuelke]

## v171 (2020-02-11)

Expand Down
9 changes: 6 additions & 3 deletions support/build/php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ fi
needed=( libgmp-dev libpam0g-dev libc-client2007e-dev libicu-dev libsasl2-dev libkrb5-dev libldap2-dev )
if [[ $STACK != "cedar-14" ]]; then
needed+=( libsodium-dev libsqlite3-dev libzip-dev )
sqlite_prefix="/usr"
else
sqlite_prefix=
fi
if [[ $STACK != "cedar-14" && $STACK != "heroku-16" ]]; then
needed+=( libwebp-dev )
Expand Down Expand Up @@ -104,12 +107,14 @@ configureopts=()
if [[ $dep_version == 7.* ]]; then
if [[ $dep_version == 7.[0-3].* ]]; then
configureopts+=("--enable-opcache-file" "--enable-zip")
configureopts+=("--with-sqlite3=shared${sqlite_prefix:+","}${sqlite_prefix}" "--with-pdo-sqlite=shared${sqlite_prefix:+","}${sqlite_prefix}")
configureopts+=("--with-gd=shared" "--with-freetype-dir=/usr" "--with-jpeg-dir=/usr" "--with-png-dir=/usr") # for ext-gd
if [[ $STACK != "cedar-14" && $STACK != "heroku-16" ]]; then
configureopts+=("--with-webp-dir=/usr") # for ext-gd
fi
else
configureopts+=("--with-zip" "--disable-mbregex") # we do not have libonig
configureopts+=("--with-sqlite3=shared" "--with-pdo-sqlite=shared")
configureopts+=("--enable-gd=shared" "--with-freetype" "--with-jpeg") # for ext-gd
if [[ $STACK != "cedar-14" && $STACK != "heroku-16" ]]; then
configureopts+=("--with-webp") # for ext-gd
Expand All @@ -127,7 +132,7 @@ if [[ $dep_version == 7.* ]]; then
fi
fi
else
configureopts+=("--with-gd=shared" "--with-freetype-dir=/usr" "--with-jpeg-dir=/usr" "--with-png-dir=/usr" "--with-mcrypt" "--with-mysql=shared" "--enable-zip")
configureopts+=("--with-gd=shared" "--with-freetype-dir=/usr" "--with-jpeg-dir=/usr" "--with-png-dir=/usr" "--with-mcrypt" "--with-mysql=shared" "--enable-zip" "--with-sqlite3=shared${sqlite_prefix:+","}${sqlite_prefix}" "--with-pdo-sqlite=shared${sqlite_prefix:+","}${sqlite_prefix}")
fi
if [[ $STACK == "cedar-14" ]]; then
configureopts+=("--without-libzip") # there is no libzip on cedar-14
Expand Down Expand Up @@ -170,8 +175,6 @@ export PATH=${OUT_PREFIX}/bin:$PATH
--enable-pcntl=shared \
--enable-shmop=shared \
--enable-soap=shared \
--with-sqlite3=shared \
--with-pdo-sqlite=shared \
--with-xmlrpc=shared \
--with-xsl=shared \
"${configureopts[@]}"
Expand Down

0 comments on commit ec6572d

Please sign in to comment.