Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package php8 for openSUSE:Factory checked in at 2022-02-18 23:02:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/php8 (Old) and /work/SRC/openSUSE:Factory/.php8.new.1958 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "php8" Fri Feb 18 23:02:47 2022 rev:21 rq:955790 version:8.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/php8/php8.changes 2022-02-06 23:55:23.466372393 +0100 +++ /work/SRC/openSUSE:Factory/.php8.new.1958/php8.changes 2022-02-18 23:03:09.753411813 +0100 @@ -1,0 +2,13 @@ +Fri Feb 18 07:09:11 UTC 2022 - Arjen de Korte <suse+bu...@de-korte.org> + +- updated to 8.1.3: This is a security release (CVE-2021-21708) + which also contains several bug fixes. + See https://www.php.net/ChangeLog-8.php#8.1.3 + +------------------------------------------------------------------- +Fri Feb 11 20:49:28 UTC 2022 - Arjen de Korte <suse+bu...@de-korte.org> + +- provide an Apache configuration for PHP-FPM + + php8-fpm.conf + +------------------------------------------------------------------- Old: ---- php-8.1.2.tar.xz php-8.1.2.tar.xz.asc New: ---- php-8.1.3.tar.xz php-8.1.3.tar.xz.asc php8-fpm.conf ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ php8.spec ++++++ --- /var/tmp/diff_new_pack.pEIENZ/_old 2022-02-18 23:03:10.713411738 +0100 +++ /var/tmp/diff_new_pack.pEIENZ/_new 2022-02-18 23:03:10.721411738 +0100 @@ -53,7 +53,7 @@ %define build_argon2 1 %endif Name: %{pprefix}%{php_name}%{psuffix} -Version: 8.1.2 +Version: 8.1.3 Release: 0 Summary: Interpreter for the PHP scripting language version 8 License: PHP-3.01 @@ -61,6 +61,7 @@ URL: https://secure.php.net Source0: https://secure.php.net/distributions/php-%{version}.tar.xz Source1: mod_%{php_name}.conf +Source2: %{php_name}-fpm.conf Source5: README.macros Source6: macros.php Source8: https://secure.php.net/distributions/php-%{version}.tar.xz.asc @@ -329,6 +330,21 @@ works, have a look at the Introductory tutorial. Once you get beyond that have a look at the example archive sites and some of the other resources available in the links section. + +%package apache +Summary: Apache configuration for PHP-FPM +Group: Development/Libraries/PHP +BuildRequires: apache-rpm-macros-control +BuildRequires: apache2 +Requires: apache2 +Requires: php-fpm = %{version} +Requires(post): %{_sbindir}/a2enmod +Supplements: php-fpm and apache2 +Conflicts: mod_php_any + +%description apache +Configuration for Apache to pass all requests for PHP scripts to the +PHP-FPM server using reverse proxy. %endif %if "%{flavor}" == "embed" @@ -1233,6 +1249,9 @@ # bug 1192414 mv %{buildroot}%{php_sysconf}/fpm/php-fpm.conf{.default,} mv %{buildroot}%{php_sysconf}/fpm/php-fpm.d/www.conf{.default,} +# apache configuration +mkdir -p %{buildroot}%{apache_sysconfdir}/conf.d +install -m 644 %{SOURCE2} %{buildroot}%{apache_sysconfdir}/conf.d/%{php_name}-fpm.conf %endif %if "%{flavor}" == "" @@ -1325,6 +1344,19 @@ %posttrans %_restart_on_update php-fpm.service + +%post apache +if [ $1 -eq 1 ]; then + # package is just installed, check/enable required Apache modules + for m in proxy proxy_fcgi; do + a2enmod -q ${m} && continue + a2enmod ${m} + %apache_request_restart -m ${m} + done +fi + +%posttrans apache +%apache_restart_if_needed %endif %if "%{flavor}" == "embed" @@ -1401,6 +1433,9 @@ %{_unitdir}/php-fpm.service %{_tmpfilesdir}/php-fpm.conf %ghost %dir %attr(711,root,root) /run/php-fpm + +%files apache +%config(noreplace) %{apache_sysconfdir}/conf.d/%{php_name}-fpm.conf %endif %if "%{flavor}" == "apache2" ++++++ php-8.1.2.tar.xz -> php-8.1.3.tar.xz ++++++ /work/SRC/openSUSE:Factory/php8/php-8.1.2.tar.xz /work/SRC/openSUSE:Factory/.php8.new.1958/php-8.1.3.tar.xz differ: char 25, line 1 ++++++ php8-fpm.conf ++++++ <IfModule mod_proxy_fcgi.c> <FilesMatch "\.ph(p[34578]?|tml)$"> SetHandler "proxy:fcgi://127.0.0.1:9000" </FilesMatch> <FilesMatch "\.php[34578]?s$"> SetHandler "proxy:fcgi://127.0.0.1:9000" </FilesMatch> DirectoryIndex index.php4 DirectoryIndex index.php5 DirectoryIndex index.php7 DirectoryIndex index.php8 DirectoryIndex index.php </IfModule>