pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/gmp Fix PR pkg/51788(fails in configure phase). ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cfd64dea0fd9
branches: trunk
changeset: 363753:cfd64dea0fd9
user: msaitoh <msaitoh%pkgsrc.org@localhost>
date: Thu Jun 15 04:11:50 2017 +0000
description:
Fix PR pkg/51788(fails in configure phase). Use calloc() instead of malloc().
This bug was observed with "ln -s J /etc/malloc.conf"
diffstat:
devel/gmp/distinfo | 4 ++--
devel/gmp/patches/patch-ab | 23 -----------------------
devel/gmp/patches/patch-acinclude.m4 | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 36 insertions(+), 25 deletions(-)
diffs (80 lines):
diff -r b1ee738e08b4 -r cfd64dea0fd9 devel/gmp/distinfo
--- a/devel/gmp/distinfo Thu Jun 15 02:00:11 2017 +0000
+++ b/devel/gmp/distinfo Thu Jun 15 04:11:50 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.52 2016/12/19 08:50:45 wiz Exp $
+$NetBSD: distinfo,v 1.53 2017/06/15 04:11:50 msaitoh Exp $
SHA1 (gmp-6.1.2.tar.bz2) = 366ded6a44cd108ba6b3f5b9a252eab3f3a95cdf
RMD160 (gmp-6.1.2.tar.bz2) = 03b905b4d7f243705b72b2d7595ce40df716020a
SHA512 (gmp-6.1.2.tar.bz2) = 268db88447174617f5746d9a6ba2b105940cc1a5e73155eb23b6eedf55f8e7724eda05d161b2de19aca9e794956d226ba9ed6f23124c7c82f7e1872e32b003cf
Size (gmp-6.1.2.tar.bz2) = 2386766 bytes
SHA1 (patch-aa) = dec275cbd5886a70f7cf0def1dedf01e7e4a49e9
-SHA1 (patch-ab) = 829812822a72a4926ea4cf6e8ffafdcd13a0f76c
SHA1 (patch-ac) = 6f7de0a285bec2c2645479d3090dc0276580f3d8
+SHA1 (patch-acinclude.m4) = 7c8522c0c16f576c2f20794f0f2cac5df0066737
diff -r b1ee738e08b4 -r cfd64dea0fd9 devel/gmp/patches/patch-ab
--- a/devel/gmp/patches/patch-ab Thu Jun 15 02:00:11 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-$NetBSD: patch-ab,v 1.8 2013/01/31 20:30:26 adam Exp $
-
-Fixed detection of __attribute__((__mode__(XX))) for sunpro.
-
---- acinclude.m4.orig 2007-09-01 12:09:03.000000000 +0200
-+++ acinclude.m4 2007-11-25 09:26:07.000000000 +0100
-@@ -3068,7 +3068,15 @@ dnl Introduced in gcc 2.2, but perhaps
- AC_DEFUN([GMP_C_ATTRIBUTE_MODE],
- [AC_CACHE_CHECK([whether gcc __attribute__ ((mode (XX))) works],
- gmp_cv_c_attribute_mode,
--[AC_TRY_COMPILE([typedef int SItype __attribute__ ((mode (SI)));], ,
-+[AC_TRY_COMPILE([
-+ typedef int SItype __attribute__ ((mode (SI)));
-+ typedef int QItype __attribute__ ((mode (QI)));
-+], [
-+ switch (1) {
-+ case sizeof(SItype):
-+ case sizeof(QItype): ;
-+ }
-+],
- gmp_cv_c_attribute_mode=yes, gmp_cv_c_attribute_mode=no)
- ])
- if test $gmp_cv_c_attribute_mode = yes; then
diff -r b1ee738e08b4 -r cfd64dea0fd9 devel/gmp/patches/patch-acinclude.m4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gmp/patches/patch-acinclude.m4 Thu Jun 15 04:11:50 2017 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-acinclude.m4,v 1.1 2017/06/15 04:11:50 msaitoh Exp $
+
+Fixed memory allocation.
+
+Fixed detection of __attribute__((__mode__(XX))) for sunpro.
+
+--- acinclude.m4.orig 2016-12-17 00:45:27.000000000 +0900
++++ acinclude.m4 2017-06-14 13:05:04.000000000 +0900
+@@ -741,7 +741,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)
+ {
+@@ -3228,7 +3228,15 @@ dnl Introduced in gcc 2.2, but perhaps
+ AC_DEFUN([GMP_C_ATTRIBUTE_MODE],
+ [AC_CACHE_CHECK([whether gcc __attribute__ ((mode (XX))) works],
+ gmp_cv_c_attribute_mode,
+-[AC_TRY_COMPILE([typedef int SItype __attribute__ ((mode (SI)));], ,
++[AC_TRY_COMPILE([
++ typedef int SItype __attribute__ ((mode (SI)));
++ typedef int QItype __attribute__ ((mode (QI)));
++], [
++ switch (1) {
++ case sizeof(SItype):
++ case sizeof(QItype): ;
++ }
++],
+ gmp_cv_c_attribute_mode=yes, gmp_cv_c_attribute_mode=no)
+ ])
+ if test $gmp_cv_c_attribute_mode = yes; then
Home |
Main Index |
Thread Index |
Old Index