summaryrefslogtreecommitdiff
path: root/math/nickle
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2021-09-11 23:44:49 +0000
committertnn <tnn@pkgsrc.org>2021-09-11 23:44:49 +0000
commite92c47a4706550b1f68fa6fec1f6954560d2b6ce (patch)
treefdc3cca6962c0b57891d0d3868384d9cfc8da900 /math/nickle
parent37acc8dda0c39ee5fa180c3e067c8a6a1a5770dd (diff)
downloadpkgsrc-e92c47a4706550b1f68fa6fec1f6954560d2b6ce.tar.gz
nickle: mac OS build fix
Diffstat (limited to 'math/nickle')
-rw-r--r--math/nickle/distinfo3
-rw-r--r--math/nickle/patches/patch-float.c18
2 files changed, 20 insertions, 1 deletions
diff --git a/math/nickle/distinfo b/math/nickle/distinfo
index db85cdadf06..ebf44d52b30 100644
--- a/math/nickle/distinfo
+++ b/math/nickle/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2018/12/02 06:49:24 wiz Exp $
+$NetBSD: distinfo,v 1.15 2021/09/11 23:44:49 tnn Exp $
SHA1 (nickle-2.84.tar.gz) = ce346b5ba0cd0085dfd1a1351d03ffa8faeb3368
RMD160 (nickle-2.84.tar.gz) = 4c34eaa038dbae546467c652a02953dccaa128de
@@ -6,4 +6,5 @@ SHA512 (nickle-2.84.tar.gz) = ded33c3b2e6f8234e48148b2590db4a48653f3e85ec8ae7d94
Size (nickle-2.84.tar.gz) = 810473 bytes
SHA1 (patch-aa) = 4cbb563244883f6c9f7a3594875052f8d9a9e9b3
SHA1 (patch-builtin-date.c) = 1aa792b5a91f4b808208e73ee38bd539ab0c12fb
+SHA1 (patch-float.c) = f157fc605b617e7b5bdaa192d48e679b596a9228
SHA1 (patch-lex.c) = f9d5f3f282f97a94195730062525e9f6310bb316
diff --git a/math/nickle/patches/patch-float.c b/math/nickle/patches/patch-float.c
new file mode 100644
index 00000000000..35d30c0f6fc
--- /dev/null
+++ b/math/nickle/patches/patch-float.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-float.c,v 1.1 2021/09/11 23:44:49 tnn Exp $
+
+significand(3) is non-standard and was deprecated on mac OS aarch64.
+
+--- float.c.orig 2012-01-30 07:25:50.000000000 +0000
++++ float.c
+@@ -1124,7 +1124,11 @@ NewDoubleFloat (double d)
+ double_digit dd;
+ if (d == 0.0) RETURN (Zero);
+ e = ilogb (d);
++#if defined(__APPLE__)
++ m = scalb(d, (double) -ilogb(d));
++#else
+ m = significand (d);
++#endif
+ ms = Positive;
+ if (m < 0)
+ {