On 2019-11-09 4:46 AM, Christian Weisgerber wrote:
I would like to update the arbitrary-precision arithmetic libraries
devel/mpfr   -> 4.0.2pl1
devel/libmpc -> 1.1.0
The versions we have in the tree are quite old and portroach didn't
pick up the new releases.

These ports are dependencies for lang/gcc/8, which makes them important.

I've built these ports and successfully run the regression tests
on aarch64, amd64, i386.  Tests on OTHER ARCHITECTURES would be
appreciated, although I have to admit that I don't know quite what
to do when they turn up failures.


Both build and all tests pass on macppc.


~Brian


I have also built all ports with mpfr or mpc in WANTLIB.  lang/gcc/8
will need a new Ada bootstrap, and I'm looking at fixing
devel/ti-msp430gcc.  There was no further fallout.


Index: devel/mpfr/Makefile
===================================================================
RCS file: /cvs/ports/devel/mpfr/Makefile,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile
--- devel/mpfr/Makefile 12 Jul 2019 20:44:43 -0000      1.23
+++ devel/mpfr/Makefile 9 Nov 2019 09:32:34 -0000
@@ -2,10 +2,9 @@
COMMENT= library for multiple-precision floating-point computations -DISTNAME= mpfr-3.1.5
-PKGNAME=       ${DISTNAME}.2
-REVISION=      1
-SHARED_LIBS=   mpfr            1.2     # 5.5
+DISTNAME=      mpfr-4.0.2
+PKGNAME=       ${DISTNAME}.1
+SHARED_LIBS=   mpfr            2.0     # 6.2
  CATEGORIES=   devel math
  HOMEPAGE=     https://www.mpfr.org/
@@ -16,7 +15,7 @@ PERMIT_PACKAGE= Yes MASTER_SITES= ${HOMEPAGE}${DISTNAME}/
  DIST_SUBDIR=  ${DISTNAME}
-.for i in 01 02
+.for i in 01
  PATCHFILES+=  patch$i
  .endfor
  PATCH_DIST_STRIP=-p1
@@ -32,11 +31,8 @@ CONFIGURE_ARGS=      --with-gmp=${LOCALBASE}
  # bump and lang/gcc will need a new bootstrap.
  CONFIGURE_ARGS+=--disable-thread-safe
-# Do not install useless docs and misplaced examples.
-FAKE_FLAGS=    docdir=""
-
  post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mpfr
