pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang Fix PHP buidl on i386



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fca5afd92633
branches:  trunk
changeset: 311021:fca5afd92633
user:      manu <manu%pkgsrc.org@localhost>
date:      Mon Jul 30 07:17:15 2018 +0000

description:
Fix PHP buidl on i386

The --disable-gcc-global-regs fix is not enough, we really need
GCC 6 to avoid php crashing during www/ap-ph build.

diffstat:

 lang/php70/Makefile.php |  8 +++++++-
 lang/php71/Makefile.php |  8 +++++++-
 lang/php72/Makefile.php |  8 +++++++-
 3 files changed, 21 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r 68382840ae87 -r fca5afd92633 lang/php70/Makefile.php
--- a/lang/php70/Makefile.php   Mon Jul 30 05:30:54 2018 +0000
+++ b/lang/php70/Makefile.php   Mon Jul 30 07:17:15 2018 +0000
@@ -1,8 +1,14 @@
-# $NetBSD: Makefile.php,v 1.9 2018/07/18 07:33:12 manu Exp $
+# $NetBSD: Makefile.php,v 1.10 2018/07/30 07:17:15 manu Exp $
 # used by lang/php70/Makefile
 # used by www/ap-php/Makefile
 # used by www/php-fpm/Makefile
 
+# With --disable-gcc-global-regs, works around
+# https://bugs.php.net/bug.php?id=74527
+.if ${MACHINE_ARCH} == "i386"
+GCC_REQD+=             6.4
+.endif
+
 .include "../../lang/php70/Makefile.common"
 
 DISTINFO_FILE= ${.CURDIR}/../../lang/php70/distinfo
diff -r 68382840ae87 -r fca5afd92633 lang/php71/Makefile.php
--- a/lang/php71/Makefile.php   Mon Jul 30 05:30:54 2018 +0000
+++ b/lang/php71/Makefile.php   Mon Jul 30 07:17:15 2018 +0000
@@ -1,8 +1,14 @@
-# $NetBSD: Makefile.php,v 1.8 2018/07/18 07:33:12 manu Exp $
+# $NetBSD: Makefile.php,v 1.9 2018/07/30 07:17:16 manu Exp $
 # used by lang/php71/Makefile
 # used by www/ap-php/Makefile
 # used by www/php-fpm/Makefile
 
+# With --disable-gcc-global-regs, works around 
+# https://bugs.php.net/bug.php?id=74527
+.if ${MACHINE_ARCH} == "i386"
+GCC_REQD+=             6.4
+.endif
+
 .include "../../lang/php71/Makefile.common"
 
 DISTINFO_FILE= ${.CURDIR}/../../lang/php71/distinfo
diff -r 68382840ae87 -r fca5afd92633 lang/php72/Makefile.php
--- a/lang/php72/Makefile.php   Mon Jul 30 05:30:54 2018 +0000
+++ b/lang/php72/Makefile.php   Mon Jul 30 07:17:15 2018 +0000
@@ -1,8 +1,14 @@
-# $NetBSD: Makefile.php,v 1.6 2018/07/18 07:33:12 manu Exp $
+# $NetBSD: Makefile.php,v 1.7 2018/07/30 07:17:16 manu Exp $
 # used by lang/php72/Makefile
 # used by www/ap-php/Makefile
 # used by www/php-fpm/Makefile
 
+# With --disable-gcc-global-regs, works around 
+# https://bugs.php.net/bug.php?id=74527
+.if ${MACHINE_ARCH} == "i386"
+GCC_REQD+=             6.4
+.endif
+
 # the binary actually needs full dep on PCRE
 BUILDLINK_DEPMETHOD.pcre=      full
 



Home | Main Index | Thread Index | Old Index