forked from heroku/heroku-buildpack-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request heroku#238 from heroku/develop
v123
- Loading branch information
Showing
92 changed files
with
224 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php/ | ||
# Build Deps: php-min-7.0.22 | ||
# Build Deps: php-min-7.0.23 | ||
|
||
source $(dirname $0)/composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 16 additions & 33 deletions
49
support/build/extensions/no-debug-non-zts-20121212/cassandra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,28 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php/ | ||
|
||
# fail hard | ||
set -o pipefail | ||
# fail harder | ||
set -eu | ||
# we need libgmp-dev | ||
needed=( libgmp-dev ) | ||
missing=$(comm -1 -3 <(dpkg-query -W -f '${package}\n' | sort) <(IFS=$'\n'; echo "${needed[*]}" | sort)) | ||
if [[ "$missing" ]]; then | ||
apt-get update -qq || { echo "Failed to 'apt-get update'. You must build this formula using Docker."; exit 1; } | ||
apt-get install -q -y $missing | ||
fi | ||
|
||
source $(dirname $BASH_SOURCE)/../../_util/include/manifest.sh | ||
dep_name=$(basename $BASH_SOURCE) | ||
|
||
OUT_PREFIX=$1 | ||
export PATH=${OUT_PREFIX}/bin:${PATH} | ||
|
||
ZEND_MODULE_API_VERSION=$(basename $(dirname $0)) | ||
ZEND_MODULE_API_VERSION=${ZEND_MODULE_API_VERSION#no-debug-non-zts-} | ||
|
||
# we need to declare the required version of libcassandra | ||
dep_formula=${0#$WORKSPACE_DIR/} | ||
dep_name=$(basename $BASH_SOURCE) | ||
dep_version=${dep_formula##*"/${dep_name}-"} | ||
dep_package=ext-${dep_name}-${dep_version} | ||
case ${ZEND_MODULE_API_VERSION} in | ||
20121212) | ||
series=5.5 | ||
;; | ||
20131226) | ||
series=5.6 | ||
;; | ||
20151012) | ||
series=7.0 | ||
;; | ||
20160303) | ||
series=7.1 | ||
series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest | ||
case "$dep_version" in | ||
*) | ||
MANIFEST_REQUIRE="${MANIFEST_REQUIRE:-"{\"heroku-sys/php\":\"${series}.*\",\"heroku-sys/libcassandra\":\"^2.7.0\",\"heroku-sys/libcassandra-abi\":\"^2\"}"}" | ||
;; | ||
esac | ||
dep_manifest=${dep_package}_php-$series.composer.json | ||
|
||
echo "-----> Merging dependencies..." | ||
|
||
MANIFEST_REQUIRE="${MANIFEST_REQUIRE:-"{\"heroku-sys/php\":\"${series}.*\"}"}" | ||
MANIFEST_CONFLICT="${MANIFEST_CONFLICT:-"{\"heroku-sys/hhvm\":\"*\"}"}" | ||
MANIFEST_EXTRA="${MANIFEST_EXTRA:-"{}"}" | ||
MANIFEST_REPLACE="${MANIFEST_REPLACE:-"{}"}" | ||
|
||
python $(dirname $BASH_SOURCE)/../../_util/include/manifest.py "heroku-sys-php-extension" "heroku-sys/ext-${dep_name}" "$dep_version" "${dep_formula}.tar.gz" "$MANIFEST_REQUIRE" "$MANIFEST_CONFLICT" "$MANIFEST_REPLACE" "$MANIFEST_EXTRA" > $dep_manifest | ||
CONFIGURE_EXTRA="--with-cassandra=${OUT_PREFIX}" | ||
|
||
print_or_export_manifest_cmd "$(generate_manifest_cmd "$dep_manifest")" | ||
source $(dirname $BASH_SOURCE)/../pecl |
2 changes: 1 addition & 1 deletion
2
support/build/extensions/no-debug-non-zts-20121212/cassandra-1.2.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php/ | ||
# Build Deps: extensions/no-debug-non-zts-20121212/cassandra-bare-1.2.2, libraries/libcassandra-2.6.0 | ||
# Build Deps: php-5.5.38, libraries/libcassandra-2.7.0 | ||
|
||
source $(dirname $0)/cassandra |
55 changes: 0 additions & 55 deletions
55
support/build/extensions/no-debug-non-zts-20121212/cassandra-bare
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
support/build/extensions/no-debug-non-zts-20121212/cassandra-bare-1.2.2
This file was deleted.
Oops, something went wrong.
95 changes: 56 additions & 39 deletions
95
support/build/extensions/no-debug-non-zts-20121212/memcached
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,68 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php/ | ||
|
||
# fail hard | ||
set -o pipefail | ||
# fail harder | ||
set -eu | ||
|
||
source $(dirname $BASH_SOURCE)/../../_util/include/manifest.sh | ||
dep_name=$(basename $BASH_SOURCE) | ||
|
||
OUT_PREFIX=$1 | ||
export PATH=${OUT_PREFIX}/bin:${PATH} | ||
|
||
ZEND_MODULE_API_VERSION=$(basename $(dirname $0)) | ||
ZEND_MODULE_API_VERSION=${ZEND_MODULE_API_VERSION#no-debug-non-zts-} | ||
# can't build without this | ||
needed=( libsasl2-2 ) | ||
missing=$(comm -1 -3 <(dpkg-query -W -f '${package}\n' | sort) <(IFS=$'\n'; echo "${needed[*]}" | sort)) | ||
if [[ "$missing" ]]; then | ||
echo "Error! Missing libraries: $missing" | ||
exit 1 | ||
fi | ||
|
||
dep_formula=${0#$WORKSPACE_DIR/} | ||
dep_name=$(basename $BASH_SOURCE) | ||
dep_version=${dep_formula##*"/${dep_name}-"} | ||
dep_package=ext-${dep_name}-${dep_version} | ||
case ${ZEND_MODULE_API_VERSION} in | ||
20121212) | ||
series=5.5 | ||
;; | ||
20131226) | ||
series=5.6 | ||
;; | ||
20151012) | ||
series=7.0 | ||
;; | ||
20160303) | ||
series=7.1 | ||
;; | ||
esac | ||
dep_manifest=${dep_package}_php-$series.composer.json | ||
|
||
echo "-----> Merging dependencies..." | ||
# let's see if libmemcached is there, if not then we have to use the vendored one | ||
needed=( libmemcached11 ) | ||
missing=$(comm -1 -3 <(dpkg-query -W -f '${package}\n' | sort) <(IFS=$'\n'; echo "${needed[*]}" | sort)) | ||
if [[ "$missing" ]]; then | ||
echo "Using vendored libmemcached..." | ||
# use vendored libmcrypt | ||
CONFIGURE_EXTRA="--with-libmemcached-dir=${OUT_PREFIX}" | ||
|
||
# we need to declare the required version of libmemcached | ||
dep_formula=${0#$WORKSPACE_DIR/} | ||
dep_version=${dep_formula##*"/${dep_name}-"} | ||
series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest | ||
case "$dep_version" in | ||
*) | ||
MANIFEST_REQUIRE="${MANIFEST_REQUIRE:-"{\"heroku-sys/php\":\"${series}.*\",\"heroku-sys/libmemcached\":\"^1.0.18\",\"heroku-sys/libmemcached-abi\":\"^11\"}"}" | ||
;; | ||
esac | ||
|
||
else | ||
echo "Using system libmemcached..." | ||
# use system libmemcached | ||
CONFIGURE_EXTRA= | ||
# but do we need headers? | ||
needed=( libmemcached-dev ) | ||
missing=$(comm -1 -3 <(dpkg-query -W -f '${package}\n' | sort) <(IFS=$'\n'; echo "${needed[*]}" | sort)) | ||
if [[ "$missing" ]]; then | ||
apt-get update -qq || { echo "Failed to 'apt-get update'. You must build this formula using Docker."; exit 1; } | ||
apt-get install -q -y $missing | ||
fi | ||
fi | ||
|
||
# we need libsasl2-dev for ext-memcached | ||
needed=( libsasl2-dev ) | ||
missing=$(comm -1 -3 <(dpkg-query -W -f '${package}\n' | sort) <(IFS=$'\n'; echo "${needed[*]}" | sort)) | ||
if [[ "$missing" ]]; then | ||
apt-get update -qq || { echo "Failed to 'apt-get update'. You must build this formula using Docker."; exit 1; } | ||
apt-get install -q -y $missing | ||
fi | ||
|
||
MANIFEST_EXTRA="${MANIFEST_EXTRA:-"{\"config\":\"etc/php/conf.d/memcached.ini-dist\"}"}" | ||
|
||
source $(dirname $BASH_SOURCE)/../pecl | ||
|
||
mkdir -p ${OUT_PREFIX}/etc/php/conf.d | ||
cat > ${OUT_PREFIX}/etc/php/conf.d/memcached.ini-dist <<'EOF' | ||
extension = memcached.so | ||
EOF | ||
if [[ $dep_version == 2.* ]]; then | ||
# this setting is gone in v3; SASL gets initialized on demand | ||
cat >> ${OUT_PREFIX}/etc/php/conf.d/memcached.ini-dist <<'EOF' | ||
memcached.use_sasl = 1 | ||
EOF | ||
|
||
MANIFEST_REQUIRE="${MANIFEST_REQUIRE:-"{\"heroku-sys/php\":\"${series}.*\"}"}" | ||
MANIFEST_CONFLICT="${MANIFEST_CONFLICT:-"{\"heroku-sys/hhvm\":\"*\"}"}" | ||
MANIFEST_EXTRA="${MANIFEST_EXTRA:-"{\"config\":\"etc/php/conf.d/memcached.ini-dist\"}"}" | ||
MANIFEST_REPLACE="${MANIFEST_REPLACE:-"{}"}" | ||
|
||
python $(dirname $BASH_SOURCE)/../../_util/include/manifest.py "heroku-sys-php-extension" "heroku-sys/ext-${dep_name}" "$dep_version" "${dep_formula}.tar.gz" "$MANIFEST_REQUIRE" "$MANIFEST_CONFLICT" "$MANIFEST_REPLACE" "$MANIFEST_EXTRA" > $dep_manifest | ||
|
||
print_or_export_manifest_cmd "$(generate_manifest_cmd "$dep_manifest")" | ||
fi |
4 changes: 1 addition & 3 deletions
4
support/build/extensions/no-debug-non-zts-20121212/memcached-2.2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php/ | ||
# Build Deps: extensions/no-debug-non-zts-20121212/memcached-bare-2.2.0, libraries/libmemcached-1.0.18 | ||
|
||
# That's it - we're combining the dep build and the extension build here | ||
# Build Deps: php-5.5.38, libraries/libmemcached-1.0.18 | ||
|
||
source $(dirname $0)/memcached |
Oops, something went wrong.