-       ${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/mpfr
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples
+       mv ${PREFIX}/share/doc/mpfr/examples ${PREFIX}/share/examples/mpfr
.include <bsd.port.mk>
Index: devel/mpfr/distinfo
===================================================================
RCS file: /cvs/ports/devel/mpfr/distinfo,v
retrieving revision 1.9
diff -u -p -r1.9 distinfo
--- devel/mpfr/distinfo 9 Feb 2017 21:13:18 -0000       1.9
+++ devel/mpfr/distinfo 9 Nov 2019 09:32:34 -0000
@@ -1,6 +1,4 @@
-SHA256 (mpfr-3.1.5/mpfr-3.1.5.tar.xz) = 
AV/egrOXn75fg1AZhtMoMxuo3fAIwf89o8I49JygYrw=
-SHA256 (mpfr-3.1.5/patch01) = 39YqQqI5xCe7RAh7SlIO281luuatH74HMDyW7oaWr70=
-SHA256 (mpfr-3.1.5/patch02) = iN/vptOcn9WiakDZu8c9+NqT+UbGXAYDgCYmHXjZGfU=
-SIZE (mpfr-3.1.5/mpfr-3.1.5.tar.xz) = 1126668
-SIZE (mpfr-3.1.5/patch01) = 2608
-SIZE (mpfr-3.1.5/patch02) = 3447
+SHA256 (mpfr-4.0.2/mpfr-4.0.2.tar.xz) = 
HTvnCGBOrg5C1Xi6k7OQwqFF8XdDp0TY8/jCrVhVo4o=
+SHA256 (mpfr-4.0.2/patch01) = 8tKlMKy15w4anVuAiB27SlBNVlNcS8ED2D4LtjAXICk=
+SIZE (mpfr-4.0.2/mpfr-4.0.2.tar.xz) = 1441996
+SIZE (mpfr-4.0.2/patch01) = 1577
Index: devel/mpfr/pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/mpfr/pkg/PLIST,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST
--- devel/mpfr/pkg/PLIST        16 Mar 2015 18:07:44 -0000      1.3
+++ devel/mpfr/pkg/PLIST        9 Nov 2019 09:32:34 -0000
@@ -6,8 +6,18 @@ include/mpfr.h
  lib/libmpfr.a
  lib/libmpfr.la
  @lib lib/libmpfr.so.${LIBmpfr_VERSION}
+lib/pkgconfig/mpfr.pc
+share/doc/mpfr/
+share/doc/mpfr/AUTHORS
+share/doc/mpfr/BUGS
+share/doc/mpfr/COPYING
+share/doc/mpfr/COPYING.LESSER
+share/doc/mpfr/FAQ.html
+share/doc/mpfr/NEWS
+share/doc/mpfr/TODO
  share/examples/mpfr/
  share/examples/mpfr/ReadMe
+share/examples/mpfr/can_round.c
  share/examples/mpfr/divworst.c
  share/examples/mpfr/rndo-add.c
  share/examples/mpfr/sample.c
Index: devel/libmpc/Makefile
===================================================================
RCS file: /cvs/ports/devel/libmpc/Makefile,v
retrieving revision 1.10
diff -u -p -r1.10 Makefile
--- devel/libmpc/Makefile       12 Jul 2019 20:44:39 -0000      1.10
+++ devel/libmpc/Makefile       9 Nov 2019 09:32:34 -0000
@@ -1,28 +1,26 @@
  #     $OpenBSD: Makefile,v 1.10 2019/07/12 20:44:39 sthen Exp $
-COMMENT= complex numbers math library
+COMMENT=       arbitrary-precision complex numbers math library
-V= 0.9
+V=             1.1.0
  DISTNAME=     mpc-${V}
  PKGNAME=      libmpc-${V}
-REVISION=      2
-SHARED_LIBS=   mpc     0.1     # 2.0
+SHARED_LIBS=   mpc     1.0     # 4.0
CATEGORIES= devel math -HOMEPAGE= http://www.multiprecision.org
-MASTER_SITES=  ${HOMEPAGE}/mpc/download/
+HOMEPAGE=      http://www.multiprecision.org/mpc/
+MASTER_SITES=  ${MASTER_SITE_GNU:=mpc/}
-# LGPLv2.1+
+# LGPLv3+
  PERMIT_PACKAGE=       Yes
LIB_DEPENDS= devel/mpfr \
                        devel/gmp,no_cxx,bootstrap
-WANTLIB=               mpfr>=1.0 gmp>=9.0 m
+WANTLIB=               gmp m mpfr
CONFIGURE_STYLE= gnu
  CONFIGURE_ARGS=               --with-mpfr=${LOCALBASE} \
                        --with-gmp=${LOCALBASE}
-
.include <bsd.port.mk>
Index: devel/libmpc/distinfo
===================================================================
RCS file: /cvs/ports/devel/libmpc/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- devel/libmpc/distinfo       18 Jan 2015 03:13:16 -0000      1.3
+++ devel/libmpc/distinfo       9 Nov 2019 09:32:34 -0000
@@ -1,2 +1,2 @@
-SHA256 (mpc-0.9.tar.gz) = /T7+Qi8NRUWSBZ6A8sANGi44G/K+2kJMUJSr1N6wSaw=
-SIZE (mpc-0.9.tar.gz) = 565953
+SHA256 (mpc-1.1.0.tar.gz) = aYXFOBQ8EgjcsaxCztrW/1LiZ7R+X5cBg6PnUSW0PC4=
+SIZE (mpc-1.1.0.tar.gz) = 701263

Reply via email to