pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/gmp Sunpro accepts __attribute__((mode ...)), bu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3bf5cdc63b9e
branches:  trunk
changeset: 535656:3bf5cdc63b9e
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Nov 25 08:35:31 2007 +0000

description:
Sunpro accepts __attribute__((mode ...)), but ignores it. Fixed the
configure test and reported it upstream.

diffstat:

 devel/gmp/Makefile         |   7 +++++--
 devel/gmp/distinfo         |   3 ++-
 devel/gmp/patches/patch-ab |  23 +++++++++++++++++++++++
 3 files changed, 30 insertions(+), 3 deletions(-)

diffs (65 lines):

diff -r f4c912ca31a7 -r 3bf5cdc63b9e devel/gmp/Makefile
--- a/devel/gmp/Makefile        Sat Nov 24 17:40:36 2007 +0000
+++ b/devel/gmp/Makefile        Sun Nov 25 08:35:31 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2007/11/07 00:18:17 gdt Exp $
+# $NetBSD: Makefile,v 1.48 2007/11/25 08:35:31 rillig Exp $
 
 DISTNAME=      gmp-4.2.2
 CATEGORIES=    devel math
@@ -14,7 +14,7 @@
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
 
 USE_LANGUAGES=         c c++ c99
-USE_TOOLS+=            gm4
+USE_TOOLS+=            gm4 autoconf
 USE_LIBTOOL=           yes
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --enable-cxx --without-readline
@@ -53,4 +53,7 @@
 .  endif
 .endif
 
+pre-configure:
+       cd ${WRKSRC} && type autoconf && autoconf
+
 .include "../../mk/bsd.pkg.mk"
diff -r f4c912ca31a7 -r 3bf5cdc63b9e devel/gmp/distinfo
--- a/devel/gmp/distinfo        Sat Nov 24 17:40:36 2007 +0000
+++ b/devel/gmp/distinfo        Sun Nov 25 08:35:31 2007 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.19 2007/10/30 01:36:59 bjs Exp $
+$NetBSD: distinfo,v 1.20 2007/11/25 08:35:31 rillig Exp $
 
 SHA1 (gmp-4.2.2.tar.bz2) = 8c5f9798956f9b0162a25a56477a3566a92abc72
 RMD160 (gmp-4.2.2.tar.bz2) = 4021720f78b02244197c0c49522289e7fe81aad9
 Size (gmp-4.2.2.tar.bz2) = 1747068 bytes
 SHA1 (patch-aa) = a53db34c8ecf38d6556a59a0fa7382456c30fab6
+SHA1 (patch-ab) = e768eca25c117871041d12a618e38d9d252f25e5
diff -r f4c912ca31a7 -r 3bf5cdc63b9e devel/gmp/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gmp/patches/patch-ab        Sun Nov 25 08:35:31 2007 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.7 2007/11/25 08:35:32 rillig 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
+@@ -3016,7 +3016,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