[125401] trunk/dports/textproc/linuxdoc-tools

ryandesign at macports.org ryandesign at macports.org
Tue Sep 16 15:24:09 PDT 2014


Revision: 125401
          https://trac.macports.org/changeset/125401
Author:   ryandesign at macports.org
Date:     2014-09-16 15:24:09 -0700 (Tue, 16 Sep 2014)
Log Message:
-----------
linuxdoc-tools: fix build with new flex (#42988)

Modified Paths:
--------------
    trunk/dports/textproc/linuxdoc-tools/Portfile

Added Paths:
-----------
    trunk/dports/textproc/linuxdoc-tools/files/patch-rtf-fix-rtf2rtf.l.diff

Modified: trunk/dports/textproc/linuxdoc-tools/Portfile
===================================================================
--- trunk/dports/textproc/linuxdoc-tools/Portfile	2014-09-16 21:28:51 UTC (rev 125400)
+++ trunk/dports/textproc/linuxdoc-tools/Portfile	2014-09-16 22:24:09 UTC (rev 125401)
@@ -15,7 +15,8 @@
 
 master_sites    debian:l/linuxdoc-tools
 
-patchfiles      patch-rtf2rtf.l.diff
+patchfiles      patch-rtf2rtf.l.diff \
+                patch-rtf-fix-rtf2rtf.l.diff
 
 distname        ${name}_${version}
 worksrcdir      ${name}-${version}

Added: trunk/dports/textproc/linuxdoc-tools/files/patch-rtf-fix-rtf2rtf.l.diff
===================================================================
--- trunk/dports/textproc/linuxdoc-tools/files/patch-rtf-fix-rtf2rtf.l.diff	                        (rev 0)
+++ trunk/dports/textproc/linuxdoc-tools/files/patch-rtf-fix-rtf2rtf.l.diff	2014-09-16 22:24:09 UTC (rev 125401)
@@ -0,0 +1,18 @@
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700958
+--- rtf-fix/rtf2rtf.l.orig	2008-05-28 18:16:36.000000000 +0200
++++ rtf-fix/rtf2rtf.l	2013-02-19 11:10:25.367016000 +0100
+@@ -72,7 +72,14 @@
+ int skipnewline = 0;
+ 
+ extern char *yytext;
++
++#if   YY_FLEX_MAJOR_VERSION > 2 \
++ ||  (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION > 5) \
++ ||  (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION == 5 && YY_FLEX_SUBMINOR_VERSION > 35)
++extern yy_size_t yyleng;
++#else
+ extern int yyleng;
++#endif
+ 
+ #define CHAPTER 1
+ #define SECTION 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140916/fdb36f73/attachment.html>


More information about the macports-changes mailing list