pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/zoom Fix LP64 problem, from Christian Weisgerber...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ef8fb8421168
branches:  trunk
changeset: 471512:ef8fb8421168
user:      dillo <dillo%pkgsrc.org@localhost>
date:      Mon Mar 29 00:54:22 2004 +0000

description:
Fix LP64 problem, from Christian Weisgerber.  Bump PKGREVISION.

diffstat:

 games/zoom/Makefile         |   4 ++--
 games/zoom/distinfo         |   3 ++-
 games/zoom/patches/patch-ab |  24 ++++++++++++++++++++++++
 3 files changed, 28 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r f4eef11d1dc7 -r ef8fb8421168 games/zoom/Makefile
--- a/games/zoom/Makefile       Mon Mar 29 00:54:16 2004 +0000
+++ b/games/zoom/Makefile       Mon Mar 29 00:54:22 2004 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2004/03/03 11:29:32 adam Exp $
+# $NetBSD: Makefile,v 1.8 2004/03/29 00:54:22 dillo Exp $
 #
 
 DISTNAME=      zoom-1.0.1
 PKGNAME=       ${DISTNAME}a
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    games
 MASTER_SITES=  http://www.logicalshift.demon.co.uk/unix/zoom/
 
diff -r f4eef11d1dc7 -r ef8fb8421168 games/zoom/distinfo
--- a/games/zoom/distinfo       Mon Mar 29 00:54:16 2004 +0000
+++ b/games/zoom/distinfo       Mon Mar 29 00:54:22 2004 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/08/16 14:28:34 dillo Exp $
+$NetBSD: distinfo,v 1.2 2004/03/29 00:54:22 dillo Exp $
 
 SHA1 (zoom-1.0.1.tar.gz) = 8cfed626d025150ae49e2ce7d0b5afd0516dd176
 Size (zoom-1.0.1.tar.gz) = 719460 bytes
 SHA1 (zoom-1.0.1-1.0.1a.patch) = f664c5c5cba73db0c9e0d607e9561abdb231b5af
 Size (zoom-1.0.1-1.0.1a.patch) = 11860 bytes
 SHA1 (patch-aa) = b09e11f30ca1b4d2dc7dbeae114952b17590ed72
+SHA1 (patch-ab) = 06b7a96b4827ce941645a7ba20124b499b59725d
diff -r f4eef11d1dc7 -r ef8fb8421168 games/zoom/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/zoom/patches/patch-ab       Mon Mar 29 00:54:22 2004 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1 2004/03/29 00:54:22 dillo Exp $
+
+--- src/hash.c.orig    Thu Jul 25 20:10:02 2002
++++ src/hash.c Wed Mar 10 16:00:01 2004
+@@ -81,7 +81,7 @@
+         for (i = 0; i < 256; ++i) {
+                 for (c = i << 24, j = 8; j > 0; --j)
+                         c = c & 0x80000000 ? (c << 1) ^ CRC32_POLY : (c << 1);
+-                crc32_table[i] = c;
++                crc32_table[i] = c & 0xffffffff;
+         }
+ }
+ 
+@@ -95,8 +95,8 @@
+     init_crc32();   /* build table */
+   crc = 0xffffffff;       /* preload shift register, per CRC-32 spec */
+   for (p = buf; len > 0; ++p, --len)
+-    crc = (crc << 8) ^ crc32_table[(crc >> 24) ^ *p];
+-  return ~crc;            /* transmit complement, per CRC-32 spec */  
++    crc = ((crc << 8) ^ crc32_table[(crc >> 24) ^ *p]) & 0xffffffff;
++  return ~crc & 0xffffffff;     /* transmit complement, per CRC-32 spec */  
+ }
+ 
+ static struct bucket *hash_lookup(hash          hash,



Home | Main Index | Thread Index | Old Index