From 28b206f2673bc6ecb664a044ed1b74fef5e38775 Mon Sep 17 00:00:00 2001 From: David Zuelke Date: Thu, 10 Dec 2015 19:15:17 +0100 Subject: [PATCH] manifest gen for ext-(apcu|mongo|oauth|redis) --- support/build/extensions/no-debug-non-zts-20121212/apcu | 9 +++++++-- support/build/extensions/no-debug-non-zts-20121212/mongo | 9 +++++++-- support/build/extensions/no-debug-non-zts-20121212/oauth | 9 +++++++-- support/build/extensions/no-debug-non-zts-20121212/redis | 9 +++++++-- support/build/extensions/no-debug-non-zts-20131226/apcu | 2 +- support/build/extensions/no-debug-non-zts-20131226/mongo | 2 +- support/build/extensions/no-debug-non-zts-20131226/oauth | 2 +- support/build/extensions/no-debug-non-zts-20131226/redis | 2 +- 8 files changed, 32 insertions(+), 12 deletions(-) diff --git a/support/build/extensions/no-debug-non-zts-20121212/apcu b/support/build/extensions/no-debug-non-zts-20121212/apcu index a725a3926..33670d70c 100755 --- a/support/build/extensions/no-debug-non-zts-20121212/apcu +++ b/support/build/extensions/no-debug-non-zts-20121212/apcu @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Build Path: /app/.heroku/php/ -# Build Deps: php-5.5.11 +# Build Deps: php-5.5.30 OUT_PREFIX=$1 @@ -21,6 +21,7 @@ curl -L ${dep_url} | tar xz pushd ${dep_dirname} export PATH=${OUT_PREFIX}/bin:${PATH} +series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest phpize ./configure \ --prefix=${OUT_PREFIX} \ @@ -31,4 +32,8 @@ rm -rf ${OUT_PREFIX}/* make install -s popd -echo "-----> Done." +package=${0#$WORKSPACE_DIR/} + +PHPREQ="$series.*" python -c 'import os, sys, json; print json.dumps({ "name": sys.argv[1], "version": sys.argv[2], "type": sys.argv[4], "conflict": dict(item.split(":") for item in sys.argv[5:]), "require": {"heroku-sys/"+os.getenv("STACK"):"^1.0.0","heroku/installer-plugin":"^1.0.0","heroku-sys/php":os.getenv("PHPREQ")}, "dist": {"type":"heroku-sys-tar","url":"https://"+os.getenv("S3_BUCKET")+".s3.amazonaws.com/"+os.getenv("S3_PREFIX")+"/"+sys.argv[3]+".tar.gz"} })' "heroku-sys/ext-apcu" "$dep_version" "$package" "heroku-sys-php-extension" "heroku-sys/hhvm:*" > ext-${dep_dirname}_php-$series.composer.json + +echo "-----> Done. Run 's3cmd --ssl --access_key=\$AWS_ACCESS_KEY_ID --secret_key=\$AWS_SECRET_ACCESS_KEY --acl-public put $(pwd)/ext-${dep_dirname}_php-$series.composer.json s3://$S3_BUCKET/$S3_PREFIX/ext-${dep_dirname}_php-$series.composer.json' to upload manifest." diff --git a/support/build/extensions/no-debug-non-zts-20121212/mongo b/support/build/extensions/no-debug-non-zts-20121212/mongo index 7baa2311c..3d1cbf205 100755 --- a/support/build/extensions/no-debug-non-zts-20121212/mongo +++ b/support/build/extensions/no-debug-non-zts-20121212/mongo @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Build Path: /app/.heroku/php/ -# Build Deps: php-5.5.21 +# Build Deps: php-5.5.30 OUT_PREFIX=$1 @@ -21,6 +21,7 @@ curl -L ${dep_url} | tar xz pushd ${dep_dirname} export PATH=${OUT_PREFIX}/bin:${PATH} +series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest phpize ./configure \ --prefix=${OUT_PREFIX} \ @@ -31,4 +32,8 @@ rm -rf ${OUT_PREFIX}/* make install -s popd -echo "-----> Done." +package=${0#$WORKSPACE_DIR/} + +PHPREQ="$series.*" python -c 'import os, sys, json; print json.dumps({ "name": sys.argv[1], "version": sys.argv[2], "type": sys.argv[4], "conflict": dict(item.split(":") for item in sys.argv[5:]), "require": {"heroku-sys/"+os.getenv("STACK"):"^1.0.0","heroku/installer-plugin":"^1.0.0","heroku-sys/php":os.getenv("PHPREQ")}, "dist": {"type":"heroku-sys-tar","url":"https://"+os.getenv("S3_BUCKET")+".s3.amazonaws.com/"+os.getenv("S3_PREFIX")+"/"+sys.argv[3]+".tar.gz"} })' "heroku-sys/ext-mongo" "$dep_version" "$package" "heroku-sys-php-extension" "heroku-sys/hhvm:*" > ext-${dep_dirname}_php-$series.composer.json + +echo "-----> Done. Run 's3cmd --ssl --access_key=\$AWS_ACCESS_KEY_ID --secret_key=\$AWS_SECRET_ACCESS_KEY --acl-public put $(pwd)/ext-${dep_dirname}_php-$series.composer.json s3://$S3_BUCKET/$S3_PREFIX/ext-${dep_dirname}_php-$series.composer.json' to upload manifest." diff --git a/support/build/extensions/no-debug-non-zts-20121212/oauth b/support/build/extensions/no-debug-non-zts-20121212/oauth index 01276530b..15ea1aaf2 100755 --- a/support/build/extensions/no-debug-non-zts-20121212/oauth +++ b/support/build/extensions/no-debug-non-zts-20121212/oauth @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Build Path: /app/.heroku/php/ -# Build Deps: php-5.5.11 +# Build Deps: php-5.5.30 OUT_PREFIX=$1 @@ -21,6 +21,7 @@ curl -L ${dep_url} | tar xz pushd ${dep_dirname} export PATH=${OUT_PREFIX}/bin:${PATH} +series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest phpize ./configure \ --prefix=${OUT_PREFIX} \ @@ -31,4 +32,8 @@ rm -rf ${OUT_PREFIX}/* make install -s popd -echo "-----> Done." +package=${0#$WORKSPACE_DIR/} + +PHPREQ="$series.*" python -c 'import os, sys, json; print json.dumps({ "name": sys.argv[1], "version": sys.argv[2], "type": sys.argv[4], "conflict": dict(item.split(":") for item in sys.argv[5:]), "require": {"heroku-sys/"+os.getenv("STACK"):"^1.0.0","heroku/installer-plugin":"^1.0.0","heroku-sys/php":os.getenv("PHPREQ")}, "dist": {"type":"heroku-sys-tar","url":"https://"+os.getenv("S3_BUCKET")+".s3.amazonaws.com/"+os.getenv("S3_PREFIX")+"/"+sys.argv[3]+".tar.gz"} })' "heroku-sys/ext-oauth" "$dep_version" "$package" "heroku-sys-php-extension" "heroku-sys/hhvm:*" > ext-${dep_dirname}_php-$series.composer.json + +echo "-----> Done. Run 's3cmd --ssl --access_key=\$AWS_ACCESS_KEY_ID --secret_key=\$AWS_SECRET_ACCESS_KEY --acl-public put $(pwd)/ext-${dep_dirname}_php-$series.composer.json s3://$S3_BUCKET/$S3_PREFIX/ext-${dep_dirname}_php-$series.composer.json' to upload manifest." diff --git a/support/build/extensions/no-debug-non-zts-20121212/redis b/support/build/extensions/no-debug-non-zts-20121212/redis index ecb7c2e81..7b463ab24 100755 --- a/support/build/extensions/no-debug-non-zts-20121212/redis +++ b/support/build/extensions/no-debug-non-zts-20121212/redis @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Build Path: /app/.heroku/php/ -# Build Deps: php-5.5.22 +# Build Deps: php-5.5.30 OUT_PREFIX=$1 @@ -21,6 +21,7 @@ curl -L ${dep_url} | tar xz pushd ${dep_dirname} export PATH=${OUT_PREFIX}/bin:${PATH} +series=$(php-config --version | cut -d. -f1,2) # get "5.5", "5.6", "7.0" etc for the php requirement in the manifest phpize ./configure \ --prefix=${OUT_PREFIX} \ @@ -31,4 +32,8 @@ rm -rf ${OUT_PREFIX}/* make install -s popd -echo "-----> Done." +package=${0#$WORKSPACE_DIR/} + +PHPREQ="$series.*" python -c 'import os, sys, json; print json.dumps({ "name": sys.argv[1], "version": sys.argv[2], "type": sys.argv[4], "conflict": dict(item.split(":") for item in sys.argv[5:]), "require": {"heroku-sys/"+os.getenv("STACK"):"^1.0.0","heroku/installer-plugin":"^1.0.0","heroku-sys/php":os.getenv("PHPREQ")}, "dist": {"type":"heroku-sys-tar","url":"https://"+os.getenv("S3_BUCKET")+".s3.amazonaws.com/"+os.getenv("S3_PREFIX")+"/"+sys.argv[3]+".tar.gz"} })' "heroku-sys/ext-redis" "$dep_version" "$package" "heroku-sys-php-extension" "heroku-sys/hhvm:*" > ext-${dep_dirname}_php-$series.composer.json + +echo "-----> Done. Run 's3cmd --ssl --access_key=\$AWS_ACCESS_KEY_ID --secret_key=\$AWS_SECRET_ACCESS_KEY --acl-public put $(pwd)/ext-${dep_dirname}_php-$series.composer.json s3://$S3_BUCKET/$S3_PREFIX/ext-${dep_dirname}_php-$series.composer.json' to upload manifest." diff --git a/support/build/extensions/no-debug-non-zts-20131226/apcu b/support/build/extensions/no-debug-non-zts-20131226/apcu index 5f8582f51..7f1539162 100755 --- a/support/build/extensions/no-debug-non-zts-20131226/apcu +++ b/support/build/extensions/no-debug-non-zts-20131226/apcu @@ -1,5 +1,5 @@ #!/usr/bin/env bash # Build Path: /app/.heroku/php/ -# Build Deps: php-5.6.0RC4 +# Build Deps: php-5.6.16 source $(dirname $0)/../no-debug-non-zts-20121212/$(basename $0) diff --git a/support/build/extensions/no-debug-non-zts-20131226/mongo b/support/build/extensions/no-debug-non-zts-20131226/mongo index 68c66ea18..7f1539162 100755 --- a/support/build/extensions/no-debug-non-zts-20131226/mongo +++ b/support/build/extensions/no-debug-non-zts-20131226/mongo @@ -1,5 +1,5 @@ #!/usr/bin/env bash # Build Path: /app/.heroku/php/ -# Build Deps: php-5.6.5 +# Build Deps: php-5.6.16 source $(dirname $0)/../no-debug-non-zts-20121212/$(basename $0) diff --git a/support/build/extensions/no-debug-non-zts-20131226/oauth b/support/build/extensions/no-debug-non-zts-20131226/oauth index 556ddfc73..7f1539162 100755 --- a/support/build/extensions/no-debug-non-zts-20131226/oauth +++ b/support/build/extensions/no-debug-non-zts-20131226/oauth @@ -1,5 +1,5 @@ #!/usr/bin/env bash # Build Path: /app/.heroku/php/ -# Build Deps: php-5.6.4 +# Build Deps: php-5.6.16 source $(dirname $0)/../no-debug-non-zts-20121212/$(basename $0) diff --git a/support/build/extensions/no-debug-non-zts-20131226/redis b/support/build/extensions/no-debug-non-zts-20131226/redis index a2cd581d1..7f1539162 100755 --- a/support/build/extensions/no-debug-non-zts-20131226/redis +++ b/support/build/extensions/no-debug-non-zts-20131226/redis @@ -1,5 +1,5 @@ #!/usr/bin/env bash # Build Path: /app/.heroku/php/ -# Build Deps: php-5.6.6 +# Build Deps: php-5.6.16 source $(dirname $0)/../no-debug-non-zts-20121212/$(basename $0)