summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authormaya <maya>2017-01-22 11:37:29 +0000
committermaya <maya>2017-01-22 11:37:29 +0000
commitd7cb18905054313b764fc7831a9f3328e383fd64 (patch)
treef9dfca5d165bab361d23d75091e46f3933cb112b /lang
parent099cf450d1199dce15dfff8e794a928b428f1d75 (diff)
downloadpkgsrc-d7cb18905054313b764fc7831a9f3328e383fd64.tar.gz
php70: add workaround requested in PR pkg/51787, pcre-jit segfaults on
non-amd64 (i386, SPARC - at least). disable it until PHP, add note that it's mostly relevant for PCRE1 8.38, so if PHP updates to PCRE2 as they plan, it will be irrelevant. From Joern Clausen / cmb@php
Diffstat (limited to 'lang')
-rw-r--r--lang/php70/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/php70/Makefile b/lang/php70/Makefile
index 82a634fbe8a..b8f2a30e29c 100644
--- a/lang/php70/Makefile
+++ b/lang/php70/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/06/24 15:27:57 taca Exp $
+# $NetBSD: Makefile,v 1.5 2017/01/22 11:37:29 maya Exp $
#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -41,6 +41,13 @@ SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
+# segfault generating phar.phar for i386 & SPARC
+# revisit this if builtin PCRE is updated beyond PCRE1 8.38
+# https://bugs.php.net/bug.php?id=73880
+.if ${MACHINE_ARCH} != "x86_64"
+CONFIGURE_ARGS+= --without-pcre-jit
+.endif
+
# Make sure modules can link correctly
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= yes