summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorhe <he>2015-09-11 21:37:00 +0000
committerhe <he>2015-09-11 21:37:00 +0000
commit7675998424039acf38589f886e5c1b4c590d876d (patch)
treefc47316827d2b0d3608cf879574988af1518a37f /misc
parent65ee22bbb0f81ac5492ed8c93c3c0bd0c6e42745 (diff)
downloadpkgsrc-7675998424039acf38589f886e5c1b4c590d876d.tar.gz
Fix the workaround for missing frexpl() on netbsd-6:
use frexp() as a substitute for frexpl() on NetBSD before 6.99.17
Diffstat (limited to 'misc')
-rw-r--r--misc/goffice0.10/distinfo4
-rw-r--r--misc/goffice0.10/patches/patch-goffice_math_go-dtoa.c11
2 files changed, 8 insertions, 7 deletions
diff --git a/misc/goffice0.10/distinfo b/misc/goffice0.10/distinfo
index 2e7657aa319..7833f924e01 100644
--- a/misc/goffice0.10/distinfo
+++ b/misc/goffice0.10/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2015/09/03 14:53:23 gdt Exp $
+$NetBSD: distinfo,v 1.13 2015/09/11 21:37:00 he Exp $
SHA1 (goffice-0.10.23.tar.xz) = cbf0bdcfb6920979057efcad0355747109fc9d9d
RMD160 (goffice-0.10.23.tar.xz) = a93dec3b10cd9c4f9501029e3d510957bcf69d30
@@ -6,6 +6,6 @@ Size (goffice-0.10.23.tar.xz) = 2356604 bytes
SHA1 (patch-gofffice_app_io-context.h) = b8aceae57a06af6873cbf0219b255ce9b9627d84
SHA1 (patch-goffice_app_error-info.h) = 6273b5d9a95bb5d45aaa9369271f7476d74f6b0a
SHA1 (patch-goffice_math_go-complex.c) = f9a7b429c04b25014f2bfa998b2ad09db8c2bcfa
-SHA1 (patch-goffice_math_go-dtoa.c) = 2eb8b9371572304b502ba96cecfa422000fd72e0
+SHA1 (patch-goffice_math_go-dtoa.c) = 49a9194f6be85cfec2df4ee09a918f65f820c1cc
SHA1 (patch-goffice_math_go-matrix.c) = 3d7be1540defaefbd2facc2c85b31938e0c5cac0
SHA1 (patch-goffice_utils_go-glib-extras.c) = ed27e08c67a9341a43f24a23a1f97c4851d8cd3d
diff --git a/misc/goffice0.10/patches/patch-goffice_math_go-dtoa.c b/misc/goffice0.10/patches/patch-goffice_math_go-dtoa.c
index 9415487eede..906e2bd2f27 100644
--- a/misc/goffice0.10/patches/patch-goffice_math_go-dtoa.c
+++ b/misc/goffice0.10/patches/patch-goffice_math_go-dtoa.c
@@ -1,10 +1,10 @@
-$NetBSD: patch-goffice_math_go-dtoa.c,v 1.2 2015/09/03 14:53:23 gdt Exp $
+$NetBSD: patch-goffice_math_go-dtoa.c,v 1.3 2015/09/11 21:37:00 he Exp $
-Ensure frexpl() is declared on NetBSD before 6.99.17.
+Use frexp() as a substitute for frexpl() on NetBSD before 6.99.17.
---- goffice/math/go-dtoa.c.orig 2014-04-30 00:44:52.000000000 +0000
+--- goffice/math/go-dtoa.c.orig 2014-10-27 23:55:13.000000000 +0000
+++ goffice/math/go-dtoa.c
-@@ -43,6 +43,13 @@ typedef GString FAKE_FILE;
+@@ -43,6 +43,14 @@ typedef GString FAKE_FILE;
#define go_finitel isfinite
#endif
@@ -12,7 +12,8 @@ Ensure frexpl() is declared on NetBSD before 6.99.17.
+#if (__NetBSD_Version__ >= 699001700)
+/* in <math.h> in newer NetBSDs, should already be included */
+#else
-+extern long double frexpl(long double, int*);
++/* OK, this will lose precision and range, but what else to do? */
++#define frexpl(ldv,i) (long double)frexp((double)ldv, i)
+#endif
+#endif /* __NetBSD__ */