pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/mpcomplex
Module Name: pkgsrc
Committed By: wiz
Date: Sun Oct 29 18:06:32 UTC 2023
Modified Files:
pkgsrc/math/mpcomplex: Makefile builtin.mk distinfo inplace.mk
Added Files:
pkgsrc/math/mpcomplex/patches: patch-src_get__x.c
Removed Files:
pkgsrc/math/mpcomplex/patches: patch-src_get.c
Log Message:
mpcomplex: update to 1.3.1.
Fix pkglint, including renaming a patch.
Changes in version 1.3.1, released in December 2022:
- Bug fix: It is again possible to include mpc.h without including
stdio.h.
Changes in version 1.3.0 ("Ipomoea batatas"), released in December 2022:
- New function: mpc_agm
- New rounding modes "away from zero", indicated by the letter "A" and
corresponding to MPFR_RNDA on the designated real or imaginary part.
- New experimental ball arithmetic.
- New experimental function: mpc_eta_fund
- Bug fixes:
- mpc_asin for asin(z) with small |Re(z)| and tiny |Im(z)|
- mpc_pow_fr: sign of zero part of result when the base has up to sign
the same real and imaginary part, and the exponent is an even
positive integer
- mpc_fma: the returned 'int' value was incorrect in some cases (indicating
whether the rounded real/imaginary parts were smaller/equal/greater
than the exact values), but the computed complex value was correct.
- Remove the unmaintained Makefile.vc; build files for Visual Studio
can be found at https://github.com/BrianGladman/mpc .
Changes in version 1.2.1, released in October 2020:
- Bug fixes:
- Fix an incompatibility problem with GMP 6.0 and before.
- Fix an intermediate overflow in asin.
Changes in version 1.2.0 ("Hyacinthus orientalis"), released in August 2020:
- Minimally required library version: MPFR 4.1.0
- New functions: mpc_sum, mpc_dot
- Several functions are more robust with a reduced exponent range
(for example corresponding to IEEE 754 binary formats)
- New tool mpcheck.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/math/mpcomplex/Makefile \
pkgsrc/math/mpcomplex/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/math/mpcomplex/builtin.mk
cvs rdiff -u -r1.4 -r1.5 pkgsrc/math/mpcomplex/inplace.mk
cvs rdiff -u -r1.2 -r0 pkgsrc/math/mpcomplex/patches/patch-src_get.c
cvs rdiff -u -r0 -r1.1 pkgsrc/math/mpcomplex/patches/patch-src_get__x.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/math/mpcomplex/Makefile
diff -u pkgsrc/math/mpcomplex/Makefile:1.11 pkgsrc/math/mpcomplex/Makefile:1.12
--- pkgsrc/math/mpcomplex/Makefile:1.11 Mon Jan 29 14:49:15 2018
+++ pkgsrc/math/mpcomplex/Makefile Sun Oct 29 18:06:32 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2018/01/29 14:49:15 ryoon Exp $
+# $NetBSD: Makefile,v 1.12 2023/10/29 18:06:32 wiz Exp $
-DISTNAME= mpc-1.1.0
+DISTNAME= mpc-1.3.1
PKGNAME= ${DISTNAME:S/mpc/mpcomplex/}
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU:=mpc/}
Index: pkgsrc/math/mpcomplex/distinfo
diff -u pkgsrc/math/mpcomplex/distinfo:1.11 pkgsrc/math/mpcomplex/distinfo:1.12
--- pkgsrc/math/mpcomplex/distinfo:1.11 Tue Oct 26 10:55:49 2021
+++ pkgsrc/math/mpcomplex/distinfo Sun Oct 29 18:06:32 2023
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.11 2021/10/26 10:55:49 nia Exp $
+$NetBSD: distinfo,v 1.12 2023/10/29 18:06:32 wiz Exp $
-BLAKE2s (mpc-1.1.0.tar.gz) = 5e07eb41d890736a6c1b7b7e7b8290ff76348bb283e27fb7c8fe329c9e128cec
-SHA512 (mpc-1.1.0.tar.gz) = 72d657958b07c7812dc9c7cbae093118ce0e454c68a585bfb0e2fa559f1bf7c5f49b93906f580ab3f1073e5b595d23c6494d4d76b765d16dde857a18dd239628
-Size (mpc-1.1.0.tar.gz) = 701263 bytes
-SHA1 (patch-src_get.c) = 25495981765971c031b5a92dce098a44e53413c8
+BLAKE2s (mpc-1.3.1.tar.gz) = 5d2921ff2ec9523efd7063c63ee57dcb0905b398a8a2a2e58a952846e4dc934b
+SHA512 (mpc-1.3.1.tar.gz) = 4bab4ef6076f8c5dfdc99d810b51108ced61ea2942ba0c1c932d624360a5473df20d32b300fc76f2ba4aa2a97e1f275c9fd494a1ba9f07c4cb2ad7ceaeb1ae97
+Size (mpc-1.3.1.tar.gz) = 773573 bytes
+SHA1 (patch-src_get__x.c) = 25495981765971c031b5a92dce098a44e53413c8
Index: pkgsrc/math/mpcomplex/builtin.mk
diff -u pkgsrc/math/mpcomplex/builtin.mk:1.2 pkgsrc/math/mpcomplex/builtin.mk:1.3
--- pkgsrc/math/mpcomplex/builtin.mk:1.2 Sat Nov 2 16:16:20 2019
+++ pkgsrc/math/mpcomplex/builtin.mk Sun Oct 29 18:06:32 2023
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.2 2019/11/02 16:16:20 rillig Exp $
+# $NetBSD: builtin.mk,v 1.3 2023/10/29 18:06:32 wiz Exp $
BUILTIN_PKG:= mpcomplex
@@ -6,8 +6,8 @@ PKGCONFIG_FILE.mpcomplex= /usr/include/m
PKGCONFIG_BASE.mpcomplex= /usr
BUILTIN_VERSION_SCRIPT.mpcomplex= ${AWK} \
- '/\#define[ \t]*MPC_VERSION_STRING[ \t]/ { \
- v = substr($$3, 2, length($$3)-2); } \
- END { print v; }'
+ '/\#define[ \t]*MPC_VERSION_STRING[ \t]/ { \
+ v = substr($$3, 2, length($$3)-2); } \
+ END { print v; }'
.include "../../mk/buildlink3/pkgconfig-builtin.mk"
Index: pkgsrc/math/mpcomplex/inplace.mk
diff -u pkgsrc/math/mpcomplex/inplace.mk:1.4 pkgsrc/math/mpcomplex/inplace.mk:1.5
--- pkgsrc/math/mpcomplex/inplace.mk:1.4 Tue Sep 15 20:56:33 2015
+++ pkgsrc/math/mpcomplex/inplace.mk Sun Oct 29 18:06:32 2023
@@ -1,4 +1,4 @@
-# $NetBSD: inplace.mk,v 1.4 2015/09/15 20:56:33 joerg Exp $
+# $NetBSD: inplace.mk,v 1.5 2023/10/29 18:06:32 wiz Exp $
#
# Include this file to extract math/mpcomplex source into the WRKSRC of
# another package. This is to be used by GCC packages to avoid the numerous
@@ -8,10 +8,12 @@ post-fetch: fetch-inplace-mpcomplex
post-extract: extract-inplace-mpcomplex
+.PHONY: fetch-inplace-mpcomplex
fetch-inplace-mpcomplex:
(cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \
WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES checksum)
+.PHONY: extract-inplace-mpcomplex
extract-inplace-mpcomplex:
(cd ../../math/mpcomplex && ${MAKE} WRKDIR=${WRKSRC}/.devel.mpcomplex EXTRACT_DIR=${WRKSRC} \
WRKSRC='$${EXTRACT_DIR}/$${DISTNAME}' SKIP_DEPENDS=YES patch)
Added files:
Index: pkgsrc/math/mpcomplex/patches/patch-src_get__x.c
diff -u /dev/null pkgsrc/math/mpcomplex/patches/patch-src_get__x.c:1.1
--- /dev/null Sun Oct 29 18:06:32 2023
+++ pkgsrc/math/mpcomplex/patches/patch-src_get__x.c Sun Oct 29 18:06:32 2023
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_get__x.c,v 1.1 2023/10/29 18:06:32 wiz Exp $
+
+Work around bug in SunOS complex.h to make this build with Sun's gcc
+
+--- src/get_x.c.orig 2011-11-04 18:20:19.000000000 +0000
++++ src/get_x.c
+@@ -35,6 +35,13 @@ along with this program. If not, see htt
+ #include "mpc-impl.h"
+
+ #ifdef HAVE_COMPLEX_H
++
++#if defined(__sun) && defined(__GNUC__) && defined(_Imaginary_I)
++#undef I
++#define I (__extension__ 1.0iF)
++
++#endif
++
+ double _Complex
+ mpc_get_dc (mpc_srcptr op, mpc_rnd_t rnd) {
+ return I * mpfr_get_d (mpc_imagref (op), MPC_RND_IM (rnd))
Home |
Main Index |
Thread Index |
Old Index