mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] php5: don't build a SAPI module by default
@ 2017-11-02 11:02 Roland Hieber
  2017-11-02 11:41 ` Michael Olbrich
  2017-11-02 11:54 ` [ptxdist] [PATCH v2] " Roland Hieber
  0 siblings, 2 replies; 3+ messages in thread
From: Roland Hieber @ 2017-11-02 11:02 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

With PHP5_SAPI_APXSFILTER as the top-most selectable choice, it gets
selected as default when PHP5 is selected. This pulls in a fairly high
footprint of other dependencies, namely (host-)apache2, which might not
even be needed when PHP5 is selected as a dependency by other packages
for PHP5_SAPI_CLI only.

Bring PHP5_SAPI_NONE to the top of the choice block so it gets selected
by default when PHP5 is selected. This pulls in PHP5_SAPI_CLI, but no
further external dependencies.

Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
---
 rules/php5.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/rules/php5.in b/rules/php5.in
index df352a062..4b88a585d 100644
--- a/rules/php5.in
+++ b/rules/php5.in
@@ -37,6 +37,11 @@ config PHP5_INI
 choice
 	prompt "SAPI Module"
 
+config PHP5_SAPI_NONE
+	bool
+	prompt "none"
+	select PHP5_SAPI_CLI
+
 config PHP5_SAPI_AOLSERVER
 	bool
 	prompt "aolserver"
@@ -153,11 +158,6 @@ config PHP5_SAPI_CGI
 	help
 	  Build CGI version of PHP.
 
-config PHP5_SAPI_NONE
-	bool
-	prompt "none"
-	select PHP5_SAPI_CLI
-
 endchoice
 
 config PHP5_SAPI_CLI
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [PATCH] php5: don't build a SAPI module by default
  2017-11-02 11:02 [ptxdist] [PATCH] php5: don't build a SAPI module by default Roland Hieber
@ 2017-11-02 11:41 ` Michael Olbrich
  2017-11-02 11:54 ` [ptxdist] [PATCH v2] " Roland Hieber
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2017-11-02 11:41 UTC (permalink / raw)
  To: ptxdist

On Thu, Nov 02, 2017 at 12:02:33PM +0100, Roland Hieber wrote:
> With PHP5_SAPI_APXSFILTER as the top-most selectable choice, it gets
> selected as default when PHP5 is selected. This pulls in a fairly high
> footprint of other dependencies, namely (host-)apache2, which might not
> even be needed when PHP5 is selected as a dependency by other packages
> for PHP5_SAPI_CLI only.
> 
> Bring PHP5_SAPI_NONE to the top of the choice block so it gets selected
> by default when PHP5 is selected. This pulls in PHP5_SAPI_CLI, but no
> further external dependencies.
> 
> Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
> ---
>  rules/php5.in | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/rules/php5.in b/rules/php5.in
> index df352a062..4b88a585d 100644
> --- a/rules/php5.in
> +++ b/rules/php5.in
> @@ -37,6 +37,11 @@ config PHP5_INI
>  choice
>  	prompt "SAPI Module"

do this instead:

	default PHP5_SAPI_NONE

It has the same effect but makes it more explicit.

Michael

>  
> +config PHP5_SAPI_NONE
> +	bool
> +	prompt "none"
> +	select PHP5_SAPI_CLI
> +
>  config PHP5_SAPI_AOLSERVER
>  	bool
>  	prompt "aolserver"
> @@ -153,11 +158,6 @@ config PHP5_SAPI_CGI
>  	help
>  	  Build CGI version of PHP.
>  
> -config PHP5_SAPI_NONE
> -	bool
> -	prompt "none"
> -	select PHP5_SAPI_CLI
> -
>  endchoice
>  
>  config PHP5_SAPI_CLI
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ptxdist] [PATCH v2] php5: don't build a SAPI module by default
  2017-11-02 11:02 [ptxdist] [PATCH] php5: don't build a SAPI module by default Roland Hieber
  2017-11-02 11:41 ` Michael Olbrich
@ 2017-11-02 11:54 ` Roland Hieber
  1 sibling, 0 replies; 3+ messages in thread
From: Roland Hieber @ 2017-11-02 11:54 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

With PHP5_SAPI_APXSFILTER as the top-most selectable choice, it gets
selected as default when PHP5 is selected. This pulls in a fairly high
footprint of other dependencies, namely (host-)apache2. These might not
even be needed when PHP5 is selected as a dependency by other packages
for PHP5_SAPI_CLI only.

Default to PHP5_SAPI_NONE instead. This also selects PHP5_SAPI_CLI
(preventing configure from complaining that nothing is being built), but
no further external dependencies, resulting in a much smaller default
footprint.

Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>

---
 v2:
  - don't reorder options, but only set the default choice.
  - improve commit message

---
 rules/php5.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/php5.in b/rules/php5.in
index df352a062..fe76d4bd5 100644
--- a/rules/php5.in
+++ b/rules/php5.in
@@ -36,6 +36,7 @@ config PHP5_INI
 
 choice
 	prompt "SAPI Module"
+	default PHP5_SAPI_NONE
 
 config PHP5_SAPI_AOLSERVER
 	bool
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-02 11:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02 11:02 [ptxdist] [PATCH] php5: don't build a SAPI module by default Roland Hieber
2017-11-02 11:41 ` Michael Olbrich
2017-11-02 11:54 ` [ptxdist] [PATCH v2] " Roland Hieber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox