pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/mpfr mpfr: update to 4.2.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e205ef2a80ee
branches:  trunk
changeset: 391523:e205ef2a80ee
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jan 09 13:25:11 2023 +0000

description:
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).

diffstat:

 math/mpfr/Makefile                        |   7 +--
 math/mpfr/builtin.mk                      |  12 +++---
 math/mpfr/distinfo                        |  12 ++-----
 math/mpfr/patches/patch-VERSION           |  14 --------
 math/mpfr/patches/patch-src_mpfr.h        |  29 ------------------
 math/mpfr/patches/patch-src_version.c     |  18 -----------
 math/mpfr/patches/patch-tests_tstckintc.c |  49 -------------------------------
 7 files changed, 13 insertions(+), 128 deletions(-)

diffs (207 lines):

diff -r 77370d1e8d8a -r e205ef2a80ee math/mpfr/Makefile
--- a/math/mpfr/Makefile        Mon Jan 09 13:20:42 2023 +0000
+++ b/math/mpfr/Makefile        Mon Jan 09 13:25:11 2023 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.46 2022/11/27 03:17:13 mef Exp $
+# $NetBSD: Makefile,v 1.47 2023/01/09 13:25:11 wiz Exp $
 
-DISTNAME=      mpfr-4.1.1
-PKGREVISION=   1
+DISTNAME=      mpfr-4.2.0
 CATEGORIES=    math
 MASTER_SITES=  http://www.mpfr.org/${DISTNAME}/
 EXTRACT_SUFX=  .tar.bz2
@@ -14,7 +13,7 @@
 USE_LIBTOOL=           yes
 GNU_CONFIGURE=         yes
 .include "../../mk/bsd.prefs.mk"
-.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9]*-*) || !empty(MACHINE_PLATFORM:MDragonFly-[0-5]*-*)
+.if !empty(MACHINE_PLATFORM:MNetBSD-[0-9]*-*)
 CONFIGURE_ARGS+=        --disable-float128
 .endif
 TEST_TARGET=           check
diff -r 77370d1e8d8a -r e205ef2a80ee math/mpfr/builtin.mk
--- a/math/mpfr/builtin.mk      Mon Jan 09 13:20:42 2023 +0000
+++ b/math/mpfr/builtin.mk      Mon Jan 09 13:25:11 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.7 2020/09/03 08:58:42 prlw1 Exp $
+# $NetBSD: builtin.mk,v 1.8 2023/01/09 13:25:11 wiz Exp $
 
 BUILTIN_PKG:=  mpfr
 
@@ -29,7 +29,7 @@
 ### a package name to represent the built-in package.
 ###
 .if !defined(BUILTIN_PKG.mpfr) && \
-    !empty(IS_BUILTIN.mpfr:M[yY][eE][sS]) && \
+    ${IS_BUILTIN.mpfr:tl} == yes && \
     empty(H_MPFR:M__nonexistent__)
 BUILTIN_VERSION.mpfr!= ${BUILTIN_VERSION_SCRIPT.mpfr} ${H_MPFR}
 BUILTIN_PKG.mpfr=      mpfr-${BUILTIN_VERSION.mpfr}
@@ -45,10 +45,10 @@
 USE_BUILTIN.mpfr=      no
 .  else
 USE_BUILTIN.mpfr=      ${IS_BUILTIN.mpfr}
-.    if defined(BUILTIN_PKG.mpfr) && !empty(IS_BUILTIN.mpfr:M[yY][eE][sS])
+.    if defined(BUILTIN_PKG.mpfr) && ${IS_BUILTIN.mpfr:tl} == yes
 USE_BUILTIN.mpfr=      yes
 .      for _dep_ in ${BUILDLINK_API_DEPENDS.mpfr}
-.        if !empty(USE_BUILTIN.mpfr:M[yY][eE][sS])
+.        if ${USE_BUILTIN.mpfr:tl} == yes
 USE_BUILTIN.mpfr!=     \
        if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.mpfr:Q}; then   \
                ${ECHO} yes;                                            \
@@ -63,8 +63,8 @@
 MAKEVARS+=             USE_BUILTIN.mpfr
 
 CHECK_BUILTIN.mpfr?=   no
