Re: Update: devel/gmp 6.1.1

2016-11-09 Thread Christian Weisgerber
On 2016-11-02, Christian Weisgerber  wrote:

> This is a long overdue update of devel/gmp to the latest release
> (6.1.1).

Our old version of devel/mpfr does not build against this and also
requires a straightforward update. (See below.)

The lang/gcc/4.9 Ada bootstraps will also need regenerating.  I
have new bootstraps for amd64 and i386 ready; I lack access to other
architectures.  (Should we add libgmp, libmpfr, and libmpc to the
bootstraps?)

I intend to test these changes in a bulk build, but it may be a few
days before I can squeeze one in.


Index: Makefile
===
RCS file: /cvs/ports/devel/mpfr/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile11 Mar 2016 20:28:24 -  1.17
+++ Makefile9 Nov 2016 15:33:38 -
@@ -2,12 +2,10 @@
 
 COMMENT=   library for multiple-precision floating-point computations
 
-DISTNAME=  mpfr-3.1.0
-PKGNAME=   ${DISTNAME}.3# patch level
-SHARED_LIBS=   mpfr1.1 # 5.0
+DISTNAME=  mpfr-3.1.5
+SHARED_LIBS=   mpfr1.2 # 5.5
 CATEGORIES=devel math
 HOMEPAGE=  http://www.mpfr.org/
-REVISION=  0
 
 MAINTAINER=Christian Weisgerber 
 
@@ -15,13 +13,9 @@ MAINTAINER=  Christian Weisgerber =4.2.0
+LIB_DEPENDS=   devel/gmp
 WANTLIB=   gmp
 
 SEPARATE_BUILD=Yes
Index: distinfo
===
RCS file: /cvs/ports/devel/mpfr/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo18 Jan 2015 03:13:19 -  1.7
+++ distinfo9 Nov 2016 15:33:38 -
@@ -1,8 +1,2 @@
-SHA256 (mpfr-3.1.0/mpfr-3.1.0.tar.gz) = 
VKPLEQ8G9ft+sLwcjxewRQTTKu95QP8VDicLo8tcWME=
-SHA256 (mpfr-3.1.0/patch01) = 8vud3WpLLselgOWqjrJ1od/Rcg9SDhDStJEkb0UTwcU=
-SHA256 (mpfr-3.1.0/patch02) = kgXjxBKt0t2ok0atUv6EUtPmhVlfG5c/b/hGUFxZZ+Y=
-SHA256 (mpfr-3.1.0/patch03) = 8JaEmw9dtDL3DwlF02ZkSUPxHrjJUYX95I8n+qwv9As=
-SIZE (mpfr-3.1.0/mpfr-3.1.0.tar.gz) = 1593567
-SIZE (mpfr-3.1.0/patch01) = 1935
-SIZE (mpfr-3.1.0/patch02) = 4502
-SIZE (mpfr-3.1.0/patch03) = 8260
+SHA256 (mpfr-3.1.5.tar.xz) = AV/egrOXn75fg1AZhtMoMxuo3fAIwf89o8I49JygYrw=
+SIZE (mpfr-3.1.5.tar.xz) = 1126668
-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: Update: devel/gmp 6.1.1

2016-11-05 Thread Jeremie Courreges-Anglas
Christian Weisgerber  writes:

> 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.

Tests pass on sparc64 and alpha.  The update looks fine, I think gmpxx
could be fine with only a minor bump, but I doubt it gains us much.

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE



Update: devel/gmp 6.1.1

2016-11-02 Thread Christian Weisgerber
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