svn commit: r434069 - head/math/gmp/files

Antoine Brodin antoine at FreeBSD.org
Tue Feb 14 09:40:21 UTC 2017


Author: antoine
Date: Tue Feb 14 09:40:20 2017
New Revision: 434069
URL: https://svnweb.freebsd.org/changeset/ports/434069

Log:
  Zero memory used by mpn_lshift_com configure test,  this should fix
  configure when malloc debugging is turned on (default on head)
  
  With help from:	dim@
  Reported by:	pkg-fallout

Added:
  head/math/gmp/files/
  head/math/gmp/files/patch-configure   (contents, props changed)

Added: head/math/gmp/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/gmp/files/patch-configure	Tue Feb 14 09:40:20 2017	(r434069)
@@ -0,0 +1,20 @@
+--- configure.orig	2016-12-16 15:45:32 UTC
++++ configure
+@@ -6776,7 +6776,7 @@ main ()
+   long i;
+   for (i = 0; i < 88 + 1; i++)
+     a[i] = ~0L;
+-  r = malloc (10000 * sizeof (unsigned long));
++  r = calloc (10000, sizeof(unsigned long));
+   r2 = r;
+   for (i = 0; i < 528; i += 23)
+     {
+@@ -8394,7 +8394,7 @@ main ()
+   long i;
+   for (i = 0; i < 88 + 1; i++)
+     a[i] = ~0L;
+-  r = malloc (10000 * sizeof (unsigned long));
++  r = calloc (10000, sizeof(unsigned long));
+   r2 = r;
+   for (i = 0; i < 528; i += 23)
+     {


More information about the svn-ports-head mailing list