rpms/enigma/devel enigma-consts.patch, NONE, 1.1 enigma.spec, 1.27, 1.28

Caolan McNamara caolanm at fedoraproject.org
Mon Mar 2 16:28:33 UTC 2009


Author: caolanm

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

Modified Files:
	enigma.spec 
Added Files:
	enigma-consts.patch 
Log Message:
fix up consts

enigma-consts.patch:

--- NEW FILE enigma-consts.patch ---
diff -ru enigma-1.01.orig/src/lua.cc enigma-1.01/src/lua.cc
--- enigma-1.01.orig/src/lua.cc	2009-03-02 16:14:03.000000000 +0000
+++ enigma-1.01/src/lua.cc	2009-03-02 16:14:30.000000000 +0000
@@ -574,7 +574,7 @@
     int         y       = round_down<int>(lua_tonumber(L, 2));
     const char *dir     = lua_tostring(L,3);
     const char *allowed = "wsen";
-    char       *found   = strchr(allowed, dir[0]);
+    const char       *found   = strchr(allowed, dir[0]);
 
     if (found && found[0]) 
         world::AddScramble(GridPos(x,y), enigma::Direction(found-allowed));


Index: enigma.spec
===================================================================
RCS file: /cvs/pkgs/rpms/enigma/devel/enigma.spec,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- enigma.spec	24 Feb 2009 15:05:22 -0000	1.27
+++ enigma.spec	2 Mar 2009 16:28:02 -0000	1.28
@@ -1,6 +1,6 @@
 Name:           enigma
 Version:        1.01
-Release:        9.1
+Release:        10
 Summary:        Clone of the ATARI game Oxyd
 
 Group:          Amusements/Games
@@ -11,6 +11,7 @@
 Patch1:         enigma-gcc-4.3-ftbfs.patch
 # taken from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505358
 Patch2:         enigma-gcc-4.4-ftbfs.patch
+Patch3:         enigma-consts.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires:       %{_datadir}/fonts/dejavu/DejaVuSans.ttf 
@@ -40,6 +41,7 @@
 %patch0 -p1
 %patch1 -p0
 %patch2 -p1
+%patch3 -p1
 
 %build
 %configure --enable-optimize
@@ -91,6 +93,9 @@
 %exclude %{_libdir}/libenet.a
 
 %changelog
+* Mon Mar 02 2009 Caolán McNamara <caolanm at redhat.com> - 1.01-10
+- fix up consts
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.01-9.1
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list