pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/gnunet
Module Name: pkgsrc
Committed By: nikita
Date: Sun May 21 20:09:08 UTC 2023
Modified Files:
pkgsrc/net/gnunet: distinfo
pkgsrc/net/gnunet/patches: patch-src_setu_gnunet-service-setu.c
Log Message:
admend patch for log2l.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/gnunet/distinfo
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/net/gnunet/patches/patch-src_setu_gnunet-service-setu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/gnunet/distinfo
diff -u pkgsrc/net/gnunet/distinfo:1.4 pkgsrc/net/gnunet/distinfo:1.5
--- pkgsrc/net/gnunet/distinfo:1.4 Wed Apr 5 10:16:34 2023
+++ pkgsrc/net/gnunet/distinfo Sun May 21 20:09:08 2023
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.4 2023/04/05 10:16:34 nikita Exp $
+$NetBSD: distinfo,v 1.5 2023/05/21 20:09:08 nikita Exp $
BLAKE2s (gnunet-0.19.4.tar.gz) = d4d7d30edf94477be7c2f6f7dce9f6d49c09804ec56710bdcbf685ff7ba525fe
SHA512 (gnunet-0.19.4.tar.gz) = c994269e009c6a97860e1903e87ab08b6f79a8f5bb7c27261020e90d162f81d908fe42173969331f3cada2086df8a719caa62c46342d59d46a2b2dd2fb71efa1
Size (gnunet-0.19.4.tar.gz) = 8985213 bytes
SHA1 (patch-src_include_gnunet_common.h) = 44a0f31cd3d7fa4df5491cf9cf2efa31e695cdb9
-SHA1 (patch-src_setu_gnunet-service-setu.c) = 2e6c8eb895544fe79e27edec85e37379ec9b3783
+SHA1 (patch-src_setu_gnunet-service-setu.c) = f1ebdb55087f2cc3b344ad02ff8c54cc0c23aa02
Index: pkgsrc/net/gnunet/patches/patch-src_setu_gnunet-service-setu.c
diff -u pkgsrc/net/gnunet/patches/patch-src_setu_gnunet-service-setu.c:1.1 pkgsrc/net/gnunet/patches/patch-src_setu_gnunet-service-setu.c:1.2
--- pkgsrc/net/gnunet/patches/patch-src_setu_gnunet-service-setu.c:1.1 Tue Jan 31 18:53:46 2023
+++ pkgsrc/net/gnunet/patches/patch-src_setu_gnunet-service-setu.c Sun May 21 20:09:08 2023
@@ -1,9 +1,13 @@
-$NetBSD: patch-src_setu_gnunet-service-setu.c,v 1.1 2023/01/31 18:53:46 nikita Exp $
+$NetBSD: patch-src_setu_gnunet-service-setu.c,v 1.2 2023/05/21 20:09:08 nikita Exp $
Crudely fix NetBSD's missing log2l.
---- src/setu/gnunet-service-setu.c.orig 2022-03-18 23:02:08.123202128 +0100
-+++ src/setu/gnunet-service-setu.c 2022-03-18 23:03:42.434385369 +0100
+log2* (2) is always 1.
+
+diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
+index f85ddb224..a8572c0e2 100644
+--- src/setu/gnunet-service-setu.c.orig
++++ src/setu/gnunet-service-setu.c
@@ -38,6 +38,10 @@
#include "gnunet_setu_service.h"
#include "setu.h"
@@ -15,3 +19,21 @@ Crudely fix NetBSD's missing log2l.
#define LOG(kind, ...) GNUNET_log_from (kind, "setu", __VA_ARGS__)
/**
+@@ -1800,7 +1804,7 @@ full_sync_plausibility_check (struct Operation *op)
+ double)
+ op->
+ remote_set_diff)));
+- long double value = exponent * (log2l (base) / log2l (2));
++ long double value = exponent * (log2l (base) / 1);
+ if ((value < security_level_lb) || (value > SECURITY_LEVEL) )
+ {
+ LOG (GNUNET_ERROR_TYPE_ERROR,
+@@ -1824,7 +1828,7 @@ check_max_differential_rounds (struct Operation *op)
+ {
+ double probability = op->differential_sync_iterations * (log2l (
+ PROBABILITY_FOR_NEW_ROUND)
+- / log2l (2));
++ / 1);
+ if ((-1 * SECURITY_LEVEL) > probability)
+ {
+ LOG (GNUNET_ERROR_TYPE_ERROR,
Home |
Main Index |
Thread Index |
Old Index