Mon Jan 9 13:25:12 2023 UTC ()
mpfr: update to 4.2.0.

Changes from versions 4.1.* to version 4.2.0:
- The "fondue savoyarde" release.
- Binary compatible with MPFR 4.0.* and 4.1.*, 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 functions mpfr_cosu, mpfr_sinu, mpfr_tanu, mpfr_acosu, mpfr_asinu,
  mpfr_atanu and mpfr_atan2u.
- New functions mpfr_cospi, mpfr_sinpi, mpfr_tanpi, mpfr_acospi, mpfr_asinpi,
  mpfr_atanpi and mpfr_atan2pi.
- New functions mpfr_log2p1, mpfr_log10p1, mpfr_exp2m1, mpfr_exp10m1 and
  mpfr_compound_si.
- New functions mpfr_fmod_ui, mpfr_powr, mpfr_pown, mpfr_pow_uj, mpfr_pow_sj
  and mpfr_rootn_si (mpfr_pown is actually a macro defined as an alias for
  mpfr_pow_sj).
- Bug fixes.
  In particular, for the formatted output functions (mpfr_printf, etc.),
  the case where the precision consists only of a period has been fixed
  to be like ".0" as specified in the ISO C standard, and the manual has
  been corrected and clarified.
  The macros of the custom interface have also been fixed: they now behave
  like functions (except a minor limitation for mpfr_custom_init_set).


(wiz)
diff -r1.46 -r1.47 pkgsrc/math/mpfr/Makefile
diff -r1.7 -r1.8 pkgsrc/math/mpfr/builtin.mk
diff -r1.33 -r1.34 pkgsrc/math/mpfr/distinfo
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-VERSION
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-src_mpfr.h
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-src_version.c
diff -r1.1 -r0 pkgsrc/math/mpfr/patches/patch-tests_tstckintc.c

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

--- pkgsrc/math/mpfr/Makefile 2022/11/27 03:17:13 1.46
+++ pkgsrc/math/mpfr/Makefile 2023/01/09 13:25:11 1.47
@@ -1,30 +1,29 @@ @@ -1,30 +1,29 @@
1# $NetBSD: Makefile,v 1.46 2022/11/27 03:17:13 mef Exp $ 1# $NetBSD: Makefile,v 1.47 2023/01/09 13:25:11 wiz Exp $
2 2
3DISTNAME= mpfr-4.1.1 3DISTNAME= mpfr-4.2.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
14USE_LIBTOOL= yes 13USE_LIBTOOL= yes
15GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
16.include "../../mk/bsd.prefs.mk" 15.include "../../mk/bsd.prefs.mk"
17.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9]*-*) || !empty(MACHINE_PLATFORM:MDragonFly-[0-5]*-*) 16.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9]*-*)
18CONFIGURE_ARGS+= --disable-float128 17CONFIGURE_ARGS+= --disable-float128
19.endif 18.endif
20TEST_TARGET= check 19TEST_TARGET= check
21INFO_FILES= yes 20INFO_FILES= yes
22 21
23PKGCONFIG_OVERRIDE+= mpfr.pc.in 22PKGCONFIG_OVERRIDE+= mpfr.pc.in
24 23
25BUILDLINK_API_DEPENDS.gmp+= gmp>=5.0 24BUILDLINK_API_DEPENDS.gmp+= gmp>=5.0
26.include "../../devel/gmp/buildlink3.mk" 25.include "../../devel/gmp/buildlink3.mk"
27.include "../../mk/bsd.pkg.mk" 26.include "../../mk/bsd.pkg.mk"
28 27
29.if (${MACHINE_ARCH} == alpha) 28.if (${MACHINE_ARCH} == alpha)
30CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-mieee}" 29CONFIGURE_ENV+= CFLAGS="${CFLAGS:N-mieee}"

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

