pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/php71



Module Name:    pkgsrc
Committed By:   maya
Date:           Tue May  2 03:40:36 UTC 2017

Modified Files:
        pkgsrc/lang/php71: distinfo
        pkgsrc/lang/php71/patches: patch-configure

Log Message:
php71: disable the use of a global register for execute_data on i386.

This seems to fix segfaults that occur on netbsd/i386 + gcc 4.8.5,
tested only in QEMU.

Upstream bug https://bugs.php.net/bug.php?id=74527


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/lang/php71/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/php71/patches/patch-configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/php71/distinfo
diff -u pkgsrc/lang/php71/distinfo:1.18 pkgsrc/lang/php71/distinfo:1.19
--- pkgsrc/lang/php71/distinfo:1.18     Fri Apr 14 15:43:26 2017
+++ pkgsrc/lang/php71/distinfo  Tue May  2 03:40:36 2017
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.18 2017/04/14 15:43:26 taca Exp $
+$NetBSD: distinfo,v 1.19 2017/05/02 03:40:36 maya Exp $
 
 SHA1 (php-7.1.4.tar.bz2) = 87d6de530d7f4a9ca1bf5d29bf91eada9d0471e3
 RMD160 (php-7.1.4.tar.bz2) = b51d1ac458bcac07de63117e556d109040e98ac0
 SHA512 (php-7.1.4.tar.bz2) = a1dd5ffd756176e6ba600dd850510033d0d6f07aff314de69fec0c42437e6a006449e3f4f98679146a2f2645caa65ea351e31a8e1da7c14cc5260856ad40eaff
 Size (php-7.1.4.tar.bz2) = 15710808 bytes
 SHA1 (patch-acinclude.m4) = b682280fd89950c082c2226bdb7364b0dc475bad
-SHA1 (patch-configure) = a129e19ef87338f6e53ccc967c40ddcde7c7357c
+SHA1 (patch-configure) = 8c7633d0b309b4b08fddffa2780f68cb7f55d55e
 SHA1 (patch-ext_gd_config.m4) = 93b62daad93b9ee6dc28e06016f739bc26b0dc9f
 SHA1 (patch-ext_imap_config.m4) = f4e10ab81697b72019313f63bc630627a08efd92
 SHA1 (patch-ext_intl_config.m4) = 1ea3d3e6f05d5fed0bd4ca4518440199aec0954d

Index: pkgsrc/lang/php71/patches/patch-configure
diff -u pkgsrc/lang/php71/patches/patch-configure:1.1 pkgsrc/lang/php71/patches/patch-configure:1.2
--- pkgsrc/lang/php71/patches/patch-configure:1.1       Thu Aug  4 14:09:03 2016
+++ pkgsrc/lang/php71/patches/patch-configure   Tue May  2 03:40:36 2017
@@ -1,8 +1,27 @@
-$NetBSD: patch-configure,v 1.1 2016/08/04 14:09:03 jdolecek Exp $
+$NetBSD: patch-configure,v 1.2 2017/05/02 03:40:36 maya Exp $
 
---- configure.orig     2016-04-28 18:12:26.000000000 +0000
+Disable the use of a global register on i386.
+https://bugs.php.net/bug.php?id=74527
+
+Detect openssl in / too.
+
+Some additional changes.
+
+--- configure.orig     2017-04-11 15:37:37.000000000 +0000
 +++ configure
-@@ -6930,27 +6930,6 @@ EOF
+@@ -5737,10 +5737,7 @@ if test "$ZEND_GCC_GLOBAL_REGS" != "no";
+ #else
+ # define ZEND_GCC_VERSION 0
+ #endif
+-#if defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(i386)
+-# define ZEND_VM_FP_GLOBAL_REG "%esi"
+-# define ZEND_VM_IP_GLOBAL_REG "%edi"
+-#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__x86_64__)
++#if defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__x86_64__)
+ # define ZEND_VM_FP_GLOBAL_REG "%r14"
+ # define ZEND_VM_IP_GLOBAL_REG "%r15"
+ #elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__powerpc64__)
+@@ -6921,27 +6918,6 @@ EOF
      ;;
    esac
  
@@ -30,7 +49,7 @@ $NetBSD: patch-configure,v 1.1 2016/08/0
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  $as_echo "yes" >&6; }
  
-@@ -18408,7 +18387,7 @@ fi
+@@ -18402,7 +18378,7 @@ fi
      if test "$found_openssl" = "no"; then
  
      if test "$PHP_OPENSSL_DIR" = "yes"; then
@@ -39,7 +58,7 @@ $NetBSD: patch-configure,v 1.1 2016/08/0
      fi
  
      for i in $PHP_OPENSSL_DIR; do
-@@ -20572,7 +20551,7 @@ $as_echo "yes" >&6; }
+@@ -20603,7 +20579,7 @@ $as_echo "yes" >&6; }
      PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
  
  
@@ -48,7 +67,7 @@ $NetBSD: patch-configure,v 1.1 2016/08/0
  
  
    unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
-@@ -31742,7 +31721,7 @@ fi
+@@ -31773,7 +31749,7 @@ fi
      if test "$found_openssl" = "no"; then
  
      if test "$PHP_OPENSSL_DIR" = "yes"; then
@@ -57,7 +76,7 @@ $NetBSD: patch-configure,v 1.1 2016/08/0
      fi
  
      for i in $PHP_OPENSSL_DIR; do
-@@ -42631,7 +42610,7 @@ fi
+@@ -42665,7 +42641,7 @@ fi
      if test "$found_openssl" = "no"; then
  
      if test "$PHP_OPENSSL_DIR" = "yes"; then
@@ -66,7 +85,7 @@ $NetBSD: patch-configure,v 1.1 2016/08/0
      fi
  
      for i in $PHP_OPENSSL_DIR; do
-@@ -92806,7 +92785,7 @@ fi
+@@ -93774,7 +93750,7 @@ fi
      if test "$found_openssl" = "no"; then
  
      if test "$PHP_OPENSSL_DIR" = "yes"; then
@@ -75,7 +94,7 @@ $NetBSD: patch-configure,v 1.1 2016/08/0
      fi
  
      for i in $PHP_OPENSSL_DIR; do
-@@ -96439,12 +96418,7 @@ old_CC=$CC
+@@ -97400,12 +97376,7 @@ old_CC=$CC
  if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
    CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
    INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"



Home | Main Index | Thread Index | Old Index