Add Patch to compile PHP (7.4, 8.0?) againmst openssl 3.0.
This commit is contained in:
@@ -3223,6 +3223,24 @@ else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
echononl "\tApply patch to compile against OpenSSL 3.0.."
|
||||
if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 11 ]] && [[ $PHP_MAJOR_VERSION = 7 ]]; then
|
||||
if [[ -f ${_srcdir}/PHP-7.4-OpenSSL-3.0-compatibility.patch ]] ; then
|
||||
patch -d $_builddir/ext -p 0 < ${_srcdir}/PHP-7.4-OpenSSL-3.0-compatibility.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-7.4-OpenSSL-3.0-compatibility.patch'"
|
||||
fi
|
||||
else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
echononl "\tChange ownership of unpacked dirextory \"php-$VERSION\""
|
||||
chown -R root.root php-$VERSION > $tmp_err_msg 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user