flex: add patch for flex bug 720976
authorMichael Lauer <mickey@vanille-media.de>
Mon, 1 Aug 2005 12:52:58 +0000 (12:52 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 1 Aug 2005 12:52:58 +0000 (12:52 +0000)
packages/flex/files/.mtn2git_empty [new file with mode: 0644]
packages/flex/files/fix-gen.patch [new file with mode: 0644]
packages/flex/flex-native_2.5.31.bb
packages/flex/flex.inc
packages/flex/flex_2.5.31.bb

diff --git a/packages/flex/files/.mtn2git_empty b/packages/flex/files/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/flex/files/fix-gen.patch b/packages/flex/files/fix-gen.patch
new file mode 100644 (file)
index 0000000..55f4f6f
--- /dev/null
@@ -0,0 +1,17 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- flex-2.5.31/gen.c~fix-gen
++++ flex-2.5.31/gen.c
+@@ -1812,8 +1812,7 @@
+                       if (yytext_is_array) {
+                               if (!reentrant){
+                               indent_puts ("static int yy_more_offset = 0;");
+-                }else{
+-                    indent_puts ("static int yy_prev_more_offset = 0;");
++                                indent_puts ("static int yy_prev_more_offset = 0;");
+                 }
+                       }
+                       else if (!reentrant) {
index fa125d6..ff8a427 100644 (file)
@@ -1,7 +1,6 @@
 include flex.inc
 inherit native
-
-PR = "r1"
+PR = "r2"
 
 do_stage () {
        install -m 0755 flex ${STAGING_BINDIR}
index b28ad9e..6e605ac 100644 (file)
@@ -2,7 +2,8 @@ DESCRIPTION = "Flex is a tool for generating programs that recognize lexical pat
 SECTION = "devel"
 LICENSE = "BSD"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/lex/flex-2.5.31.tar.bz2"
+SRC_URI = "${SOURCEFORGE_MIRROR}/lex/flex-2.5.31.tar.bz2 \
+           file://fix-gen.patch;patch=1"
 S = "${WORKDIR}/flex-${PV}"
 
 inherit autotools
index 2263d8f..b96c645 100644 (file)
@@ -1,5 +1,5 @@
 include flex.inc
-PR = "r3"
+PR = "r4"
 
 SRC_URI += "file://include.patch;patch=1"