[packages/kde4-kdevelop-pg-qt] - fix building with current flex - rel 3

baggins baggins at pld-linux.org
Sat Oct 5 23:43:58 CEST 2019


commit 1635405cfe80a3d6c0b361930994a973bc046634
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Oct 5 23:42:40 2019 +0200

    - fix building with current flex
    - rel 3

 flex.patch               | 18 ++++++++++++++++++
 kde4-kdevelop-pg-qt.spec |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/kde4-kdevelop-pg-qt.spec b/kde4-kdevelop-pg-qt.spec
index d22e127..ae3efce 100644
--- a/kde4-kdevelop-pg-qt.spec
+++ b/kde4-kdevelop-pg-qt.spec
@@ -6,11 +6,12 @@
 Summary:	The parser-generator from KDevplatform
 Name:		kde4-kdevelop-pg-qt
 Version:	1.0.0
-Release:	2
+Release:	3
 License:	GPL
 Group:		X11/Development/Tools
 Source0:	ftp://ftp.kde.org/pub/kde/%{_state}/%{orgname}/%{version}/src/%{orgname}-%{version}.tar.bz2
 # Source0-md5:	155f4e9a3a6d34ebe756c2a16169706f
+Patch0:		flex.patch
 URL:		http://www.kdevelop.org/
 BuildRequires:	automoc4
 BuildRequires:	bison
@@ -28,6 +29,7 @@ for some KDevelop-languagesupport-plugins (Ruby, PHP, Java...).
 
 %prep
 %setup -q -n %{orgname}-%{version}
+%patch0 -p1
 
 %build
 install -d build
diff --git a/flex.patch b/flex.patch
new file mode 100644
index 0000000..cc866a0
--- /dev/null
+++ b/flex.patch
@@ -0,0 +1,18 @@
+--- kdevelop-pg-qt-1.0.0/kdev-pg/kdev-pg-lexer.ll~	2012-01-27 22:40:18.000000000 +0100
++++ kdevelop-pg-qt-1.0.0/kdev-pg/kdev-pg-lexer.ll	2019-10-05 23:38:54.290088763 +0200
+@@ -1,3 +1,4 @@
++%option yymore
+ %{
+ /* This file is part of kdev-pg-qt
+    Copyright (C) 2006 Jakob Petsovits <jpetso at gmx.at>
+--- kdevelop-pg-qt-1.0.0/kdev-pg/kdev-pg-parser.yy~	2012-01-27 22:40:18.000000000 +0100
++++ kdevelop-pg-qt-1.0.0/kdev-pg/kdev-pg-parser.yy	2019-10-05 23:40:23.146752513 +0200
+@@ -309,7 +309,7 @@
+     | T_CONTINUE {
+         r = "\nlxCONTINUE;\n";
+       }
+-    | /* empty */ { r = "\nlxSKIP\n" }
++    | /* empty */ { r = "\nlxSKIP\n"; }
+     ;
+ 
+ regexp
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kde4-kdevelop-pg-qt.git/commitdiff/1635405cfe80a3d6c0b361930994a973bc046634



More information about the pld-cvs-commit mailing list