rpms/xmoto/devel xmoto-0.5.2-x86-64.patch, NONE, 1.1 xmoto.spec, 1.54, 1.55

Jon Ciesla limb at fedoraproject.org
Mon Dec 7 20:06:51 UTC 2009


Author: limb

Update of /cvs/pkgs/rpms/xmoto/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22836

Modified Files:
	xmoto.spec 
Added Files:
	xmoto-0.5.2-x86-64.patch 
Log Message:
x86_64 fix.


xmoto-0.5.2-x86-64.patch:
 DBuffer.cpp |   13 +++++++++++++
 DBuffer.h   |    2 ++
 2 files changed, 15 insertions(+)

--- NEW FILE xmoto-0.5.2-x86-64.patch ---
diff -rup ./src/DBuffer.cpp ../xmoto-0.5.2-patched/src/DBuffer.cpp
--- ./src/DBuffer.cpp	2009-08-10 12:56:39.000000000 -0400
+++ ../xmoto-0.5.2-patched/src/DBuffer.cpp	2009-12-05 12:12:38.122741232 -0500
@@ -209,6 +209,19 @@ Foundation, Inc., 59 Temple Place, Suite
     *this >> sn;
     n = (unsigned int) sn;
   }
+  void DBuffer::operator <<(unsigned long n) {
+      int sn;
+      sn = (int) (n);
+      *this << sn;
+  }
+
+  void DBuffer::operator >>(unsigned long &n) {
+      int sn;
+      *this >> sn;
+      n = (unsigned long) sn;
+  }
+
+
   
   void DBuffer::operator <<(float n) {
     writeBuf_LE((char *)&n, sizeof(float));
diff -rup ./src/DBuffer.h ../xmoto-0.5.2-patched/src/DBuffer.h
--- ./src/DBuffer.h	2009-08-10 12:56:39.000000000 -0400
+++ ../xmoto-0.5.2-patched/src/DBuffer.h	2009-12-05 12:11:51.417881628 -0500
@@ -69,6 +69,8 @@ Foundation, Inc., 59 Temple Place, Suite
       void operator >>(unsigned char &c);
       void operator <<(unsigned int n);
       void operator >>(unsigned int &n);
+      void operator <<(unsigned long n);
+      void operator >>(unsigned long &n);
       void operator <<(float n);
       void operator >>(float &n);
       void operator <<(std::string s);


Index: xmoto.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xmoto/devel/xmoto.spec,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -r1.54 -r1.55
--- xmoto.spec	8 Sep 2009 20:17:17 -0000	1.54
+++ xmoto.spec	7 Dec 2009 20:06:51 -0000	1.55
@@ -19,6 +19,7 @@ Patch3:		xmoto-0.4.0-Environment-string.
 Patch7:		xmoto-0.5.0-xmargs-include.patch
 Patch8:		xmoto-0.5.0-helpers-text-includes.patch
 Patch9:		xmoto-0.5.0-helpers-log-include.patch
+Patch10:	xmoto-0.5.2-x86-64.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	desktop-file-utils
@@ -62,6 +63,7 @@ yourself and others, racing against the 
 %patch7 -p0
 %patch8 -p0
 %patch9 -p0
+%patch10 -p0
 
 #fix encoding
 sed -i 's/\r//' src/xmscene/Camera.cpp
@@ -123,8 +125,9 @@ fi
 %{_mandir}/man6/xmoto.6.gz
 
 %changelog
-* Tue Sep 08 2009 Jon Ciesla <limb at jcomserv.net> 0.5.2-1
+* Tue Dec 06 2009 Howard Liberty <liberty at live.com> 0.5.2-1
 - New upstream.
+- Add x86-64 patch so it can be compiled in x86-64 enviroment.
 
 * Mon Jul 27 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.1-1
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild




More information about the fedora-extras-commits mailing list