php80 & php81: correct zts option invocation Starting with PHP 8.0, zts is enabled with --enable-zts, rather than the older --enable-maintainer-zts. Addresses PR pkg/56681. The actual pkgsrc option name should probably be adjusted, and the current "maintainer-zts" moved to PKG_LEGACY_OPTIONS. I've left it for another commit.diff -r1.3 -r1.4 pkgsrc/lang/php80/options.mk
(gutteridge)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.3 2021/12/19 05:03:19 taca Exp $ | 1 | # $NetBSD: options.mk,v 1.4 2022/02/04 01:41:01 gutteridge Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} | |
4 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2 php-embed | 4 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2 php-embed | |
5 | PKG_SUPPORTED_OPTIONS+= disable-filter-url | 5 | PKG_SUPPORTED_OPTIONS+= disable-filter-url | |
6 | PKG_SUGGESTED_OPTIONS+= inet6 ssl readline | 6 | PKG_SUGGESTED_OPTIONS+= inet6 ssl readline | |
7 | 7 | |||
8 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" | 8 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" | |
9 | PKG_SUPPORTED_OPTIONS+= dtrace | 9 | PKG_SUPPORTED_OPTIONS+= dtrace | |
10 | .endif | 10 | .endif | |
11 | 11 | |||
12 | .include "../../mk/bsd.options.mk" | 12 | .include "../../mk/bsd.options.mk" | |
13 | 13 | |||
14 | .if !empty(PKG_OPTIONS:Minet6) | 14 | .if !empty(PKG_OPTIONS:Minet6) | |
@@ -20,27 +20,27 @@ CONFIGURE_ARGS+= --disable-ipv6 | @@ -20,27 +20,27 @@ CONFIGURE_ARGS+= --disable-ipv6 | |||
20 | .if !empty(PKG_OPTIONS:Mssl) | 20 | .if !empty(PKG_OPTIONS:Mssl) | |
21 | . include "../../security/openssl/buildlink3.mk" | 21 | . include "../../security/openssl/buildlink3.mk" | |
22 | . if ${OPSYS} == "SunOS" | 22 | . if ${OPSYS} == "SunOS" | |
23 | CONFIGURE_ARGS+= --with-openssl=yes | 23 | CONFIGURE_ARGS+= --with-openssl=yes | |
24 | LIBS.SunOS+= -lcrypto | 24 | LIBS.SunOS+= -lcrypto | |
25 | . else | 25 | . else | |
26 | CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} | 26 | CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} | |
27 | . endif | 27 | . endif | |
28 | .else | 28 | .else | |
29 | CONFIGURE_ARGS+= --without-openssl | 29 | CONFIGURE_ARGS+= --without-openssl | |
30 | .endif | 30 | .endif | |
31 | 31 | |||
32 | .if !empty(PKG_OPTIONS:Mmaintainer-zts) | 32 | .if !empty(PKG_OPTIONS:Mmaintainer-zts) | |
33 | CONFIGURE_ARGS+= --enable-maintainer-zts | 33 | CONFIGURE_ARGS+= --enable-zts | |
34 | .endif | 34 | .endif | |
35 | 35 | |||
36 | .if !empty(PKG_OPTIONS:Mreadline) | 36 | .if !empty(PKG_OPTIONS:Mreadline) | |
37 | .include "../../devel/readline/buildlink3.mk" | 37 | .include "../../devel/readline/buildlink3.mk" | |
38 | CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline} | 38 | CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline} | |
39 | .else | 39 | .else | |
40 | CONFIGURE_ARGS+= --without-readline | 40 | CONFIGURE_ARGS+= --without-readline | |
41 | .endif | 41 | .endif | |
42 | 42 | |||
43 | .if !empty(PKG_OPTIONS:Mdtrace) | 43 | .if !empty(PKG_OPTIONS:Mdtrace) | |
44 | PLIST.dtrace= yes | 44 | PLIST.dtrace= yes | |
45 | CONFIGURE_ARGS+= --enable-dtrace | 45 | CONFIGURE_ARGS+= --enable-dtrace | |
46 | 46 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.1 2021/11/27 07:24:43 taca Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2022/02/04 01:41:01 gutteridge Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX} | |
4 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2 php-embed | 4 | PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline argon2 php-embed | |
5 | PKG_SUPPORTED_OPTIONS+= disable-filter-url | 5 | PKG_SUPPORTED_OPTIONS+= disable-filter-url | |
6 | PKG_SUGGESTED_OPTIONS+= inet6 ssl readline | 6 | PKG_SUGGESTED_OPTIONS+= inet6 ssl readline | |
7 | 7 | |||
8 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" | 8 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD" | |
9 | PKG_SUPPORTED_OPTIONS+= dtrace | 9 | PKG_SUPPORTED_OPTIONS+= dtrace | |
10 | .endif | 10 | .endif | |
11 | 11 | |||
12 | .include "../../mk/bsd.options.mk" | 12 | .include "../../mk/bsd.options.mk" | |
13 | 13 | |||
14 | .if !empty(PKG_OPTIONS:Minet6) | 14 | .if !empty(PKG_OPTIONS:Minet6) | |
@@ -20,27 +20,27 @@ CONFIGURE_ARGS+= --disable-ipv6 | @@ -20,27 +20,27 @@ CONFIGURE_ARGS+= --disable-ipv6 | |||
20 | .if !empty(PKG_OPTIONS:Mssl) | 20 | .if !empty(PKG_OPTIONS:Mssl) | |
21 | . include "../../security/openssl/buildlink3.mk" | 21 | . include "../../security/openssl/buildlink3.mk" | |
22 | . if ${OPSYS} == "SunOS" | 22 | . if ${OPSYS} == "SunOS" | |
23 | CONFIGURE_ARGS+= --with-openssl=yes | 23 | CONFIGURE_ARGS+= --with-openssl=yes | |
24 | LIBS.SunOS+= -lcrypto | 24 | LIBS.SunOS+= -lcrypto | |
25 | . else | 25 | . else | |
26 | CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} | 26 | CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} | |
27 | . endif | 27 | . endif | |
28 | .else | 28 | .else | |
29 | CONFIGURE_ARGS+= --without-openssl | 29 | CONFIGURE_ARGS+= --without-openssl | |
30 | .endif | 30 | .endif | |
31 | 31 | |||
32 | .if !empty(PKG_OPTIONS:Mmaintainer-zts) | 32 | .if !empty(PKG_OPTIONS:Mmaintainer-zts) | |
33 | CONFIGURE_ARGS+= --enable-maintainer-zts | 33 | CONFIGURE_ARGS+= --enable-zts | |
34 | .endif | 34 | .endif | |
35 | 35 | |||
36 | .if !empty(PKG_OPTIONS:Mreadline) | 36 | .if !empty(PKG_OPTIONS:Mreadline) | |
37 | .include "../../devel/readline/buildlink3.mk" | 37 | .include "../../devel/readline/buildlink3.mk" | |
38 | CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline} | 38 | CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline} | |
39 | .else | 39 | .else | |
40 | CONFIGURE_ARGS+= --without-readline | 40 | CONFIGURE_ARGS+= --without-readline | |
41 | .endif | 41 | .endif | |
42 | 42 | |||
43 | .if !empty(PKG_OPTIONS:Mdtrace) | 43 | .if !empty(PKG_OPTIONS:Mdtrace) | |
44 | PLIST.dtrace= yes | 44 | PLIST.dtrace= yes | |
45 | CONFIGURE_ARGS+= --enable-dtrace | 45 | CONFIGURE_ARGS+= --enable-dtrace | |
46 | 46 |