From d36cdc0f4d881700f7f06016886348b48042fefb Mon Sep 17 00:00:00 2001 From: dillo Date: Mon, 29 Mar 2004 00:54:22 +0000 Subject: Fix LP64 problem, from Christian Weisgerber. Bump PKGREVISION. --- games/zoom/Makefile | 4 ++-- games/zoom/distinfo | 3 ++- games/zoom/patches/patch-ab | 24 ++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 games/zoom/patches/patch-ab (limited to 'games') diff --git a/games/zoom/Makefile b/games/zoom/Makefile index b103f73e52a..7ab076ffb60 100644 --- a/games/zoom/Makefile +++ b/games/zoom/Makefile @@ -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 --git a/games/zoom/distinfo b/games/zoom/distinfo index 00fb6a8e2f9..ebd432c8a5c 100644 --- a/games/zoom/distinfo +++ b/games/zoom/distinfo @@ -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 --git a/games/zoom/patches/patch-ab b/games/zoom/patches/patch-ab new file mode 100644 index 00000000000..6ff0e8f41cd --- /dev/null +++ b/games/zoom/patches/patch-ab @@ -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, -- cgit v1.2.3