pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/redis Fix missing llroundl on N...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aed278342d93
branches:  trunk
changeset: 306713:aed278342d93
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Mon Apr 23 14:57:57 2018 +0000
description:
Fix missing llroundl on NetBSD. Fixes pkg/52599.

diffstat:

 databases/redis/distinfo                        |   3 ++-
 databases/redis/patches/patch-src_hyperloglog.c |  23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r f9e83feabe18 -r aed278342d93 databases/redis/distinfo
--- a/databases/redis/distinfo  Mon Apr 23 14:42:03 2018 +0000
+++ b/databases/redis/distinfo  Mon Apr 23 14:57:57 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.38 2018/04/04 10:47:49 fhajny Exp $
+$NetBSD: distinfo,v 1.39 2018/04/23 14:57:57 fhajny Exp $
 
 SHA1 (redis-4.0.9.tar.gz) = 8aa33d13c3ff5c4d4d2cc52932340893132c8aec
 RMD160 (redis-4.0.9.tar.gz) = ca7f86538baaa9b803c56785454aef33a98b5b2f
@@ -6,4 +6,5 @@
 Size (redis-4.0.9.tar.gz) = 1737022 bytes
 SHA1 (patch-ab) = f8d2d20a5ae49ecd49a452b6e260f5a37b0d52e0
 SHA1 (patch-ac) = 1d848860a39af7a93a06eb8f3001fe89cb1bb3ad
+SHA1 (patch-src_hyperloglog.c) = 65a4a220ccd4282162c50293f4fe278a43b84239
 SHA1 (patch-src_object.c) = 30ffaec9c7e6135e3a5576cd1a35d7bcec668299
diff -r f9e83feabe18 -r aed278342d93 databases/redis/patches/patch-src_hyperloglog.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/redis/patches/patch-src_hyperloglog.c   Mon Apr 23 14:57:57 2018 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_hyperloglog.c,v 1.1 2018/04/23 14:57:57 fhajny Exp $
+
+Fix the case of the missing llroundl on NetBSD. Patch by Matthias Petermann.
+
+--- src/hyperloglog.c.orig     2018-03-26 16:04:15.000000000 +0000
++++ src/hyperloglog.c
+@@ -34,6 +34,16 @@
+ #include <stdint.h>
+ #include <math.h>
+ 
++#ifdef __NetBSD__
++#include <sys/param.h>
++#if __NetBSD_Version__ < 799007200
++/* llroundl not present in NetBSD libm before 7.99.71 */
++long long int llroundl (long double x) {
++    return (long long int) roundl (x);
++}
++#endif
++#endif
++
+ /* The Redis HyperLogLog implementation is based on the following ideas:
+  *
+  * * The use of a 64 bit hash function as proposed in [1], in order to don't



Home | Main Index | Thread Index | Old Index