pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/cksfv Apply patch from PR pkg/26330 by Tobias Nyg...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc8507e69ea0
branches:  trunk
changeset: 478095:cc8507e69ea0
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Fri Jul 16 23:40:54 2004 +0000

description:
Apply patch from PR pkg/26330 by Tobias Nygren to make this work on
Alpha.

diffstat:

 misc/cksfv/distinfo         |   3 ++-
 misc/cksfv/patches/patch-ag |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 4734a0ec9baf -r cc8507e69ea0 misc/cksfv/distinfo
--- a/misc/cksfv/distinfo       Fri Jul 16 23:34:36 2004 +0000
+++ b/misc/cksfv/distinfo       Fri Jul 16 23:40:54 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2003/09/22 12:23:20 wiz Exp $
+$NetBSD: distinfo,v 1.6 2004/07/16 23:40:54 xtraeme Exp $
 
 SHA1 (cksfv-1.3.tar.gz) = be8a2adff70a3787b367cf01f247014113bfc646
 Size (cksfv-1.3.tar.gz) = 14925 bytes
@@ -8,3 +8,4 @@
 SHA1 (patch-ad) = 99294fce6cdecbe7c256eaef90bc0e3c66096153
 SHA1 (patch-ae) = dd36480ccebd825a74554906ca075a82af304cd1
 SHA1 (patch-af) = c16ee21d0d45a89d3ae2dac6d647a43cba4671c1
+SHA1 (patch-ag) = 97cfdaef84f41349a96a0d5afd2f2b3b4a722cf7
diff -r 4734a0ec9baf -r cc8507e69ea0 misc/cksfv/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/cksfv/patches/patch-ag       Fri Jul 16 23:40:54 2004 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ag,v 1.1 2004/07/16 23:40:54 xtraeme Exp $
+
+--- src/crc32.c.orig   2001-07-06 08:33:08.000000000 +0200
++++ src/crc32.c
+@@ -95,17 +95,16 @@ int crc32(register int fd, unsigned long
+ {
+   char                  buf[BUFFERSIZE], *p;
+   int                   len = 0, nr;
+-  unsigned long         crc = ~0, crc32_total = ~0;
++  unsigned long         crc = 0xffffffff;
+       
+   while ((nr = read(fd, buf, sizeof(buf))) > 0)
+     for (len += nr, p = buf; nr--; ++p) {
+       crc = (crc >> 8) ^ crctable[(crc ^ *p) & 0xff];
+-      crc32_total = (crc >> 8) ^ crctable[(crc32_total ^ *p) & 0xff];
+     }
+   if (nr < 0)
+     return 1;
+ 
+   *main_len = len;
+-  *main_val = ~crc;
++  *main_val = (~crc)&0xffffffff;
+   return 0;
+ }



Home | Main Index | Thread Index | Old Index