Skip to content

Commit

Permalink
update PHP 7.2+ compatibility with CentOS 6 in 123.09beta01
Browse files Browse the repository at this point in the history
- PHP 7.2+ requires autoconf version greater than 2.64 while centos 6's lower autoconf 2.63 version is installed. Update adds autoconf268 package support from EPEL centos 6 repo
  • Loading branch information
centminmod committed Dec 29, 2018
1 parent 5a82b16 commit 17c0f58
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
14 changes: 13 additions & 1 deletion centmin.sh
Expand Up @@ -26,7 +26,7 @@ DT=$(date +"%d%m%y-%H%M%S")
branchname='123.09beta01'
SCRIPT_MAJORVER='1.2.3'
SCRIPT_MINORVER='09'
SCRIPT_INCREMENTVER='084'
SCRIPT_INCREMENTVER='085'
SCRIPT_VERSIONSHORT="${branchname}"
SCRIPT_VERSION="${SCRIPT_VERSIONSHORT}.b${SCRIPT_INCREMENTVER}"
SCRIPT_DATE='31/12/2018'
Expand Down Expand Up @@ -1848,6 +1848,18 @@ fi

php_patches

if [[ "$CENTOS_SIX" -eq '6' ]]; then
# PHP 7.3.0 + centos 6 issue https://community.centminmod.com/posts/69561/
if [ ! -f /usr/bin/autoconf268 ]; then
echo "yum -q -y install autoconf268"
yum -q -y install autoconf268
fi
if [ -f /usr/bin/autoconf268 ]; then
export PHP_AUTOCONF=/usr/bin/autoconf268
export PHP_AUTOHEADER=/usr/bin/autoheader268
fi
fi

./buildconf --force
mkdir fpm-build && cd fpm-build

Expand Down
12 changes: 12 additions & 0 deletions inc/php_upgrade.inc
Expand Up @@ -435,6 +435,18 @@ fi # PHPDIFF

php_patches

if [[ "$CENTOS_SIX" -eq '6' ]]; then
# PHP 7.3.0 + centos 6 issue https://community.centminmod.com/posts/69561/
if [ ! -f /usr/bin/autoconf268 ]; then
echo "yum -q -y install autoconf268"
yum -q -y install autoconf268
fi
if [ -f /usr/bin/autoconf268 ]; then
export PHP_AUTOCONF=/usr/bin/autoconf268
export PHP_AUTOHEADER=/usr/bin/autoheader268
fi
fi

./buildconf --force

if [ ! -d fpm-build ]; then
Expand Down

0 comments on commit 17c0f58

Please sign in to comment.