Mon Aug 24 08:20:15 2020 UTC ()
mpfr: update to 4.1.0.

Changes from versions 4.0.* to version 4.1.0:
- The "épinards à la crème" release.
- Binary compatible with MPFR 4.0.*, though some minor changes in the
  behavior of the formatted output functions may be visible, regarded
  as underspecified behavior or bug fixes (see below).
- New --enable-formally-proven-code configure option, to use (when available)
  formally proven code.
- Improved __GMP_CC and __GMP_CFLAGS retrieval (in particular for MS Windows).
- Option -pedantic is now always removed from __GMP_CFLAGS (see INSTALL).
- Changed __float128 to the type _Float128 specified in ISO/IEC TS 18661.
  __float128 is used as a fallback if _Float128 is not supported.
- New function mpfr_get_str_ndigits about conversion to a string of digits.
- New function mpfr_dot for the dot product (incomplete, experimental).
- New functions mpfr_get_decimal128 and mpfr_set_decimal128 (available only
  when MPFR has been built with decimal float support).
- New function mpfr_cmpabs_ui.
- New function mpfr_total_order_p for the IEEE 754 totalOrder predicate.
- The mpfr_out_str function now accepts bases from -2 to -36, in order to
  follow mpfr_get_str and GMP's mpf_out_str functions (these cases gave an
  assertion failure, as with other invalid bases).
- Shared caches: cleanup; really detect lock failures (abort in this case).
- The behavior of the formatted output functions (mpfr_printf, etc.) with
  an empty precision field has improved: trailing zeros are kept in a way
  similar to the formatted output functions from C.
- Improved mpfr_add and mpfr_sub when all operands have a precision equal to
  twice the number of bits per word, e.g., 128 bits on a 64-bit platform.
- Optimized the tuning parameters for various architectures.
- Improved test coverage to 98.6% of code for x86_64.
- Bug fixes.
- MPFR manual: corrected/completed the mpfr_get_str description in order to
  follow the historical behavior and GMP's mpf_get_str function.
- New: optional "make check-exported-symbols", mainly for the MPFR developers
  and binary distributions, to check that MPFR does not define symbols with a
  GMP reserved prefix (experimental).
- Mini-gmp support: replaced --enable-mini-gmp configure option by
  --with-mini-gmp (still experimental, read doc/mini-gmp).
- A GCC bug on Sparc (present at least in old GCC 4.5.3 and 5.5.0 versions),
  which made several tests fail when TLS was enabled, is now avoided in the
  tests. The MPFR library itself was not affected and normal code using the
  MPFR library should not be affected either. Users and distributions that
  disabled TLS just because of the test failures can safely re-enable it.


(wiz)
diff -r1.43 -r1.44 pkgsrc/math/mpfr/Makefile
diff -r1.5 -r1.6 pkgsrc/math/mpfr/PLIST
diff -r1.5 -r1.6 pkgsrc/math/mpfr/builtin.mk
diff -r1.28 -r1.29 pkgsrc/math/mpfr/distinfo

cvs diff -r1.43 -r1.44 pkgsrc/math/mpfr/Makefile (expand / switch to unified diff)

--- pkgsrc/math/mpfr/Makefile 2020/01/26 17:31:38 1.43
+++ pkgsrc/math/mpfr/Makefile 2020/08/24 08:20:14 1.44
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.43 2020/01/26 17:31:38 rillig Exp $ 1# $NetBSD: Makefile,v 1.44 2020/08/24 08:20:14 wiz Exp $
2 2
3DISTNAME= mpfr-4.0.2 3DISTNAME= mpfr-4.1.0
4PKGREVISION= 1 
5CATEGORIES= math 4CATEGORIES= math
6MASTER_SITES= http://www.mpfr.org/${DISTNAME}/ 5MASTER_SITES= http://www.mpfr.org/${DISTNAME}/
7EXTRACT_SUFX= .tar.bz2 6EXTRACT_SUFX= .tar.bz2
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.mpfr.org/ 9HOMEPAGE= https://www.mpfr.org/
11COMMENT= GMP-based library for multiple-precision floating-point computations 10COMMENT= GMP-based library for multiple-precision floating-point computations
12LICENSE= gnu-lgpl-v3 11LICENSE= gnu-lgpl-v3
13 12
14.include "../../mk/bsd.prefs.mk" 13.include "../../mk/bsd.prefs.mk"
15GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
16.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9]*-*) || !empty(MACHINE_PLATFORM:MDragonFly-[0-5]*-*) 15.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9]*-*) || !empty(MACHINE_PLATFORM:MDragonFly-[0-5]*-*)
17CONFIGURE_ARGS+= --disable-float128 16CONFIGURE_ARGS+= --disable-float128

