Add a patch for 64bit issues #103450 by Ian Kumlien.
authorMike Frysinger <vapier@gentoo.org>
Thu, 1 Sep 2005 03:18:31 +0000 (03:18 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 1 Sep 2005 03:18:31 +0000 (03:18 +0000)
Package-Manager: portage-2.0.51.22-r2

games-engines/scummvm/ChangeLog
games-engines/scummvm/Manifest
games-engines/scummvm/files/scummvm-0.7.1-64bit.patch [new file with mode: 0644]
games-engines/scummvm/scummvm-0.7.1.ebuild

index 4ad053a47896176692fa7b1035ee18e83197f60e..b9df0dee5c81a1e03a0921f4febf11185cae39a8 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for games-engines/scummvm
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/ChangeLog,v 1.24 2005/05/12 01:57:45 mr_bones_ Exp $
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/ChangeLog,v 1.25 2005/09/01 03:18:31 vapier Exp $
+
+  01 Sep 2005; Mike Frysinger <vapier@gentoo.org>
+  +files/scummvm-0.7.1-64bit.patch, scummvm-0.7.1.ebuild:
+  Add a patch for 64bit issues #103450 by Ian Kumlien.
 
   12 May 2005; Michael Sterrett <mr_bones_@gentoo.org>
   -files/0.7.0-configure.patch, -scummvm-0.7.0.ebuild:
index 86ae7dded7eadd64c0b073d5d5d594e76eb151dd..18c5110332e94ffa197e254668ff9c07f12a0029 100644 (file)
@@ -1,15 +1,16 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 d6ec4567eed4073d044cba64b3d7b076 scummvm-0.7.1.ebuild 1776
-MD5 1460d38d860a489484e2c2c299106d1f ChangeLog 5398
 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
-MD5 6b7e3eea92e3d3345457d83a2d851099 files/0.7.1-configure.patch 699
+MD5 aa1b37e7c166efb943f22779b115bad5 scummvm-0.7.1.ebuild 1813
+MD5 8902ad62b2521836015afb5a05bb81ee ChangeLog 5559
+MD5 8fb0ec95fec1bb32eac712cf85a116c4 files/scummvm-0.7.1-64bit.patch 1083
 MD5 fb4256256ccf802b62a4a9e798e259d3 files/digest-scummvm-0.7.1 67
+MD5 6b7e3eea92e3d3345457d83a2d851099 files/0.7.1-configure.patch 699
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
+Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFCughXBXaUFmZvwyMRAmXgAKCo752xRj+m30ZTOwCwpGVHeG80VwCdFK0Z
-Ls9Cxux8nTT2sOyDoN0ASzc=
-=P1Ix
+iD8DBQFDFnMjgIKl8Uu19MoRAnG0AJ9bKPzmC+zUYiuYukC1hQjn78wTKwCfVXuw
+fFqphcWQwaiQ228TzNTvEkU=
+=0vsY
 -----END PGP SIGNATURE-----
diff --git a/games-engines/scummvm/files/scummvm-0.7.1-64bit.patch b/games-engines/scummvm/files/scummvm-0.7.1-64bit.patch
new file mode 100644 (file)
index 0000000..224b710
--- /dev/null
@@ -0,0 +1,35 @@
+Fixes for 64bit issues from upstream.
+
+http://bugs.gentoo.org/103450
+
+--- scummvm/scummvm/common/scaler.cpp
++++ scummvm/scummvm/common/scaler.cpp
+@@ -123,7 +123,7 @@
+                                                       int width, int height) {
+       uint8 *r;
+ 
+-      assert(((int)dstPtr & 3) == 0);
++      assert(((long)dstPtr & 3) == 0);
+       while (height--) {
+               r = dstPtr;
+               for (int i = 0; i < width; ++i, r += 4) {
+@@ -148,7 +148,7 @@
+       const uint32 dstPitch2 = dstPitch * 2;
+       const uint32 dstPitch3 = dstPitch * 3;
+ 
+-      assert(((int)dstPtr & 1) == 0);
++      assert(((long)dstPtr & 1) == 0);
+       while (height--) {
+               r = dstPtr;
+               for (int i = 0; i < width; ++i, r += 6) {
+--- scummvm/scummvm/scumm/instrument.h
++++ scummvm/scummvm/scumm/instrument.h
+@@ -60,7 +60,7 @@
+ 
+       void clear();
+       void copy_to (Instrument *dest) { if (_instrument) _instrument->copy_to (dest); else dest->clear(); }
+-      operator int() { return (_instrument ? (int) _instrument : 255); }
++      operator int() { return (_instrument ? (long) _instrument : 255); }
+       void program (byte program, bool mt32);
+       void adlib (byte *instrument);
+       void roland (byte *instrument);
index 3d40b6994ed1d32c5d0697e3595c5b5650e2b1a0..bd49fda07affbcb9d993a52c069c7dae88ae0dc0 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/scummvm-0.7.1.ebuild,v 1.4 2005/06/23 00:54:36 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-engines/scummvm/scummvm-0.7.1.ebuild,v 1.5 2005/09/01 03:18:31 vapier Exp $
 
 inherit eutils games
 
@@ -28,7 +28,8 @@ DEPEND="${RDEPEND}
 src_unpack() {
        unpack ${A}
        cd "${S}"
-       epatch "${FILESDIR}/${PV}-configure.patch"
+       epatch "${FILESDIR}"/${PV}-configure.patch
+       epatch "${FILESDIR}"/${P}-64bit.patch
 }
 
 src_compile() {