fix error installing imap pecl plugin.

This commit is contained in:
2025-12-24 01:57:08 +01:00
parent cbbcdf429c
commit b854d10517

View File

@@ -6949,7 +6949,13 @@ echononl "\tInstall 'imap' via pecl.."
if ([[ "$PHP_MAJOR_VERSION" -eq 8 ]] && [[ "$PHP_MINOR_VERSION" -ge 4 ]]) \
|| [[ "$PHP_MAJOR_VERSION" -gt 8 ]] \
|| [[ "$os_dist" = "debian" ]] && [[ "$os_version" -ge 13 ]] ; then
|| ([[ "$os_dist" = "debian" ]] && [[ "$os_version" -ge 13 ]]) ; then
if ( dpkg -s libc-client-dev > /dev/null 2>&1 \
|| dpkg -s libc-client2007e-dev > /dev/null 2>&1 \
|| dpkg -s uw-imap-dev >/dev/null 2>&1; ) \
|| [[ -f /usr/local/imap/lib/libc-client.a ]] ; then
printf "\n" | ${PREFIX_PHP}/bin/pecl install imap >> "${_logdir}/pecl_install.log" 2>&1
if [ "$?" = "0" ]; then
echo_ok
@@ -6978,6 +6984,13 @@ if ([[ "$PHP_MAJOR_VERSION" -eq 8 ]] && [[ "$PHP_MINOR_VERSION" -ge 4 ]]) \
echo ""
fi
else
echo_skipped
warn "The imap plugin cannot be installed - no imap library was found. "
fi
else
echo_skipped
fi