cvs diff -r1.5 -r1.6 pkgsrc/math/mpfr/PLIST (expand / switch to unified diff)

--- pkgsrc/math/mpfr/PLIST 2018/01/28 16:18:23 1.5
+++ pkgsrc/math/mpfr/PLIST 2020/08/24 08:20:14 1.6
@@ -1,19 +1,20 @@ @@ -1,19 +1,20 @@
1@comment $NetBSD: PLIST,v 1.5 2018/01/28 16:18:23 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.6 2020/08/24 08:20:14 wiz Exp $
2include/mpf2mpfr.h 2include/mpf2mpfr.h
3include/mpfr.h 3include/mpfr.h
4info/mpfr.info 4info/mpfr.info
5lib/libmpfr.la 5lib/libmpfr.la
6lib/pkgconfig/mpfr.pc 6lib/pkgconfig/mpfr.pc
7share/doc/mpfr/AUTHORS 7share/doc/mpfr/AUTHORS
8share/doc/mpfr/BUGS 8share/doc/mpfr/BUGS
9share/doc/mpfr/COPYING 9share/doc/mpfr/COPYING
10share/doc/mpfr/COPYING.LESSER 10share/doc/mpfr/COPYING.LESSER
11share/doc/mpfr/FAQ.html 11share/doc/mpfr/FAQ.html
12share/doc/mpfr/NEWS 12share/doc/mpfr/NEWS
13share/doc/mpfr/TODO 13share/doc/mpfr/TODO
14share/doc/mpfr/examples/ReadMe 14share/doc/mpfr/examples/ReadMe
15share/doc/mpfr/examples/can_round.c 15share/doc/mpfr/examples/can_round.c
16share/doc/mpfr/examples/divworst.c 16share/doc/mpfr/examples/divworst.c
17share/doc/mpfr/examples/rndo-add.c 17share/doc/mpfr/examples/rndo-add.c
18share/doc/mpfr/examples/sample.c 18share/doc/mpfr/examples/sample.c
 19share/doc/mpfr/examples/threads.c
19share/doc/mpfr/examples/version.c 20share/doc/mpfr/examples/version.c

cvs diff -r1.5 -r1.6 pkgsrc/math/mpfr/builtin.mk (expand / switch to unified diff)

