From b1c22054d13ed677c0a4baecf087bb3c824b3ec0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 25 Aug 2017 14:05:28 +0200 Subject: disable httpd MPM check --- failed.txt | 6 +++++- php-7.1.7-httpd.patch | 28 +++++++++++++++++++++++++ php.spec | 58 +++++++++++++++------------------------------------ 3 files changed, 50 insertions(+), 42 deletions(-) create mode 100644 php-7.1.7-httpd.patch diff --git a/failed.txt b/failed.txt index 8d01e3e..d29278b 100644 --- a/failed.txt +++ b/failed.txt @@ -8,11 +8,12 @@ $ grep -r 'Tests failed' /var/lib/mock/scl56*/build.log /var/lib/mock/scl56fc24x/build.log:Tests failed : 4 /var/lib/mock/scl56fc25x/build.log:Tests failed : 4 /var/lib/mock/scl56fc26x/build.log:Tests failed : 1 +/var/lib/mock/scl56fc27x/build.log:Tests failed : 2 el6x, el7x 4 Bug #33414 [2] (Comprehensive list of incorrect days returned after strotime() / date() tests) [ext/date/tests/bug33414-2.phpt] -el6x, el7x, fc23x, fc24x, fc25x, fc26x: +el6x, el7x, fc23x, fc24x, fc25x, fc26x, fc27x: 4 Bug #33415 [2] (Possibly invalid non-one-hour DST or timezone shifts) [ext/date/tests/bug33415-2.phpt] fc23x 4 Bug #32086 (strtotime don't work in DST) [ext/date/tests/bug32086.phpt] @@ -24,9 +25,12 @@ fc23x, fc24x, fc25x: 3 Bug #65538: SSL context "cafile" disallows URL stream wrappers [ext/openssl/tests/bug65538_002.phpt] 3 gethostbyname() function - basic return valid ip address test [ext/standard/tests/network/gethostbyname_error004.phpt] 3 getmxrr() test [ext/standard/tests/network/getmxrr.phpt] +fc27x + 5 substr_compare() [ext/standard/tests/strings/substr_compare.phpt] 1 proc_open have erratic results... :( 2 test fixed upstream 3 online test 4 tzdata are no more updated upstream in security branch +5 need investigation diff --git a/php-7.1.7-httpd.patch b/php-7.1.7-httpd.patch new file mode 100644 index 0000000..acb3d2c --- /dev/null +++ b/php-7.1.7-httpd.patch @@ -0,0 +1,28 @@ +Disable MPM detection + +mod_php is build twice +- as NTS without option +- as ZTS using --enable-maintainer-zts + +diff --git a/sapi/apache2handler/config.m4 b/sapi/apache2handler/config.m4 +index 2e64b21..ec4799f 100644 +--- a/sapi/apache2handler/config.m4 ++++ b/sapi/apache2handler/config.m4 +@@ -116,17 +116,6 @@ if test "$PHP_APXS2" != "no"; then + ;; + esac + +- if test "$APACHE_VERSION" -lt 2004001; then +- APXS_MPM=`$APXS -q MPM_NAME` +- if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then +- PHP_BUILD_THREAD_SAFE +- fi +- else +- APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'` +- if test -n "$APACHE_THREADED_MPM"; then +- PHP_BUILD_THREAD_SAFE +- fi +- fi + AC_MSG_RESULT(yes) + PHP_SUBST(APXS) + else diff --git a/php.spec b/php.spec index 0ae2547..1268409 100644 --- a/php.spec +++ b/php.spec @@ -99,20 +99,11 @@ %global isasuffix %nil %endif -%if 0%{?fedora} < 12 && 0%{?rhel} < 6 -%global with_dtrace 0 -%else %global with_dtrace 1 -%endif # build with system libgd (gd-last in remi repo) %global with_libgd 1 - -%if 0%{?fedora} < 17 && 0%{?rhel} < 6 -%global with_vpx 0 -%else -%global with_vpx 1 -%endif +%global with_vpx 1 # systemd to manage the service, Fedora >= 15 # systemd with notify mode, Fedora >= 16 @@ -138,7 +129,7 @@ %endif #global rcver RC1 -%global rpmrel 2 +%global rpmrel 3 Summary: PHP scripting language for creating dynamic web sites Name: %{?scl_prefix}php @@ -175,8 +166,9 @@ Source50: opcache.ini Source51: opcache-default.blacklist # Build fixes -Patch1: php-5.6.30-interbase.patch -Patch2: php-5.6.31-openssl11.patch +Patch1: php-7.1.7-httpd.patch +Patch2: php-5.6.30-interbase.patch +Patch3: php-5.6.31-openssl11.patch Patch5: php-5.6.3-includedir.patch Patch6: php-5.6.3-embed.patch Patch7: php-5.3.0-recode.patch @@ -213,8 +205,6 @@ Patch301: php-5.6.0-oldpcre.patch # WIP -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildRequires: bzip2-devel, curl-devel >= 7.9, %{db_devel} BuildRequires: httpd-devel >= 2.0.46-1, pam-devel %if %{with_httpd2410} @@ -874,9 +864,10 @@ support for using the enchant library to PHP. %setup -q -n php-%{version}%{?rcver} -%patch1 -p1 -b .fb_config +%patch1 -p1 -b .mpmcheck +%patch2 -p1 -b .fb_config %if 0%{?fedora} >= 26 -%patch2 -p1 -b .openssl11 +%patch3 -p1 -b .openssl11 %endif %patch5 -p1 -b .includedir %patch6 -p1 -b .embed @@ -888,7 +879,7 @@ support for using the enchant library to PHP. %patch40 -p1 -b .dlopen %patch41 -p1 -b .dtrace -%if 0%{?fedora} >= 24 || 0%{?rhel} >= 5 +%if 0%{?fedora} >= 25 || 0%{?rhel} >= 6 %patch42 -p1 -b .systzdata %endif %patch43 -p1 -b .headers @@ -1039,17 +1030,11 @@ sed -e 's:%{_root_sysconfdir}:%{_sysconfdir}:' \ %build # aclocal workaround - to be improved -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >>aclocal.m4 -%endif # Force use of system libtool: libtoolize --force --copy -%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6 cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >build/libtool.m4 -%else -cat `aclocal --print-ac-dir`/libtool.m4 > build/libtool.m4 -%endif # Regenerate configure scripts (patches change config.m4's) touch configure.in @@ -1110,7 +1095,7 @@ ln -sf ../configure --with-layout=GNU \ --with-kerberos \ --with-libxml-dir=%{_root_prefix} \ -%if 0%{?fedora} >= 24 || 0%{?rhel} >= 5 +%if 0%{?fedora} >= 25 || 0%{?rhel} >= 6 --with-system-tzdata \ %endif --with-mhash \ @@ -1393,6 +1378,8 @@ sed -e 's:/run:%{_localstatedir}/run:' \ -e 's:php-fpm.service:%{?scl_prefix}php-fpm.service:' \ -e 's:/usr/sbin:%{_sbindir}:' \ -i $RPM_BUILD_ROOT%{_unitdir}/%{?scl_prefix}php-fpm.service +sed -e 's/^pid/;pid/' \ + -i $RPM_BUILD_ROOT%{_sysconfdir}/php-fpm.conf # this folder requires systemd >= 204 install -m 755 -d $RPM_BUILD_ROOT%{_root_sysconfdir}/systemd/system/%{?scl_prefix}php-fpm.service.d %else @@ -1511,8 +1498,8 @@ extension=${mod}.so EOF fi cat > files.${mod} < - 5.6.31-3 +- disable httpd MPM check + * Thu Jul 6 2017 Remi Collet 5.6.31-2 - refresh openssl 1.1 patch for F26 -- cgit