diff options
author | jklos <jklos> | 2016-01-21 21:47:23 +0000 |
---|---|---|
committer | jklos <jklos> | 2016-01-21 21:47:23 +0000 |
commit | b45fdf7e63267caa10fb25198f24b08afaf5e9ff (patch) | |
tree | 3eebd411ebf4f981e7a588f9009101ab5e605a06 /lang | |
parent | f24af874b72ff3be64a73f7334e6c08e92668228 (diff) | |
download | pkgsrc-b45fdf7e63267caa10fb25198f24b08afaf5e9ff.tar.gz |
Selectively enable just-in-time support in PCRE for supported architectures.
Same issue as seen in older php:
https://mail-index.netbsd.org/pkgsrc-bugs/2015/09/13/msg057792.html
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php70/distinfo | 3 | ||||
-rw-r--r-- | lang/php70/patches/patch-ext_pcre_pcrelib_config.h | 26 |
2 files changed, 28 insertions, 1 deletions
diff --git a/lang/php70/distinfo b/lang/php70/distinfo index 419e3e8b552..06cbec88218 100644 --- a/lang/php70/distinfo +++ b/lang/php70/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2016/01/08 03:29:12 taca Exp $ +$NetBSD: distinfo,v 1.4 2016/01/21 21:47:23 jklos Exp $ SHA1 (php-7.0.2.tar.bz2) = 24f6a1f926f5eda8bd8c0a343d3b175378d706bf RMD160 (php-7.0.2.tar.bz2) = 8a8acf7b0c4fa8b2c095645203d6a1e5dada27ca @@ -9,6 +9,7 @@ SHA1 (patch-configure) = 2ef84d463f4eeb35ecc3df82c1aaca8e74f3a276 SHA1 (patch-ext_gd_config.m4) = a7ec1bd0d876657d4b5e597b9aa1e97c2d2801e3 SHA1 (patch-ext_imap_config.m4) = f4e10ab81697b72019313f63bc630627a08efd92 SHA1 (patch-ext_opcache_config.m4) = d0dc7dbf2e5fe498cbf03c4514e4efdb6c6d2c4a +SHA1 (patch-ext_pcre_pcrelib_config.h) = 31ccd8562df390f8b0f9e7cc9168945286b65b6e SHA1 (patch-ext_pdo__mysql_config.m4) = b1ef91be5a729040197e9af50da0f5fd1f6c90a8 SHA1 (patch-ext_pdo_config.m4) = 522281775cc0e70a135b1f813158988ef1f3e244 SHA1 (patch-ext_phar_Makefile.frag) = 558869b60f8ed6674a3ba1d595a65f010df4c426 diff --git a/lang/php70/patches/patch-ext_pcre_pcrelib_config.h b/lang/php70/patches/patch-ext_pcre_pcrelib_config.h new file mode 100644 index 00000000000..c0d34bb724c --- /dev/null +++ b/lang/php70/patches/patch-ext_pcre_pcrelib_config.h @@ -0,0 +1,26 @@ +$NetBSD$ + +--- ext/pcre/pcrelib/config.h.orig 2016-01-06 10:05:25.000000000 +0000 ++++ ext/pcre/pcrelib/config.h +@@ -322,7 +322,20 @@ sure both macros are undefined; an emula + /* #undef STDC_HEADERS */ + + /* Define to any value to enable support for Just-In-Time compiling. */ +-#define SUPPORT_JIT ++#if defined(__i386__) || defined(__i386) \ ++|| defined(__x86_64__) \ ++|| defined(__arm__) || defined(__ARM__) \ ++|| defined (__aarch64__) \ ++|| defined(__ppc64__) || defined(__powerpc64__) || defined(_ARCH_PPC64) \ ++|| (defined(_POWER) && defined(__64BIT__)) \ ++|| defined(__ppc__) || defined(__powerpc__) || defined(_ARCH_PPC) \ ++|| defined(_ARCH_PWR) || defined(_ARCH_PWR2) || defined(_POWER) \ ++|| (defined(__mips__) && !defined(_LP64)) \ ++|| defined(__mips64) \ ++|| defined(__sparc__) || defined(__sparc) \ ++|| defined(__tilegx__) ++ #define SUPPORT_JIT ++#endif + + /* Define to any value to allow pcregrep to be linked with libbz2, so that it + is able to handle .bz2 files. */ |