--- pkgsrc/math/mpfr/builtin.mk 2019/11/02 16:16:20 1.5
+++ pkgsrc/math/mpfr/builtin.mk 2020/08/24 08:20:14 1.6
@@ -1,24 +1,24 @@ @@ -1,24 +1,24 @@
1# $NetBSD: builtin.mk,v 1.5 2019/11/02 16:16:20 rillig Exp $ 1# $NetBSD: builtin.mk,v 1.6 2020/08/24 08:20:14 wiz Exp $
2 2
3BUILTIN_PKG:= mpfr 3BUILTIN_PKG:= mpfr
4 4
5BUILTIN_FIND_HEADERS_VAR:= H_MPFR 5BUILTIN_FIND_HEADERS_VAR:= H_MPFR
6BUILTIN_FIND_HEADERS.H_MPFR= mpfr.h mpfr/mpfr.h 6BUILTIN_FIND_HEADERS.H_MPFR= mpfr.h mpfr/mpfr.h
7 7
8BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \ 8BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \
9 '/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \ 9 '/\#define[ \t]*MPFR_VERSION_STRING[ \t]/ { \
10 v = substr($$3, 2, length($$3)-2) } \ 10 v = substr($$3, 2, length($$3)-2) } \
11 END { gsub("-p",".",v); print v }' 11 END { gsub("-p",".",v); print v }'
12 12
13.include "../../mk/buildlink3/bsd.builtin.mk" 13.include "../../mk/buildlink3/bsd.builtin.mk"
14 14
15### 15###
16### Determine if there is a built-in implementation of the package and 16### Determine if there is a built-in implementation of the package and
17### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). 17### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
18### 18###
19.if !defined(IS_BUILTIN.mpfr) 19.if !defined(IS_BUILTIN.mpfr)
20IS_BUILTIN.mpfr= no 20IS_BUILTIN.mpfr= no
21. if empty(H_MPFR:M__nonexistent__) && empty(H_MPFR:M${LOCALBASE}/*) 21. if empty(H_MPFR:M__nonexistent__) && empty(H_MPFR:M${LOCALBASE}/*)
22IS_BUILTIN.mpfr= yes 22IS_BUILTIN.mpfr= yes
23. endif 23. endif
24.endif 24.endif
@@ -40,31 +40,31 @@ MAKEVARS+= BUILTIN_PKG.mpfr @@ -40,31 +40,31 @@ MAKEVARS+= BUILTIN_PKG.mpfr
40### Determine whether we should use the built-in implementation if it 40### Determine whether we should use the built-in implementation if it
41### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no"). 41### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
42### 42###
43.if !defined(USE_BUILTIN.mpfr) 43.if !defined(USE_BUILTIN.mpfr)
44. if ${PREFER.mpfr} == "pkgsrc" 44. if ${PREFER.mpfr} == "pkgsrc"
45USE_BUILTIN.mpfr= no 45USE_BUILTIN.mpfr= no
46. else 46. else
47USE_BUILTIN.mpfr= ${IS_BUILTIN.mpfr} 47USE_BUILTIN.mpfr= ${IS_BUILTIN.mpfr}
48. if defined(BUILTIN_PKG.mpfr) && !empty(IS_BUILTIN.mpfr:M[yY][eE][sS]) 48. if defined(BUILTIN_PKG.mpfr) && !empty(IS_BUILTIN.mpfr:M[yY][eE][sS])
49USE_BUILTIN.mpfr= yes 49USE_BUILTIN.mpfr= yes
50. for _dep_ in ${BUILDLINK_API_DEPENDS.mpfr} 50. for _dep_ in ${BUILDLINK_API_DEPENDS.mpfr}
51. if !empty(USE_BUILTIN.mpfr:M[yY][eE][sS]) 51. if !empty(USE_BUILTIN.mpfr:M[yY][eE][sS])
52USE_BUILTIN.mpfr!= \ 52USE_BUILTIN.mpfr!= \
53 if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.mpfr:Q}; then \ 53 if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.mpfr:Q}; then \
54 ${ECHO} yes; \ 54 ${ECHO} yes; \
55 else \ 55 else \
56 ${ECHO} no; \ 56 ${ECHO} no; \
57 fi 57 fi
58. endif 58. endif
59. endfor 59. endfor
60. endif 60. endif
61. endif # PREFER.mpfr 61. endif # PREFER.mpfr
62.endif 62.endif
63MAKEVARS+= USE_BUILTIN.mpfr 63MAKEVARS+= USE_BUILTIN.mpfr
64 64
65CHECK_BUILTIN.mpfr?= no 65CHECK_BUILTIN.mpfr?= no
66.if !empty(CHECK_BUILTIN.mpfr:M[Nn][Oo]) 66.if !empty(CHECK_BUILTIN.mpfr:M[Nn][Oo])
67. if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss]) 67. if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss])
68MPFR_INCLUDE= ${H_MPFR:H} 68MPFR_INCLUDE= ${H_MPFR:H}
69CONFIGURE_ARGS+= --with-mpfr-include=${MPFR_INCLUDE} 69CONFIGURE_ARGS+= --with-mpfr-include=${MPFR_INCLUDE}
70BUILDLINK_INCDIRS.mpfr= ${MPFR_INCLUDE} 70BUILDLINK_INCDIRS.mpfr= ${MPFR_INCLUDE}

cvs diff -r1.28 -r1.29 pkgsrc/math/mpfr/distinfo (expand / switch to unified diff)

--- pkgsrc/math/mpfr/distinfo 2019/02/13 22:26:50 1.28
+++ pkgsrc/math/mpfr/distinfo 2020/08/24 08:20:14 1.29
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.28 2019/02/13 22:26:50 wiz Exp $ 1$NetBSD: distinfo,v 1.29 2020/08/24 08:20:14 wiz Exp $
2 2
3SHA1 (mpfr-4.0.2.tar.bz2) = d6a313a3b1ceb9ff3be71cd18e45468837b7fd53 3SHA1 (mpfr-4.1.0.tar.bz2) = 877d35a8a81a4d2d9446252e9b4ae944754d8ceb
4RMD160 (mpfr-4.0.2.tar.bz2) = c418fb74617c3dc01802c3798c284077af209cf6 4RMD160 (mpfr-4.1.0.tar.bz2) = 7a6d028b63c864566f62d47a58521e00a2890c28
5SHA512 (mpfr-4.0.2.tar.bz2) = 18bb3a87123d02b7537bc298d41bdbb33e58b8c196cc4040578e3b470e86c6c89e1bd8ab8b3919d106fe5b86922ef8999dc1aba7c521ee90a69f690be288a30d 5SHA512 (mpfr-4.1.0.tar.bz2) = 410208ee0d48474c1c10d3d4a59decd2dfa187064183b09358ec4c4666e34d74383128436b404123b831e585d81a9176b24c7ced9d913967c5fce35d4040a0b4
6Size (mpfr-4.0.2.tar.bz2) = 1652074 bytes 6Size (mpfr-4.1.0.tar.bz2) = 1747243 bytes