diff --git a/ragel-main.patch b/ragel-main.patch new file mode 100644 index 0000000..f7f66e1 --- /dev/null +++ b/ragel-main.patch @@ -0,0 +1,21 @@ +diff -up ./ragel/main.cpp.fedora ./ragel/main.cpp +--- ragel/main.cpp.fedora 2009-04-11 19:19:03.000000000 -0600 ++++ ragel/main.cpp 2009-04-11 19:18:34.000000000 -0600 +@@ -336,7 +336,7 @@ void processArgs( int argc, const char * + printStatistics = true; + break; + case '-': { +- char *eq = strchr( pc.paramArg, '=' ); ++ char *eq = strchr( (char *)pc.paramArg, '=' ); + + if ( eq != 0 ) + *eq++ = 0; +@@ -507,7 +507,7 @@ char *makeIntermedTemplate( const char * + { + char *result = 0; + const char *templ = "ragel-XXXXXX.xml"; +- char *lastSlash = strrchr( baseFileName, '/' ); ++ char *lastSlash = strrchr( (char *)baseFileName, '/' ); + if ( lastSlash == 0 ) { + result = new char[strlen(templ)+1]; + strcpy( result, templ ); diff --git a/ragel.spec b/ragel.spec index e528b8b..1b9a76f 100644 --- a/ragel.spec +++ b/ragel.spec @@ -1,6 +1,6 @@ Name: ragel Version: 6.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Finite state machine compiler Group: Development/Tools @@ -14,6 +14,7 @@ BuildRequires: transfig, tetex-latex, gcc-objc Requires: gawk Patch0: ragel-Makefile-install.patch +Patch1: ragel-main.patch %description Ragel compiles finite state machines from regular languages into executable C, @@ -26,6 +27,7 @@ done using inline operators that do not disrupt the regular language syntax. %setup -q %patch0 -p0 +%patch1 -p0 %build # set the names of the other programming commandline programs @@ -58,6 +60,9 @@ rm -rf %{buildroot} %{_mandir}/*/* %changelog +* Sat Apr 11 2009 Jeremy Hinegardner 6.4-2 +- add patch for main.cpp + * Sat Apr 11 2009 Jeremy Hinegardner 6.4-1 - Update to 6.4