-.if !empty(CHECK_BUILTIN.mpfr:M[Nn][Oo])
-.  if !empty(USE_BUILTIN.mpfr:M[Yy][Ee][Ss])
+.if ${CHECK_BUILTIN.mpfr:tl} == no
+.  if ${USE_BUILTIN.mpfr:tl} == yes
 MPFR_INCLUDE=          ${H_MPFR:H}
 BUILDLINK_INCDIRS.mpfr=        ${MPFR_INCLUDE}
 BUILDLINK_LIBDIRS.mpfr=        lib${LIBABISUFFIX}
diff -r 77370d1e8d8a -r e205ef2a80ee math/mpfr/distinfo
--- a/math/mpfr/distinfo        Mon Jan 09 13:20:42 2023 +0000
+++ b/math/mpfr/distinfo        Mon Jan 09 13:25:11 2023 +0000
@@ -1,9 +1,5 @@
-$NetBSD: distinfo,v 1.33 2022/11/27 03:17:13 mef Exp $
+$NetBSD: distinfo,v 1.34 2023/01/09 13:25:11 wiz Exp $
 
-BLAKE2s (mpfr-4.1.1.tar.bz2) = 2a859b41cc4482c530b020cfc9fe434db6fe8c6297c8bb104b7ed2c47de71b06
-SHA512 (mpfr-4.1.1.tar.bz2) = f0efefbfc4dec367cdab6299272062508ec80d53daa779fe05954cd626983277039a10d9d072ae686584f6ce75014ef2136e3f095128fa21fc994f7c6f33d674
-Size (mpfr-4.1.1.tar.bz2) = 1658183 bytes
-SHA1 (patch-VERSION) = 06d1fa35bbdeee9e860cfaa66e7e358014e5a05d
-SHA1 (patch-src_mpfr.h) = b8604763eaa2918053b9edceee509f9c7324fb82
-SHA1 (patch-src_version.c) = 8ff9100b82156c6ab23dab3d83c83f52e2eae11e
-SHA1 (patch-tests_tstckintc.c) = c106eaac3c4c69ff02202fecd726c528f8dae772
+BLAKE2s (mpfr-4.2.0.tar.bz2) = caeeb2c1c9de21db358bc6f02bb789b935d10ed6b73ab73569e1e3f6666378c5
+SHA512 (mpfr-4.2.0.tar.bz2) = cb2a9314b94e34a4ea49ce2619802e9420c982e55258a4bc423f802740632646a3d420e7fcf373b19618385b8b2b412abfa127e8f473053863424cac233893c0
+Size (mpfr-4.2.0.tar.bz2) = 1695616 bytes
diff -r 77370d1e8d8a -r e205ef2a80ee math/mpfr/patches/patch-VERSION
--- a/math/mpfr/patches/patch-VERSION   Mon Jan 09 13:20:42 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-VERSION,v 1.1 2022/11/27 03:17:13 mef Exp $
-
-openscad-2021.01nb13 failed with math/mpfr-4.1.1
-patch is supplied at  
- https://www.mpfr.org/mpfr-4.1.1/patch01
-and this is one of piece for file to file from above
-See:
- http://mail-index.netbsd.org/pkgsrc-users/2022/11/26/msg036540.html
-
---- mpfr-4.1.1-a/VERSION       2022-11-17 13:28:44.000000000 +0000
-+++ ./VERSION  2022-11-23 11:45:26.844475966 +0000
-@@ -1 +1 @@
--4.1.1
-+4.1.1-p1
diff -r 77370d1e8d8a -r e205ef2a80ee math/mpfr/patches/patch-src_mpfr.h
--- a/math/mpfr/patches/patch-src_mpfr.h        Mon Jan 09 13:20:42 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-$NetBSD: patch-src_mpfr.h,v 1.1 2022/11/27 03:17:13 mef Exp $
-
-openscad-2021.01nb13 failed with math/mpfr-4.1.1
-patch is supplied at  
- https://www.mpfr.org/mpfr-4.1.1/patch01
-and this is one of piece for file to file from above
-See:
- http://mail-index.netbsd.org/pkgsrc-users/2022/11/26/msg036540.html
-
---- mpfr-4.1.1-a/src/mpfr.h    2022-11-17 13:28:44.000000000 +0000
-+++ ./src/mpfr.h       2022-11-23 11:45:26.840475978 +0000
-@@ -27,7 +27,7 @@
- #define MPFR_VERSION_MAJOR 4
- #define MPFR_VERSION_MINOR 1
- #define MPFR_VERSION_PATCHLEVEL 1
--#define MPFR_VERSION_STRING "4.1.1"
-+#define MPFR_VERSION_STRING "4.1.1-p1"
- 
- /* User macros:
-    MPFR_USE_FILE:        Define it to make MPFR define functions dealing
-@@ -1027,7 +1027,7 @@
- #if __GNUC__ > 2 || __GNUC_MINOR__ >= 95
- #define mpfr_custom_get_kind(x)                                         \
-   __extension__ ({                                                      \
--    mpfr_ptr _x = (x);                                                  \
-+    mpfr_srcptr _x = (x);                                               \
-     _x->_mpfr_exp >  __MPFR_EXP_INF ?                                   \
-       (mpfr_int) MPFR_REGULAR_KIND * MPFR_SIGN (_x)                     \
-       : _x->_mpfr_exp == __MPFR_EXP_INF ?                               \
diff -r 77370d1e8d8a -r e205ef2a80ee math/mpfr/patches/patch-src_version.c
--- a/math/mpfr/patches/patch-src_version.c     Mon Jan 09 13:20:42 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-$NetBSD: patch-src_version.c,v 1.1 2022/11/27 03:17:13 mef Exp $
-
-openscad-2021.01nb13 failed with math/mpfr-4.1.1
-patch is supplied at  
- https://www.mpfr.org/mpfr-4.1.1/patch01
-and this is one of piece for file to file from above
-See:
- http://mail-index.netbsd.org/pkgsrc-users/2022/11/26/msg036540.html
-
---- mpfr-4.1.1-a/src/version.c 2022-11-17 13:28:44.000000000 +0000
-+++ ./src/version.c    2022-11-23 11:45:26.844475966 +0000
-@@ -25,5 +25,5 @@
- const char *
- mpfr_get_version (void)
- {
--  return "4.1.1";
-+  return "4.1.1-p1";
- }
diff -r 77370d1e8d8a -r e205ef2a80ee math/mpfr/patches/patch-tests_tstckintc.c
--- a/math/mpfr/patches/patch-tests_tstckintc.c Mon Jan 09 13:20:42 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-$NetBSD: patch-tests_tstckintc.c,v 1.1 2022/11/27 03:17:13 mef Exp $
-
-openscad-2021.01nb13 failed with math/mpfr-4.1.1
-patch is supplied at  
- https://www.mpfr.org/mpfr-4.1.1/patch01
-and this is one of piece for file to file from above
-See:
- http://mail-index.netbsd.org/pkgsrc-users/2022/11/26/msg036540.html
-
---- mpfr-4.1.1-a/tests/tstckintc.c     2022-05-06 13:47:17.000000000 +0000
-+++ ./tests/tstckintc.c        2022-11-23 11:45:26.836475987 +0000
-@@ -295,14 +295,16 @@
- test_nan_inf_zero (void)
- {
-   mpfr_ptr val;
-+  mpfr_srcptr sval;  /* for compilation error checking */
-   int sign;
-   int kind;
- 
-   reset_stack ();
- 
-   val = new_mpfr (MPFR_PREC_MIN);
-+  sval = val;
-   mpfr_set_nan (val);
--  kind = (mpfr_custom_get_kind) (val);
-+  kind = (mpfr_custom_get_kind) (sval);
-   if (kind != MPFR_NAN_KIND)
-     {
-       printf ("mpfr_custom_get_kind error: ");
-@@ -380,7 +382,8 @@
- dummy_set_si (long si)
- {
-   mpfr_t x;
--  long * r = dummy_new ();
-+  mpfr_srcptr px;  /* for compilation error checking */
-+  long *r = dummy_new ();
-   int i1, i2, i3, i4, i5;
- 
-   /* Check that the type "void *" can be used, like with the function.
-@@ -405,7 +408,8 @@
-   MPFR_ASSERTN (i5 == 1);
- 
-   mpfr_set_si (x, si, MPFR_RNDN);
--  r[0] = mpfr_custom_get_kind (x);
-+  px = x;
-+  r[0] = mpfr_custom_get_kind (px);
- 
-   /* Check that the type "void *" can be used in C, like with the function
-      (forbidden in C++). Also check side effects. */



Home | Main Index | Thread Index | Old Index