This is a long overdue update of devel/gmp to the latest release
(6.1.1). The regression tests are fine on amd64 and i386. Since
this uses assembly optimizations just about everywhere, testing on
other archs would be appreciated, although I'm not sure what we're
going to do about failures.
(This was held up for so long because on the net6501 where I used
to test i386, the regression tests for both the old and newer
versions showed random failures. No more net6501, no more problems.)
Index: Makefile
===
RCS file: /cvs/ports/devel/gmp/Makefile,v
retrieving revision 1.29
diff -u -p -r1.29 Makefile
--- Makefile11 Mar 2016 20:28:24 - 1.29
+++ Makefile2 Nov 2016 20:10:05 -
@@ -2,23 +2,22 @@
COMMENT= library for arbitrary precision arithmetic
-DISTNAME= gmp-5.0.2
-REVISION= 3
-SHARED_LIBS += gmp 9.0 # 10.2
-SHARED_LIBS += gmpxx1.0 # 6.2
+DISTNAME= gmp-6.1.1
+SHARED_LIBS += gmp 10.0 # 13.1
+SHARED_LIBS += gmpxx2.0 # 9.1
CATEGORIES=devel math
-HOMEPAGE= http://gmplib.org/
+HOMEPAGE= https://gmplib.org/
MAINTAINER=Christian Weisgerber
-EXTRACT_SUFX= .tar.bz2
+EXTRACT_SUFX= .tar.xz
# LGPLv3+
PERMIT_PACKAGE_CDROM= Yes
-WANTLIB += m stdc++
+WANTLIB= m stdc++
-MASTER_SITES= ftp://ftp.gmplib.org/pub/${DISTNAME}/ \
+MASTER_SITES= https://gmplib.org/download/gmp/ \
${MASTER_SITE_GNU:=gmp/}
CONFIGURE_STYLE=gnu
Index: distinfo
===
RCS file: /cvs/ports/devel/gmp/distinfo,v
retrieving revision 1.15
diff -u -p -r1.15 distinfo
--- distinfo18 Jun 2015 02:37:25 - 1.15
+++ distinfo2 Nov 2016 20:10:05 -
@@ -1,2 +1,2 @@
-SHA256 (gmp-5.0.2.tar.bz2) = 28Lbdv3U6Z+F1eNao3jtYsKD4NWGuRvYcDr/daeATCg=
-SIZE (gmp-5.0.2.tar.bz2) = 2024576
+SHA256 (gmp-6.1.1.tar.xz) = 026cBd9IitYw//F+21AFHWQyNX+c4E40oJs9gYgl6DE=
+SIZE (gmp-6.1.1.tar.xz) = 1943164
Index: patches/patch-mpn_sh_add_n_s
===
RCS file: patches/patch-mpn_sh_add_n_s
diff -N patches/patch-mpn_sh_add_n_s
--- patches/patch-mpn_sh_add_n_s29 Jan 2013 12:40:06 - 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -
@@ -1,14 +0,0 @@
-$OpenBSD: patch-mpn_sh_add_n_s,v 1.1 2013/01/29 12:40:06 tobiasu Exp $
mpn/sh/add_n.s.origMon Jan 28 17:51:00 2013
-+++ mpn/sh/add_n.s Mon Jan 28 17:51:32 2013
-@@ -27,8 +27,8 @@
-
- .text
- .align 2
-- .global ___gmpn_add_n
--___gmpn_add_n:
-+ .global __gmpn_add_n
-+__gmpn_add_n:
- mov #0,r3 ! clear cy save reg
-
- Loop: mov.l @r5+,r1
Index: patches/patch-mpn_sh_sub_n_s
===
RCS file: patches/patch-mpn_sh_sub_n_s
diff -N patches/patch-mpn_sh_sub_n_s
--- patches/patch-mpn_sh_sub_n_s29 Jan 2013 12:40:06 - 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -
@@ -1,14 +0,0 @@
-$OpenBSD: patch-mpn_sh_sub_n_s,v 1.1 2013/01/29 12:40:06 tobiasu Exp $
mpn/sh/sub_n.s.origMon Jan 28 17:51:08 2013
-+++ mpn/sh/sub_n.s Mon Jan 28 17:51:43 2013
-@@ -27,8 +27,8 @@
-
- .text
- .align 2
-- .global ___gmpn_sub_n
--___gmpn_sub_n:
-+ .global __gmpn_sub_n
-+__gmpn_sub_n:
- mov #0,r3 ! clear cy save reg
-
- Loop: mov.l @r5+,r1
--
Christian "naddy" Weisgerber na...@mips.inka.de