Support compiling php v5.6 against OpenSSL v1.1 by applying a patch.
This commit is contained in:
parent
a46c166903
commit
f35b2185d3
@ -991,6 +991,24 @@ else
|
|||||||
fatal "$(cat $tmp_err_msg)"
|
fatal "$(cat $tmp_err_msg)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echononl "\tApply patch to compile against OpenSSL 1.1.."
|
||||||
|
if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 8 ]] && [[ $MAIN_VERSION -lt 7 ]]; then
|
||||||
|
if [[ -f ${_srcdir}/php-5.6-libssl-1.1-compatibility-20170309.patch ]] ; then
|
||||||
|
patch -d $_builddir -p1 < ${_srcdir}/php-5.6-libssl-1.1-compatibility-20170309.patch > $tmp_err_msg 2>&1
|
||||||
|
if [[ $? -eq 0 ]]; then
|
||||||
|
echo_ok
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
fatal "$(cat $tmp_err_msg)"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
fatal "Can't find patchfile '${_srcdir}/php-5.6-libssl-1.1-compatibility-20170309.patch'"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo_skipped
|
||||||
|
fi
|
||||||
|
|
||||||
echononl "\tChange ownership of unpacked dirextory \"php-$VERSION\""
|
echononl "\tChange ownership of unpacked dirextory \"php-$VERSION\""
|
||||||
chown -R root.root php-$VERSION > $tmp_err_msg 2>&1
|
chown -R root.root php-$VERSION > $tmp_err_msg 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
@ -1028,17 +1046,8 @@ config_params="
|
|||||||
--with-pcre-regex \
|
--with-pcre-regex \
|
||||||
--enable-wddx \
|
--enable-wddx \
|
||||||
--enable-exif \
|
--enable-exif \
|
||||||
--with-zlib"
|
--with-zlib \
|
||||||
|
--with-openssl \
|
||||||
if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 8 ]] && [[ $MAIN_VERSION -lt 7 ]]; then
|
|
||||||
config_params="$config_params \
|
|
||||||
--with-openssl=/usr/local/openssl"
|
|
||||||
else
|
|
||||||
config_params="$config_params \
|
|
||||||
--with-openssl"
|
|
||||||
fi
|
|
||||||
|
|
||||||
config_params="$config_params \
|
|
||||||
--with-gdbm \
|
--with-gdbm \
|
||||||
--with-jpeg-dir \
|
--with-jpeg-dir \
|
||||||
--with-png-dir \
|
--with-png-dir \
|
||||||
@ -1153,15 +1162,6 @@ else
|
|||||||
fatal "Configuring PHP failed!\n\t see ${_logdir}/php-configure.log for more details"
|
fatal "Configuring PHP failed!\n\t see ${_logdir}/php-configure.log for more details"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "\tGoing to compile.."
|
|
||||||
make > ${_logdir}/php-make.log 2>&1
|
|
||||||
if [ "$?" = "0" ]; then
|
|
||||||
echo_ok
|
|
||||||
else
|
|
||||||
echo_failed
|
|
||||||
fatal "Compiling PHP failed!\n\t see ${_logdir}/php-make.log for more details"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
## --with-mm \ # does not work with apache v2.4
|
## --with-mm \ # does not work with apache v2.4
|
||||||
|
|
||||||
@ -1184,6 +1184,7 @@ fi
|
|||||||
## --with-memcache \
|
## --with-memcache \
|
||||||
## --with-xml \
|
## --with-xml \
|
||||||
|
|
||||||
|
|
||||||
echononl "\tGoing to compile.."
|
echononl "\tGoing to compile.."
|
||||||
make > ${_logdir}/php-make.log 2>&1
|
make > ${_logdir}/php-make.log 2>&1
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user