--- pkgsrc/math/mpfr/builtin.mk 2020/09/03 08:58:42 1.7
+++ pkgsrc/math/mpfr/builtin.mk 2023/01/09 13:25:11 1.8
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: builtin.mk,v 1.7 2020/09/03 08:58:42 prlw1 Exp $ 1# $NetBSD: builtin.mk,v 1.8 2023/01/09 13:25:11 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
@@ -19,56 +19,56 @@ BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \ @@ -19,56 +19,56 @@ BUILTIN_VERSION_SCRIPT.mpfr= ${AWK} \
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
25MAKEVARS+= IS_BUILTIN.mpfr 25MAKEVARS+= IS_BUILTIN.mpfr
26 26
27### 27###
28### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to 28### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
29### a package name to represent the built-in package. 29### a package name to represent the built-in package.
30### 30###
31.if !defined(BUILTIN_PKG.mpfr) && \ 31.if !defined(BUILTIN_PKG.mpfr) && \
32 !empty(IS_BUILTIN.mpfr:M[yY][eE][sS]) && \ 32 ${IS_BUILTIN.mpfr:tl} == yes && \
33 empty(H_MPFR:M__nonexistent__) 33 empty(H_MPFR:M__nonexistent__)
34BUILTIN_VERSION.mpfr!= ${BUILTIN_VERSION_SCRIPT.mpfr} ${H_MPFR} 34BUILTIN_VERSION.mpfr!= ${BUILTIN_VERSION_SCRIPT.mpfr} ${H_MPFR}
35BUILTIN_PKG.mpfr= mpfr-${BUILTIN_VERSION.mpfr} 35BUILTIN_PKG.mpfr= mpfr-${BUILTIN_VERSION.mpfr}
36.endif 36.endif
37MAKEVARS+= BUILTIN_PKG.mpfr 37MAKEVARS+= BUILTIN_PKG.mpfr
38 38
39### 39###
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) && ${IS_BUILTIN.mpfr:tl} == yes
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 ${USE_BUILTIN.mpfr:tl} == yes
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 ${CHECK_BUILTIN.mpfr:tl} == no
67. if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss]) 67. if ${USE_BUILTIN.mpfr:tl} == yes
68MPFR_INCLUDE= ${H_MPFR:H} 68MPFR_INCLUDE= ${H_MPFR:H}
69BUILDLINK_INCDIRS.mpfr= ${MPFR_INCLUDE} 69BUILDLINK_INCDIRS.mpfr= ${MPFR_INCLUDE}
70BUILDLINK_LIBDIRS.mpfr= lib${LIBABISUFFIX} 70BUILDLINK_LIBDIRS.mpfr= lib${LIBABISUFFIX}
71CPPFLAGS+= -I${MPFR_INCLUDE} 71CPPFLAGS+= -I${MPFR_INCLUDE}
72CFLAGS+= -I${MPFR_INCLUDE} 72CFLAGS+= -I${MPFR_INCLUDE}
73. endif 73. endif
74.endif # CHECK_BUILTIN.mpfr 74.endif # CHECK_BUILTIN.mpfr

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

--- pkgsrc/math/mpfr/distinfo 2022/11/27 03:17:13 1.33
+++ pkgsrc/math/mpfr/distinfo 2023/01/09 13:25:11 1.34
@@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
1$NetBSD: distinfo,v 1.33 2022/11/27 03:17:13 mef Exp $ 1$NetBSD: distinfo,v 1.34 2023/01/09 13:25:11 wiz Exp $
2 2
3BLAKE2s (mpfr-4.1.1.tar.bz2) = 2a859b41cc4482c530b020cfc9fe434db6fe8c6297c8bb104b7ed2c47de71b06 3BLAKE2s (mpfr-4.2.0.tar.bz2) = caeeb2c1c9de21db358bc6f02bb789b935d10ed6b73ab73569e1e3f6666378c5
4SHA512 (mpfr-4.1.1.tar.bz2) = f0efefbfc4dec367cdab6299272062508ec80d53daa779fe05954cd626983277039a10d9d072ae686584f6ce75014ef2136e3f095128fa21fc994f7c6f33d674 4SHA512 (mpfr-4.2.0.tar.bz2) = cb2a9314b94e34a4ea49ce2619802e9420c982e55258a4bc423f802740632646a3d420e7fcf373b19618385b8b2b412abfa127e8f473053863424cac233893c0
5Size (mpfr-4.1.1.tar.bz2) = 1658183 bytes 5Size (mpfr-4.2.0.tar.bz2) = 1695616 bytes
6SHA1 (patch-VERSION) = 06d1fa35bbdeee9e860cfaa66e7e358014e5a05d 
7SHA1 (patch-src_mpfr.h) = b8604763eaa2918053b9edceee509f9c7324fb82 
8SHA1 (patch-src_version.c) = 8ff9100b82156c6ab23dab3d83c83f52e2eae11e 
9SHA1 (patch-tests_tstckintc.c) = c106eaac3c4c69ff02202fecd726c528f8dae772 

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-VERSION

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-src_mpfr.h

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-src_version.c

File Deleted: pkgsrc/math/mpfr/patches/Attic/patch-tests_tstckintc.c