Sat May 8 13:21:17 2021 UTC ()
switch default for PHP to 7.4

PHP 7.3 is out of active support, and even security support will end on 6.12.2021


(jdolecek)
diff -r1.327 -r1.328 pkgsrc/lang/php/phpversion.mk

cvs diff -r1.327 -r1.328 pkgsrc/lang/php/phpversion.mk (expand / switch to unified diff)

--- pkgsrc/lang/php/phpversion.mk 2021/05/07 14:46:52 1.327
+++ pkgsrc/lang/php/phpversion.mk 2021/05/08 13:21:17 1.328
@@ -1,27 +1,27 @@ @@ -1,27 +1,27 @@
1# $NetBSD: phpversion.mk,v 1.327 2021/05/07 14:46:52 taca Exp $ 1# $NetBSD: phpversion.mk,v 1.328 2021/05/08 13:21:17 jdolecek Exp $
2# 2#
3# This file selects a PHP version, based on the user's preferences and 3# This file selects a PHP version, based on the user's preferences and
4# the installed packages. It does not add a dependency on the PHP 4# the installed packages. It does not add a dependency on the PHP
5# package. 5# package.
6# 6#
7# === User-settable variables === 7# === User-settable variables ===
8# 8#
9# PHP_VERSION_DEFAULT 9# PHP_VERSION_DEFAULT
10# The PHP version to choose when more than one is acceptable to 10# The PHP version to choose when more than one is acceptable to
11# the package. 11# the package.
12# 12#
13# Possible: 56 73 74 80 13# Possible: 56 73 74 80
14# Default: 73 14# Default: 74
15# 15#
16# === Infrastructure variables === 16# === Infrastructure variables ===
17# 17#
18# PHP_VERSION_REQD 18# PHP_VERSION_REQD
19# PHP version to use. This variable should not be set in 19# PHP version to use. This variable should not be set in
20# packages. Normally it is used by bulk build tools. 20# packages. Normally it is used by bulk build tools.
21# 21#
22# Possible: ${PHP_VERSIONS_ACCEPTED} 22# Possible: ${PHP_VERSIONS_ACCEPTED}
23# Default: ${PHP_VERSION_DEFAULT} 23# Default: ${PHP_VERSION_DEFAULT}
24# 24#
25# === Package-settable variables === 25# === Package-settable variables ===
26# 26#
27# PHP_VERSIONS_ACCEPTED 27# PHP_VERSIONS_ACCEPTED
@@ -96,27 +96,27 @@ PHP80_VERSION= 8.0.6 @@ -96,27 +96,27 @@ PHP80_VERSION= 8.0.6
96PHP56_RELDATE= 20140828 96PHP56_RELDATE= 20140828
97PHP73_RELDATE= 20181200 97PHP73_RELDATE= 20181200
98PHP74_RELDATE= 20191128 98PHP74_RELDATE= 20191128
99PHP80_RELDATE= 20201124 99PHP80_RELDATE= 20201124
100 100
101_VARGROUPS+= php 101_VARGROUPS+= php
102_USER_VARS.php= PHP_VERSION_DEFAULT 102_USER_VARS.php= PHP_VERSION_DEFAULT
103_PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD 103_PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD
104_SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ 104_SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \
105 PKG_PHP_MAJOR_VERS 105 PKG_PHP_MAJOR_VERS
106 106
107.include "../../mk/bsd.prefs.mk" 107.include "../../mk/bsd.prefs.mk"
108 108
109PHP_VERSION_DEFAULT?= 73 109PHP_VERSION_DEFAULT?= 74
110PHP_VERSIONS_ACCEPTED?= 73 74 56 80 110PHP_VERSIONS_ACCEPTED?= 73 74 56 80
111.for pv in ${PHP_VERSIONS_ACCEPTED} 111.for pv in ${PHP_VERSIONS_ACCEPTED}
112. if empty(PHP_VERSIONS_INCOMPATIBLE:M${pv}) 112. if empty(PHP_VERSIONS_INCOMPATIBLE:M${pv})
113_PHP_VERSIONS_ACCEPTED+= ${pv} 113_PHP_VERSIONS_ACCEPTED+= ${pv}
114. endif 114. endif
115.endfor 115.endfor
116 116
117# transform the list into individual variables 117# transform the list into individual variables
118.for pv in ${_PHP_VERSIONS_ACCEPTED} 118.for pv in ${_PHP_VERSIONS_ACCEPTED}
119_PHP_VERSION_${pv}_OK= yes 119_PHP_VERSION_${pv}_OK= yes
120.endfor 120.endfor
121 121
122# check what is installed 122# check what is installed