summaryrefslogtreecommitdiff
path: root/math/mpfr
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2022-11-27 03:17:13 +0000
committermef <mef@pkgsrc.org>2022-11-27 03:17:13 +0000
commit77ff5ce95e31271b051a8da60ab96158b3da0261 (patch)
tree4d72162f4aabd677982c6a1f7be03072fc7ebd60 /math/mpfr
parent27cdcc6b5ceeb30bf0080df7b0cb3af55adaade2 (diff)
downloadpkgsrc-77ff5ce95e31271b051a8da60ab96158b3da0261.tar.gz
(math/mpfr) Adding official patch mpfr-4.1.1 to 4.1.1p
openscad-2021.01nb13 failed with math/mpfr-4.1.1 http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20221123.2254/openscad-2021.01nb13/build.log For this problem and as well as https://github.com/CGAL/cgal/issues/7064 patch is supplied at https://www.mpfr.org/mpfr-4.1.1/patch01 and patches are one of the pieces: for file to file from above. See also: http://mail-index.netbsd.org/pkgsrc-users/2022/11/26/msg036540.html openscad has PKGREVISION++ because of icu update almost at the same time, and not packaged since then, so no PKGREVISION++ is necessary, (OK ?)
Diffstat (limited to 'math/mpfr')
-rw-r--r--math/mpfr/Makefile3
-rw-r--r--math/mpfr/distinfo6
-rw-r--r--math/mpfr/patches/patch-VERSION14
-rw-r--r--math/mpfr/patches/patch-src_mpfr.h29
-rw-r--r--math/mpfr/patches/patch-src_version.c18
-rw-r--r--math/mpfr/patches/patch-tests_tstckintc.c49
6 files changed, 117 insertions, 2 deletions
diff --git a/math/mpfr/Makefile b/math/mpfr/Makefile
index b7948041977..98a36995bd3 100644
--- a/math/mpfr/Makefile
+++ b/math/mpfr/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.45 2022/11/21 20:54:25 adam Exp $
+# $NetBSD: Makefile,v 1.46 2022/11/27 03:17:13 mef Exp $
DISTNAME= mpfr-4.1.1
+PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= http://www.mpfr.org/${DISTNAME}/
EXTRACT_SUFX= .tar.bz2
diff --git a/math/mpfr/distinfo b/math/mpfr/distinfo
index 13a7b3af8fd..5325699a4de 100644
--- a/math/mpfr/distinfo
+++ b/math/mpfr/distinfo
@@ -1,5 +1,9 @@
-$NetBSD: distinfo,v 1.32 2022/11/21 20:54:25 adam Exp $
+$NetBSD: distinfo,v 1.33 2022/11/27 03:17:13 mef 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
diff --git a/math/mpfr/patches/patch-VERSION b/math/mpfr/patches/patch-VERSION
new file mode 100644
index 00000000000..cc6b74c7b54
--- /dev/null
+++ b/math/mpfr/patches/patch-VERSION
@@ -0,0 +1,14 @@
+$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 --git a/math/mpfr/patches/patch-src_mpfr.h b/math/mpfr/patches/patch-src_mpfr.h
new file mode 100644
index 00000000000..4768723bd8c
--- /dev/null
+++ b/math/mpfr/patches/patch-src_mpfr.h
@@ -0,0 +1,29 @@
+$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 --git a/math/mpfr/patches/patch-src_version.c b/math/mpfr/patches/patch-src_version.c
new file mode 100644
index 00000000000..620fd50191f
--- /dev/null
+++ b/math/mpfr/patches/patch-src_version.c
@@ -0,0 +1,18 @@
+$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 --git a/math/mpfr/patches/patch-tests_tstckintc.c b/math/mpfr/patches/patch-tests_tstckintc.c
new file mode 100644
index 00000000000..b5efc61777c
--- /dev/null
+++ b/math/mpfr/patches/patch-tests_tstckintc.c
@@ -0,0 +1,49 @@
+$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. */