#4 Split mod_php into subpackage
Closed a year ago by remi. Opened a year ago by ngompa.
rpms/ ngompa/php split-mod_php  into  master

file modified
+27 -13
@@ -60,7 +60,7 @@ 

  Summary: PHP scripting language for creating dynamic web sites

  Name: php

  Version: %{upver}%{?rcver:~%{rcver}}

- Release: 3%{?dist}

+ Release: 4%{?dist}

  # All files licensed under PHP version 3.01, except

  # Zend is licensed under Zend

  # TSRM is licensed under BSD
@@ -119,7 +119,6 @@ 

  BuildRequires: gnupg2

  BuildRequires: bzip2-devel

  BuildRequires: pkgconfig(libcurl)  >= 7.15.5

- BuildRequires: httpd-devel >= 2.0.46-1

  BuildRequires: pam-devel

  # to ensure we are using httpd with filesystem feature (see #1081453)

  BuildRequires: httpd-filesystem
@@ -150,14 +149,6 @@ 

  Provides: php-zts%{?_isa} = %{version}-%{release}

  %endif

  

- %if %{with_modphp}

- Requires: httpd-mmn = %{_httpd_mmn}

- Provides: mod_php                = %{version}-%{release}

- # To ensure correct /var/lib/php/session ownership:

- Requires(pre): httpd-filesystem

- # php engine for Apache httpd webserver

- Provides: php(httpd)

- %endif

  Requires: php-common%{?_isa}     = %{version}-%{release}

  # For backwards-compatibility, pull the "php" command

  Recommends: php-cli%{?_isa}      = %{version}-%{release}
@@ -182,10 +173,27 @@ 

  non-commercial database management systems, so writing a

  database-enabled webpage with PHP is fairly simple. The most common

  use of PHP coding is probably as a replacement for CGI scripts.

+ 

  %if %{with_modphp}

- The php package contains the module (often referred to as mod_php)

- which adds support for the PHP language to Apache HTTP Server when

- running in prefork mode.

+ %package -n mod_%{name}

+ Summary: PHP module for the Apache HTTP Server

+ BuildRequires: httpd-devel >= 2.0.46-1

+ Requires: php-common%{?_isa} = %{version}-%{release}

+ Requires: httpd-mmn = %{_httpd_mmn}

+ # At the point of the split

+ Obsoletes: php < 7.4.7~RC1-4

+ # To ensure correct /var/lib/php/session ownership:

+ Requires(pre): httpd-filesystem

+ # php engine for Apache httpd webserver

+ Provides: php(httpd)

+ %if ! (0%{?fedora} && 0%{?fedora} < 33)

+ # This package is deprecated and will be eventually removed

+ Provides: deprecated()

+ %endif

+ 

+ %description -n mod_%{name}

+ The mod_php package contains the module which adds support for the

+ PHP language to Apache HTTP Server when running in prefork mode.

  %endif

  

  %package cli
@@ -1362,7 +1370,10 @@ 

  

  

  %files

+ # Empty metapackage

+ 

  %if %{with_modphp}

+ %files -n mod_%{name}

  %{_httpd_moddir}/libphp7.so

  %config(noreplace) %{_httpd_modconfdir}/15-php.conf

  %attr(0770,root,apache) %dir %{_sharedstatedir}/php/session
@@ -1511,6 +1522,9 @@ 

  

  

  %changelog

+ * Sun May 31 2020 Neal Gompa <ngompa13@gmail.com> - 7.4.7~RC1-4

+ - Split mod_php into a subpackage

+ 

  * Tue May 26 2020 Remi Collet <remi@remirepo.net> - 7.4.7~RC1-1

  - update to 7.4.7RC1

  

This split makes it clear that mod_php is not part of our default
supported setup, and when we do disable mod_php for Fedora builds,
it will be trivial for third-parties who need it to toggle it on
in a non-disruptive manner.

rebased onto 880f035

a year ago

rebased onto fdb5b3e

a year ago

Sorry, but no, mod_php for ZTS build is not supported, raise segfault with various extensions
People using threaded apache MUST use fpm.

https://www.php.net/manual/en/install.unix.apache2.php

And for moving mod_php in another package, I'm still against this idea.

rebased onto f62bc4c

a year ago

I've removed the ZTS build for mod_php.

rebased onto 437de97

a year ago

1 new commit added

  • Mark mod_php as deprecated for F33+
a year ago

Per the suggestion on devel@, I've added a commit to mark mod_php as deprecated.

Notice: i've been fighting, since ever, to have all possible configurations working out of the box

since F1
- httpd + php (= mod_php)

since F18-20
- httpd + php
- httpd + php-fpm
- nginx + php-fpm

So I don't like the idea to provide a broken configuration (httpd + mod_php)

Thinking a bit more, this change doesn't make sense.

Sorry, but closing
Thanks to have tried to improve PHP packaging.

Pull-Request has been closed by remi

a year ago