lang/php74: switch to use external pcre Switch to use external pcre, fixing PR pkg/54793. Bump PKGREVISION.diff -r1.3 -r1.4 pkgsrc/lang/php74/Makefile
(taca)
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2020/01/18 21:49:43 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2020/01/21 14:16:26 taca Exp $ | |
2 | 2 | |||
3 | # | 3 | # | |
4 | # We can't omit PKGNAME here to handle PKG_OPTIONS. | 4 | # We can't omit PKGNAME here to handle PKG_OPTIONS. | |
5 | # | 5 | # | |
6 | PKGNAME= php-${PHP_VERSION:S/RC/rc/} | 6 | PKGNAME= php-${PHP_VERSION:S/RC/rc/} | |
7 | PKGREVISION= 1 | 7 | PKGREVISION= 2 | |
8 | 8 | |||
9 | COMMENT= PHP Hypertext Preprocessor version 7.4 | 9 | COMMENT= PHP Hypertext Preprocessor version 7.4 | |
10 | LICENSE= php | 10 | LICENSE= php | |
11 | 11 | |||
12 | TEST_TARGET= test | 12 | TEST_TARGET= test | |
13 | 13 | |||
14 | USE_TOOLS+= gmake lex | 14 | USE_TOOLS+= gmake lex | |
15 | LIBTOOL_OVERRIDE= # empty | 15 | LIBTOOL_OVERRIDE= # empty | |
16 | PHP_CHECK_INSTALLED= No | 16 | PHP_CHECK_INSTALLED= No | |
17 | 17 | |||
18 | PHP_VERSIONS_ACCEPTED= 74 | 18 | PHP_VERSIONS_ACCEPTED= 74 | |
19 | 19 | |||
20 | .include "Makefile.php" | 20 | .include "Makefile.php" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.php,v 1.1 2019/12/15 17:56:34 taca Exp $ | 1 | # $NetBSD: Makefile.php,v 1.2 2020/01/21 14:16:26 taca Exp $ | |
2 | # used by lang/php74/Makefile | 2 | # used by lang/php74/Makefile | |
3 | # used by www/ap-php/Makefile | 3 | # used by www/ap-php/Makefile | |
4 | # used by www/php-fpm/Makefile | 4 | # used by www/php-fpm/Makefile | |
5 | 5 | |||
6 | # segfaults when buidling with many compilers | 6 | # segfaults when buidling with many compilers | |
7 | # https://bugs.php.net/bug.php?id=74527 | 7 | # https://bugs.php.net/bug.php?id=74527 | |
8 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86236 | 8 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86236 | |
9 | .if ${MACHINE_ARCH} == "i386" | 9 | .if ${MACHINE_ARCH} == "i386" | |
10 | CONFIGURE_ARGS+= --disable-gcc-global-regs | 10 | CONFIGURE_ARGS+= --disable-gcc-global-regs | |
11 | .endif | 11 | .endif | |
12 | 12 | |||
13 | # the binary actually needs full dep on PCRE | 13 | # the binary actually needs full dep on PCRE | |
14 | BUILDLINK_DEPMETHOD.pcre2= full | 14 | BUILDLINK_DEPMETHOD.pcre2= full | |
@@ -23,28 +23,29 @@ PLIST_VARS+= dtrace | @@ -23,28 +23,29 @@ PLIST_VARS+= dtrace | |||
23 | 23 | |||
24 | DISTINFO_FILE= ${.CURDIR}/../../lang/php74/distinfo | 24 | DISTINFO_FILE= ${.CURDIR}/../../lang/php74/distinfo | |
25 | PATCHDIR= ${.CURDIR}/../../lang/php74/patches | 25 | PATCHDIR= ${.CURDIR}/../../lang/php74/patches | |
26 | 26 | |||
27 | CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR} | 27 | CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR} | |
28 | CONFIGURE_ARGS+= --with-config-file-scan-dir=${PKG_SYSCONFDIR}/php.d | 28 | CONFIGURE_ARGS+= --with-config-file-scan-dir=${PKG_SYSCONFDIR}/php.d | |
29 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | 29 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | |
30 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | 30 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | |
31 | 31 | |||
32 | CONFIGURE_ARGS+= --without-mysqli | 32 | CONFIGURE_ARGS+= --without-mysqli | |
33 | CONFIGURE_ARGS+= --without-iconv | 33 | CONFIGURE_ARGS+= --without-iconv | |
34 | CONFIGURE_ARGS+= --without-pear | 34 | CONFIGURE_ARGS+= --without-pear | |
35 | CONFIGURE_ARGS+= --without-sqlite3 | 35 | CONFIGURE_ARGS+= --without-sqlite3 | |
36 | #CONFIGURE_ARGS+= --without-intl | 36 | CONFIGURE_ARGS+= --with-external-pcre | |
37 | 37 | |||
38 | CONFIGURE_ARGS+= --disable-intl | |||
38 | CONFIGURE_ARGS+= --disable-posix | 39 | CONFIGURE_ARGS+= --disable-posix | |
39 | CONFIGURE_ARGS+= --disable-opcache | 40 | CONFIGURE_ARGS+= --disable-opcache | |
40 | CONFIGURE_ARGS+= --disable-pdo | 41 | CONFIGURE_ARGS+= --disable-pdo | |
41 | CONFIGURE_ARGS+= --disable-json | 42 | CONFIGURE_ARGS+= --disable-json | |
42 | 43 | |||
43 | CONFIGURE_ARGS+= --enable-cgi | 44 | CONFIGURE_ARGS+= --enable-cgi | |
44 | CONFIGURE_ARGS+= --enable-mysqlnd | 45 | CONFIGURE_ARGS+= --enable-mysqlnd | |
45 | CONFIGURE_ARGS+= --enable-xml | 46 | CONFIGURE_ARGS+= --enable-xml | |
46 | #CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX} | 47 | #CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX} | |
47 | 48 | |||
48 | CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}" | 49 | CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}" | |
49 | 50 | |||
50 | .include "../../textproc/libxml2/buildlink3.mk" | 51 | .include "../../textproc/libxml2/buildlink3.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2019/12/15 17:56:34 taca Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2020/01/21 14:16:26 taca Exp $ | |
2 | bin/phar | 2 | bin/phar | |
3 | bin/phar.phar | 3 | bin/phar.phar | |
4 | bin/php | 4 | bin/php | |
5 | bin/php-config | 5 | bin/php-config | |
6 | bin/phpdbg | 6 | bin/phpdbg | |
7 | bin/phpize | 7 | bin/phpize | |
8 | include/php/TSRM/TSRM.h | 8 | include/php/TSRM/TSRM.h | |
9 | include/php/TSRM/tsrm_win32.h | 9 | include/php/TSRM/tsrm_win32.h | |
10 | include/php/Zend/zend.h | 10 | include/php/Zend/zend.h | |
11 | include/php/Zend/zend_API.h | 11 | include/php/Zend/zend_API.h | |
12 | include/php/Zend/zend_alloc.h | 12 | include/php/Zend/zend_alloc.h | |
13 | include/php/Zend/zend_alloc_sizes.h | 13 | include/php/Zend/zend_alloc_sizes.h | |
14 | include/php/Zend/zend_arena.h | 14 | include/php/Zend/zend_arena.h | |
@@ -121,31 +121,26 @@ include/php/ext/mysqlnd/mysqlnd_plugin.h | @@ -121,31 +121,26 @@ include/php/ext/mysqlnd/mysqlnd_plugin.h | |||
121 | include/php/ext/mysqlnd/mysqlnd_portability.h | 121 | include/php/ext/mysqlnd/mysqlnd_portability.h | |
122 | include/php/ext/mysqlnd/mysqlnd_priv.h | 122 | include/php/ext/mysqlnd/mysqlnd_priv.h | |
123 | include/php/ext/mysqlnd/mysqlnd_protocol_frame_codec.h | 123 | include/php/ext/mysqlnd/mysqlnd_protocol_frame_codec.h | |
124 | include/php/ext/mysqlnd/mysqlnd_ps.h | 124 | include/php/ext/mysqlnd/mysqlnd_ps.h | |
125 | include/php/ext/mysqlnd/mysqlnd_read_buffer.h | 125 | include/php/ext/mysqlnd/mysqlnd_read_buffer.h | |
126 | include/php/ext/mysqlnd/mysqlnd_result.h | 126 | include/php/ext/mysqlnd/mysqlnd_result.h | |
127 | include/php/ext/mysqlnd/mysqlnd_result_meta.h | 127 | include/php/ext/mysqlnd/mysqlnd_result_meta.h | |
128 | include/php/ext/mysqlnd/mysqlnd_reverse_api.h | 128 | include/php/ext/mysqlnd/mysqlnd_reverse_api.h | |
129 | include/php/ext/mysqlnd/mysqlnd_statistics.h | 129 | include/php/ext/mysqlnd/mysqlnd_statistics.h | |
130 | include/php/ext/mysqlnd/mysqlnd_structs.h | 130 | include/php/ext/mysqlnd/mysqlnd_structs.h | |
131 | include/php/ext/mysqlnd/mysqlnd_vio.h | 131 | include/php/ext/mysqlnd/mysqlnd_vio.h | |
132 | include/php/ext/mysqlnd/mysqlnd_wireprotocol.h | 132 | include/php/ext/mysqlnd/mysqlnd_wireprotocol.h | |
133 | include/php/ext/mysqlnd/php_mysqlnd.h | 133 | include/php/ext/mysqlnd/php_mysqlnd.h | |
134 | include/php/ext/pcre/pcre2lib/config.h | |||
135 | include/php/ext/pcre/pcre2lib/pcre2.h | |||
136 | include/php/ext/pcre/pcre2lib/pcre2_internal.h | |||
137 | include/php/ext/pcre/pcre2lib/pcre2_intmodedep.h | |||
138 | include/php/ext/pcre/pcre2lib/pcre2_ucp.h | |||
139 | include/php/ext/pcre/php_pcre.h | 134 | include/php/ext/pcre/php_pcre.h | |
140 | include/php/ext/phar/php_phar.h | 135 | include/php/ext/phar/php_phar.h | |
141 | include/php/ext/session/mod_files.h | 136 | include/php/ext/session/mod_files.h | |
142 | include/php/ext/session/mod_user.h | 137 | include/php/ext/session/mod_user.h | |
143 | include/php/ext/session/php_session.h | 138 | include/php/ext/session/php_session.h | |
144 | include/php/ext/simplexml/php_simplexml.h | 139 | include/php/ext/simplexml/php_simplexml.h | |
145 | include/php/ext/simplexml/php_simplexml_exports.h | 140 | include/php/ext/simplexml/php_simplexml_exports.h | |
146 | include/php/ext/spl/php_spl.h | 141 | include/php/ext/spl/php_spl.h | |
147 | include/php/ext/spl/spl_array.h | 142 | include/php/ext/spl/spl_array.h | |
148 | include/php/ext/spl/spl_directory.h | 143 | include/php/ext/spl/spl_directory.h | |
149 | include/php/ext/spl/spl_dllist.h | 144 | include/php/ext/spl/spl_dllist.h | |
150 | include/php/ext/spl/spl_engine.h | 145 | include/php/ext/spl/spl_engine.h | |
151 | include/php/ext/spl/spl_exceptions.h | 146 | include/php/ext/spl/spl_exceptions.h |