diff options
author | fhajny <fhajny@pkgsrc.org> | 2018-04-23 14:57:57 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2018-04-23 14:57:57 +0000 |
commit | 8f2f0b400da1db493af93c26b6906e8b8ecaab00 (patch) | |
tree | 02cfd821cae23e1c26dd6802be1a2c026fd73a2e /databases | |
parent | 91a5892d6bd142629b6c7ed013e4401d7cc5c738 (diff) | |
download | pkgsrc-8f2f0b400da1db493af93c26b6906e8b8ecaab00.tar.gz |
Fix missing llroundl on NetBSD. Fixes pkg/52599.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/redis/distinfo | 3 | ||||
-rw-r--r-- | databases/redis/patches/patch-src_hyperloglog.c | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/databases/redis/distinfo b/databases/redis/distinfo index 4512cef80c8..6140720a9e4 100644 --- a/databases/redis/distinfo +++ b/databases/redis/distinfo @@ -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) = a6cf63cb361f0a87da3955ba628190dc04cad342f7a664d18e 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 --git a/databases/redis/patches/patch-src_hyperloglog.c b/databases/redis/patches/patch-src_hyperloglog.c new file mode 100644 index 00000000000..0632008f9b9 --- /dev/null +++ b/databases/redis/patches/patch-src_hyperloglog.c @@ -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 |