pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/nickle nickle: mac OS build fix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88d6c7dad111
branches:  trunk
changeset: 458220:88d6c7dad111
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Sep 11 23:44:49 2021 +0000

description:
nickle: mac OS build fix

diffstat:

 math/nickle/distinfo              |   3 ++-
 math/nickle/patches/patch-float.c |  18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 5906ff70e425 -r 88d6c7dad111 math/nickle/distinfo
--- a/math/nickle/distinfo      Sat Sep 11 23:44:48 2021 +0000
+++ b/math/nickle/distinfo      Sat Sep 11 23:44:49 2021 +0000
@@ -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 @@
 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 -r 5906ff70e425 -r 88d6c7dad111 math/nickle/patches/patch-float.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/nickle/patches/patch-float.c Sat Sep 11 23:44:49 2021 +0000
@@ -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)
+     {



Home | Main Index | Thread Index | Old Index