pkgsrc-Changes archive

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

CVS commit: pkgsrc/databases/redis



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Mon Apr 23 14:57:57 UTC 2018

Modified Files:
        pkgsrc/databases/redis: distinfo
Added Files:
        pkgsrc/databases/redis/patches: patch-src_hyperloglog.c

Log Message:
Fix missing llroundl on NetBSD. Fixes pkg/52599.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/databases/redis/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/databases/redis/patches/patch-src_hyperloglog.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/redis/distinfo
diff -u pkgsrc/databases/redis/distinfo:1.38 pkgsrc/databases/redis/distinfo:1.39
--- pkgsrc/databases/redis/distinfo:1.38        Wed Apr  4 10:47:49 2018
+++ pkgsrc/databases/redis/distinfo     Mon Apr 23 14:57:57 2018
@@ -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 @@ SHA512 (redis-4.0.9.tar.gz) = a6cf63cb36
 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

Added files:

Index: pkgsrc/databases/redis/patches/patch-src_hyperloglog.c
diff -u /dev/null pkgsrc/databases/redis/patches/patch-src_hyperloglog.c:1.1
--- /dev/null   Mon Apr 23 14:57:57 2018
+++ pkgsrc/databases/redis/patches/patch-src_hyperloglog.c      Mon Apr 23 14:57:57 2018
@@ -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