pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/nickle



Module Name:    pkgsrc
Committed By:   tnn
Date:           Sat Sep 11 23:44:50 UTC 2021

Modified Files:
        pkgsrc/math/nickle: distinfo
Added Files:
        pkgsrc/math/nickle/patches: patch-float.c

Log Message:
nickle: mac OS build fix


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/math/nickle/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/nickle/patches/patch-float.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/nickle/distinfo
diff -u pkgsrc/math/nickle/distinfo:1.14 pkgsrc/math/nickle/distinfo:1.15
--- pkgsrc/math/nickle/distinfo:1.14    Sun Dec  2 06:49:24 2018
+++ pkgsrc/math/nickle/distinfo Sat Sep 11 23:44:49 2021
@@ -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) = ded33c3b2e
 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

Added files:

Index: pkgsrc/math/nickle/patches/patch-float.c
diff -u /dev/null pkgsrc/math/nickle/patches/patch-float.c:1.1
--- /dev/null   Sat Sep 11 23:44:50 2021
+++ pkgsrc/math/nickle/patches/patch-float.c    Sat Sep 11 23:44:49 2021
@@ -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