+++ /dev/null
---- php-7.3.0beta3/configure.ac~ 2018-09-05 19:02:49.000000000 +0300
-+++ php-7.3.0beta3/configure.ac 2018-09-05 19:04:13.237533903 +0300
-@@ -934,11 +934,6 @@
- with_pear=no
- fi
-
--# If CLI is disabled -> disable PEAR
--if test "$PHP_CLI" = "no"; then
-- with_pear=no
--fi
--
- PHP_ARG_WITH(pear, [whether to install PEAR],
- [ --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php]
- --without-pear Do not install PEAR], DEFAULT, yes)
-@@ -1137,19 +1137,6 @@
- --without-pear Do not install PEAR], DEFAULT, yes)
-
- if test "$PHP_PEAR" != "no"; then
--
-- dnl
-- dnl PEAR dependencies
-- dnl
-- if test "$PHP_XML" = "no"; then
-- pear_error_msg="$pear_error_msg
-- PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)"
-- fi
--
-- if test "$pear_error_msg"; then
-- AC_MSG_ERROR([$pear_error_msg])
-- fi
--
- install_pear="install-pear"
- PEAR_INSTALLDIR=$PHP_PEAR
-
---- php-5.2.6/sapi/cli/config.m4~ 2008-11-16 18:35:31.000000000 +0200
-+++ php-5.2.6/sapi/cli/config.m4 2008-11-20 19:04:12.585061299 +0200
-@@ -4,7 +4,7 @@
-
- PHP_ARG_ENABLE(cli,,
- [ --disable-cli Disable building CLI version of PHP
-- (this forces --without-pear)], yes, no)
-+ ], yes, no)
-
- AC_MSG_CHECKING(for CLI build)
- if test "$PHP_CLI" != "no"; then
Patch23: %{orgname}-builddir.patch
Patch24: %{orgname}-zlib-for-getimagesize.patch
Patch25: %{orgname}-stupidapache_version.patch
-Patch26: %{orgname}-pear.patch
Patch27: %{orgname}-config-dir.patch
Patch29: %{orgname}-fcgi-graceful.patch
Patch31: %{orgname}-fcgi-error_log-no-newlines.patch
%patch23 -p1
%patch24 -p1
%patch25 -p1
-%patch26 -p1
%patch27 -p1
%patch29 -p1
%patch31 -p1
fi
export EXTENSION_DIR="%{php_extensiondir}"
+
+# Set PEAR_INSTALLDIR to ensure that the hard-coded include_path
+# includes the PEAR directory even though pear is packaged separately.
+export PEAR_INSTALLDIR=%{php_pear_dir}
+
# configure once (for faster debugging purposes)
if [ ! -f _built-conf ]; then
# now remove Makefile copies
%{__with_without pcre pcre-regex /usr} \
%{?with_pcre:--with-external-pcre} \
%{__enable_disable filter filter shared} \
- --with-pear=%{php_pear_dir} \
%{__with_without pgsql pgsql shared,/usr} \
%{__enable_disable phar phar shared} \
--with-png-dir=/usr \