diff options
author | hasso <hasso@pkgsrc.org> | 2009-07-14 09:41:31 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-07-14 09:41:31 +0000 |
commit | f5241ab3b30f0c43798b5e5e829ea11a2bcb4dd9 (patch) | |
tree | e33d6b62a29a9acd6ed0c1be2d74baecd48202a3 /net/gtk-gnutella | |
parent | 2edfd8e9f53686ccd64201e1d6fcf2fae5252d85 (diff) | |
download | pkgsrc-f5241ab3b30f0c43798b5e5e829ea11a2bcb4dd9.tar.gz |
Add SVN rev 16947 from upstream. Makes it build on DragonFly.
Diffstat (limited to 'net/gtk-gnutella')
-rw-r--r-- | net/gtk-gnutella/distinfo | 3 | ||||
-rw-r--r-- | net/gtk-gnutella/patches/patch-ab | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/net/gtk-gnutella/distinfo b/net/gtk-gnutella/distinfo index f500b305691..f50df2b447a 100644 --- a/net/gtk-gnutella/distinfo +++ b/net/gtk-gnutella/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.29 2009/05/05 06:46:55 adam Exp $ +$NetBSD: distinfo,v 1.30 2009/07/14 09:41:31 hasso Exp $ SHA1 (gtk-gnutella-0.96.6.tar.bz2) = 319417e8de104b33913e08a0aaec8c0f22a6129d RMD160 (gtk-gnutella-0.96.6.tar.bz2) = 0dae6af9ac64fa8d75980cafd55c5a3e9eb18dfe Size (gtk-gnutella-0.96.6.tar.bz2) = 15739240 bytes SHA1 (patch-aa) = 0df2e52177c1601b0533862a841ef61b2ac440ca +SHA1 (patch-ab) = 45d59a62acbfa38a952cf31e8ceecacc9c90f077 diff --git a/net/gtk-gnutella/patches/patch-ab b/net/gtk-gnutella/patches/patch-ab new file mode 100644 index 00000000000..19bd9b6619b --- /dev/null +++ b/net/gtk-gnutella/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.7 2009/07/14 09:41:31 hasso Exp $ + +SVN rev 16947 from upstream. + +--- src/lib/entropy.c.orig 2009-07-14 12:11:05 +0300 ++++ src/lib/entropy.c 2009-07-14 12:11:54 +0300 +@@ -120,15 +120,12 @@ entropy_collect(struct sha1 *digest) + * Compute the SHA1 of the output (either ps or /dev/urandom). + */ + +- SHA1Input(&ctx, f, sizeof *f); /* Initial state */ +- + for (;;) { + guint8 data[1024]; + int r; + int len = is_pipe ? sizeof(data) : 128; + + r = fread(data, 1, len, f); +- SHA1Input(&ctx, f, sizeof *f); /* Changes as we read */ + if (r) + SHA1Input(&ctx, data, r); + if (r < len || !is_pipe) /* Read once from /dev/urandom */ |