diff --git a/sgmltool-flex.patch b/sgmltool-flex.patch new file mode 100644 index 0000000..13ff2e8 --- /dev/null +++ b/sgmltool-flex.patch @@ -0,0 +1,13 @@ +Index: sgml-tools-1.0.9/rtf-fix/rtf2rtf.l +=================================================================== +--- sgml-tools-1.0.9.orig/rtf-fix/rtf2rtf.l ++++ sgml-tools-1.0.9/rtf-fix/rtf2rtf.l +@@ -72,7 +72,7 @@ int current; + int skipnewline = 0; + + extern char *yytext; +-extern int yyleng; ++extern size_t yyleng; + + #define CHAPTER 1 + #define SECTION 2 diff --git a/sgmltool.changes b/sgmltool.changes index 0f56008..220cc8b 100644 --- a/sgmltool.changes +++ b/sgmltool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 19 09:06:57 UTC 2012 - idonmez@suse.com + +- Add sgmltool-flex.patch: yyleng must be size_t with new flex + ------------------------------------------------------------------- Thu Aug 2 12:42:50 UTC 2012 - jengelh@inai.de diff --git a/sgmltool.spec b/sgmltool.spec index 466f8e6..7fdc76a 100644 --- a/sgmltool.spec +++ b/sgmltool.spec @@ -54,6 +54,7 @@ Patch6: cflags-sgml-tools-1.0.9.diff Patch7: sgml-tools-1.0.9-sgmlpre.diff Patch8: sgml-tools-1.0.9-strip.diff Patch9: sgml-tools-1.0.9-latex.diff +Patch10: sgmltool-flex.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -90,6 +91,7 @@ an example). %patch8 %if 0%{suse_version} > 1220 %patch9 +%patch10 -p1 %endif %build