<div dir="ltr">This was already sent to ML 2 weeks ago:<div><a href="http://lists.openembedded.org/pipermail/openembedded-core/2017-February/132584.html">http://lists.openembedded.org/pipermail/openembedded-core/2017-February/132584.html</a><br></div><div><br></div><div>discussed few times since it was upgraded</div><div><br></div><div>and I was pinging Ross about it few days ago as well, hopefully it will be included before pyro is branched.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 24, 2017 at 9:51 PM, Mark Hatle <span dir="ltr">&lt;<a href="mailto:mark.hatle@windriver.com" target="_blank">mark.hatle@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This reverts commit 3632abd01abb8dfff230e18f828af7<wbr>05da488f97.<br>
<br>
The commit upgraded flex and changed the way it was constructed.  There<br>
is a problem with either the upgrade or changes in construction mechanism<br>
resulting in problems similar to:<br>
<br>
../cil/src/cil_lexer.lo: In function `cil_lexer_setup&#39;:<br>
cil_lexer.c:(.text+0x1737): undefined reference to `yy_scan_buffer&#39;<br>
../cil/src/cil_lexer.lo: In function `cil_lexer_destroy&#39;:<br>
cil_lexer.c:(.text+0x1773): undefined reference to `yylex_destroy&#39;<br>
<br>
Effectively the yy_scan_buffer and yylex_destroy (in this example) were<br>
defined in a header, but were not defined in the resulting generated code.<br>
<br>
The snippet above was from libsepol-native from the meta-selinux layer.<br>
The build was performed on a Fedora 24 system.<br>
<br>
Reverting that commit resolves the problem.<br>
<br>
Signed-off-by: Mark Hatle &lt;<a href="mailto:mark.hatle@windriver.com">mark.hatle@windriver.com</a>&gt;<br>
---<br>
 ...oid-c-comments-in-c-code-<wbr>fails-with-gcc-6.patch |  64 ++++++<br>
 .../recipes-devtools/flex/<wbr>flex/CVE-2016-6354.patch |  59 ++++++<br>
 meta/recipes-devtools/flex/<wbr>flex/crosscompile.patch | 214 ---------------------<br>
 .../flex/flex/do_not_create_<wbr>pdf_doc.patch          |  17 ++<br>
 .../flex/{<a href="http://flex_2.6.2.bb" rel="noreferrer" target="_blank">flex_2.6.2.bb</a> =&gt; <a href="http://flex_2.6.0.bb" rel="noreferrer" target="_blank">flex_2.6.0.bb</a>}          |  11 +-<br>
 5 files changed, 146 insertions(+), 219 deletions(-)<br>
 create mode 100644 meta/recipes-devtools/flex/<wbr>flex/0002-avoid-c-comments-in-<wbr>c-code-fails-with-gcc-6.patch<br>
 create mode 100644 meta/recipes-devtools/flex/<wbr>flex/CVE-2016-6354.patch<br>
 delete mode 100644 meta/recipes-devtools/flex/<wbr>flex/crosscompile.patch<br>
 create mode 100644 meta/recipes-devtools/flex/<wbr>flex/do_not_create_pdf_doc.<wbr>patch<br>
 rename meta/recipes-devtools/flex/{<a href="http://flex_2.6.2.bb" rel="noreferrer" target="_blank">fl<wbr>ex_2.6.2.bb</a> =&gt; <a href="http://flex_2.6.0.bb" rel="noreferrer" target="_blank">flex_2.6.0.bb</a>} (84%)<br>
<br>
diff --git a/meta/recipes-devtools/flex/<wbr>flex/0002-avoid-c-comments-in-<wbr>c-code-fails-with-gcc-6.patch b/meta/recipes-devtools/flex/<wbr>flex/0002-avoid-c-comments-in-<wbr>c-code-fails-with-gcc-6.patch<br>
new file mode 100644<br>
index 0000000000..438ca5f527<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/flex/<wbr>flex/0002-avoid-c-comments-in-<wbr>c-code-fails-with-gcc-6.patch<br>
@@ -0,0 +1,64 @@<br>
+From 7072befe1397af4eb01c3ff7edf99f<wbr>0cd5076089 Mon Sep 17 00:00:00 2001<br>
+From: =?UTF-8?q?Andreas=20M=C3=<wbr>BCller?= &lt;<a href="mailto:schnitzeltony@googlemail.com">schnitzeltony@googlemail.com</a>&gt;<br>
+Date: Tue, 30 Aug 2016 14:25:32 +0200<br>
+Subject: [PATCH] avoid c++ comments in c-code - fails with gcc-6<br>
+MIME-Version: 1.0<br>
+Content-Type: text/plain; charset=UTF-8<br>
+Content-Transfer-Encoding: 8bit<br>
+<br>
+fixes:<br>
+<br>
+| error: C++ style comments are not allowed in ISO C90<br>
+| num_to_alloc = 1; // After all that talk, this was set to 1 anyways...<br>
+<br>
+Upstream-Status: Pending<br>
+<br>
+Signed-off-by: Andreas Müller &lt;<a href="mailto:schnitzeltony@googlemail.com">schnitzeltony@googlemail.com</a>&gt;<br>
+---<br>
+ src/flex.skl | 2 +-<br>
+ src/scan.c   | 2 +-<br>
+ src/skel.c   | 2 +-<br>
+ 3 files changed, 3 insertions(+), 3 deletions(-)<br>
+<br>
+diff --git a/src/flex.skl b/src/flex.skl<br>
+index 73a0b9e..ed71627 100644<br>
+--- a/src/flex.skl<br>
++++ b/src/flex.skl<br>
+@@ -2350,7 +2350,7 @@ void yyFlexLexer::yyensure_buffer_<wbr>stack(void)<br>
+                * scanner will even need a stack. We use 2 instead of 1 to avoid an<br>
+                * immediate realloc on the next call.<br>
+          */<br>
+-              num_to_alloc = 1; // After all that talk, this was set to 1 anyways...<br>
++              num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */<br>
+               YY_G(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc<br>
+                                                               (num_to_alloc * sizeof(struct yy_buffer_state*)<br>
+                                                               M4_YY_CALL_LAST_ARG);<br>
+diff --git a/src/scan.c b/src/scan.c<br>
+index b55df2d..f1dce75 100644<br>
+--- a/src/scan.c<br>
++++ b/src/scan.c<br>
+@@ -4672,7 +4672,7 @@ static void yyensure_buffer_stack (void)<br>
+                * scanner will even need a stack. We use 2 instead of 1 to avoid an<br>
+                * immediate realloc on the next call.<br>
+          */<br>
+-              num_to_alloc = 1; // After all that talk, this was set to 1 anyways...<br>
++              num_to_alloc = 1; /* After all that talk, this was set to 1 anyways...*/<br>
+               (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc<br>
+                                                               (num_to_alloc * sizeof(struct yy_buffer_state*)<br>
+                                                               );<br>
+diff --git a/src/skel.c b/src/skel.c<br>
+index ef657d3..26cc889 100644<br>
+--- a/src/skel.c<br>
++++ b/src/skel.c<br>
+@@ -2561,7 +2561,7 @@ const char *skel[] = {<br>
+   &quot;            * scanner will even need a stack. We use 2 instead of 1 to avoid an&quot;,<br>
+   &quot;            * immediate realloc on the next call.&quot;,<br>
+   &quot;         */&quot;,<br>
+-  &quot;           num_to_alloc = 1; // After all that talk, this was set to 1 anyways...&quot;,<br>
++  &quot;           num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */&quot;,<br>
+   &quot;           YY_G(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc&quot;,<br>
+   &quot;                                                           (num_to_alloc * sizeof(struct yy_buffer_state*)&quot;,<br>
+   &quot;                                                           M4_YY_CALL_LAST_ARG);&quot;,<br>
+--<br>
+2.5.5<br>
+<br>
diff --git a/meta/recipes-devtools/flex/<wbr>flex/CVE-2016-6354.patch b/meta/recipes-devtools/flex/<wbr>flex/CVE-2016-6354.patch<br>
new file mode 100644<br>
index 0000000000..216ac7ae1c<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/flex/<wbr>flex/CVE-2016-6354.patch<br>
@@ -0,0 +1,59 @@<br>
+From 3939eccdff598f47e5b37b05d58bf1<wbr>b44d3796e7 Mon Sep 17 00:00:00 2001<br>
+From: Jussi Kukkonen &lt;<a href="mailto:jussi.kukkonen@intel.com">jussi.kukkonen@intel.com</a>&gt;<br>
+Date: Fri, 7 Oct 2016 14:15:38 +0300<br>
+Subject: [PATCH] Prevent buffer overflow in yy_get_next_buffer<br>
+<br>
+This is upstream commit a5cbe929ac3255d371e698f62dc256<wbr>afe7006466<br>
+with some additional backporting to make binutils build again.<br>
+<br>
+Upstream-Status: Backport<br>
+CVE: CVE-2016-6354<br>
+Signed-off-by: Jussi Kukkonen &lt;<a href="mailto:jussi.kukkonen@intel.com">jussi.kukkonen@intel.com</a>&gt;<br>
+---<br>
+ src/flex.skl | 2 +-<br>
+ src/scan.c   | 2 +-<br>
+ src/skel.c   | 2 +-<br>
+ 3 files changed, 3 insertions(+), 3 deletions(-)<br>
+<br>
+diff --git a/src/flex.skl b/src/flex.skl<br>
+index ed71627..814d562 100644<br>
+--- a/src/flex.skl<br>
++++ b/src/flex.skl<br>
+@@ -1718,7 +1718,7 @@ int yyFlexLexer::yy_get_next_<wbr>buffer()<br>
+<br>
+       else<br>
+               {<br>
+-                      yy_size_t num_to_read =<br>
++                      int num_to_read =<br>
+                       YY_CURRENT_BUFFER_LVALUE-&gt;yy_<wbr>buf_size - number_to_move - 1;<br>
+<br>
+               while ( num_to_read &lt;= 0 )<br>
+diff --git a/src/scan.c b/src/scan.c<br>
+index f1dce75..1949872 100644<br>
+--- a/src/scan.c<br>
++++ b/src/scan.c<br>
+@@ -4181,7 +4181,7 @@ static int yy_get_next_buffer (void)<br>
+<br>
+       else<br>
+               {<br>
+-                      yy_size_t num_to_read =<br>
++                      int num_to_read =<br>
+                       YY_CURRENT_BUFFER_LVALUE-&gt;yy_<wbr>buf_size - number_to_move - 1;<br>
+<br>
+               while ( num_to_read &lt;= 0 )<br>
+diff --git a/src/skel.c b/src/skel.c<br>
+index 26cc889..0344d18 100644<br>
+--- a/src/skel.c<br>
++++ b/src/skel.c<br>
+@@ -1929,7 +1929,7 @@ const char *skel[] = {<br>
+   &quot;&quot;,<br>
+   &quot;   else&quot;,<br>
+   &quot;           {&quot;,<br>
+-  &quot;                   yy_size_t num_to_read =&quot;,<br>
++  &quot;                   int num_to_read =&quot;,<br>
+   &quot;                   YY_CURRENT_BUFFER_LVALUE-&gt;yy_<wbr>buf_size - number_to_move - 1;&quot;,<br>
+   &quot;&quot;,<br>
+   &quot;           while ( num_to_read &lt;= 0 )&quot;,<br>
+--<br>
+2.1.4<br>
+<br>
diff --git a/meta/recipes-devtools/flex/<wbr>flex/crosscompile.patch b/meta/recipes-devtools/flex/<wbr>flex/crosscompile.patch<br>
deleted file mode 100644<br>
index 14463d93f4..0000000000<br>
--- a/meta/recipes-devtools/flex/<wbr>flex/crosscompile.patch<br>
+++ /dev/null<br>
@@ -1,214 +0,0 @@<br>
-Add this patch from <a href="https://github.com/westes/flex/pull/153" rel="noreferrer" target="_blank">https://github.com/westes/<wbr>flex/pull/153</a> with minor changes<br>
-to fix cross compilation.<br>
-<br>
-Upstream-Status: Submitted<br>
-Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt;<br>
-<br>
-From 52d4a3ca249be984614d9204dcc7b9<wbr>57bc04b2ac Mon Sep 17 00:00:00 2001<br>
-From: Alastair Hughes &lt;<a href="mailto:hobbitalastair@gmail.com">hobbitalastair@gmail.com</a>&gt;<br>
-Date: Fri, 6 Jan 2017 19:06:03 +1300<br>
-Subject: [PATCH] build: support cross compiling<br>
-<br>
-Check for cross compiling. If cross compiling, build stage1flex using a<br>
-custom link command.<br>
-We also override LDADD since that adds the replacement implementations<br>
-that are cross compiled, and instead always use the replacement library<br>
-implementations.<br>
-<br>
-We don&#39;t use BUILD_OBJEXT and BUILD_EXEEXT since it seems that automake<br>
-does not support these.<br>
-<br>
-Fixes #78.<br>
-<br>
-Signed-off-by: Alastair Hughes &lt;<a href="mailto:hobbitalastair@gmail.com">hobbitalastair@gmail.com</a>&gt;<br>
-Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt;<br>
----<br>
- <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a>               |   3 ++<br>
- m4/ax_prog_cc_for_build.m4 | 125 ++++++++++++++++++++++++++++++<wbr>+++++++++++++++<br>
- src/Makefile.am            |  17 ++++++<br>
- 3 files changed, 145 insertions(+)<br>
- create mode 100644 m4/ax_prog_cc_for_build.m4<br>
-<br>
-diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
-index 901339f..2a7dce2 100644<br>
---- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
-+++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
-@@ -42,6 +42,7 @@ AM_GNU_GETTEXT_VERSION([0.19])<br>
- AC_PROG_YACC<br>
- AM_PROG_LEX<br>
- AC_PROG_CC<br>
-+AX_PROG_CC_FOR_BUILD<br>
- AC_PROG_CXX<br>
- AM_PROG_CC_C_O<br>
- AC_PROG_LN_S<br>
-@@ -75,6 +76,8 @@ AC_ARG_ENABLE([bootstrap],<br>
-   [], [enable_bootstrap=yes])<br>
- AM_CONDITIONAL([ENABLE_<wbr>BOOTSTRAP], [test &quot;x$enable_bootstrap&quot; = xyes])<br>
-<br>
-+AM_CONDITIONAL([CROSS], [test &quot;x$cross_compiling&quot; = xyes])<br>
-+<br>
- AC_PATH_PROG([BISON], bison, no)<br>
- AS_IF([test &quot;$BISON&quot; != no],[],<br>
-       [ AC_SUBST([BISON], [\${top_srcdir}/build-aux/<wbr>missing bison])<br>
-diff --git a/m4/ax_prog_cc_for_build.m4 b/m4/ax_prog_cc_for_build.m4<br>
-new file mode 100644<br>
-index 0000000..77fd346<br>
---- /dev/null<br>
-+++ b/m4/ax_prog_cc_for_build.m4<br>
-@@ -0,0 +1,125 @@<br>
-+# ==============================<wbr>==============================<wbr>===============<br>
-+#   <a href="http://www.gnu.org/software/autoconf-archive/ax_prog_cc_for_build.html" rel="noreferrer" target="_blank">http://www.gnu.org/software/<wbr>autoconf-archive/ax_prog_cc_<wbr>for_build.html</a><br>
-+# ==============================<wbr>==============================<wbr>===============<br>
-+#<br>
-+# SYNOPSIS<br>
-+#<br>
-+#   AX_PROG_CC_FOR_BUILD<br>
-+#<br>
-+# DESCRIPTION<br>
-+#<br>
-+#   This macro searches for a C compiler that generates native executables,<br>
-+#   that is a C compiler that surely is not a cross-compiler. This can be<br>
-+#   useful if you have to generate source code at compile-time like for<br>
-+#   example GCC does.<br>
-+#<br>
-+#   The macro sets the CC_FOR_BUILD and CPP_FOR_BUILD macros to anything<br>
-+#   needed to compile or link (CC_FOR_BUILD) and preprocess (CPP_FOR_BUILD).<br>
-+#   The value of these variables can be overridden by the user by specifying<br>
-+#   a compiler with an environment variable (like you do for standard CC).<br>
-+#<br>
-+#   It also sets BUILD_EXEEXT and BUILD_OBJEXT to the executable and object<br>
-+#   file extensions for the build platform, and GCC_FOR_BUILD to `yes&#39; if<br>
-+#   the compiler we found is GCC. All these variables but GCC_FOR_BUILD are<br>
-+#   substituted in the Makefile.<br>
-+#<br>
-+# LICENSE<br>
-+#<br>
-+#   Copyright (c) 2008 Paolo Bonzini &lt;<a href="mailto:bonzini@gnu.org">bonzini@gnu.org</a>&gt;<br>
-+#<br>
-+#   Copying and distribution of this file, with or without modification, are<br>
-+#   permitted in any medium without royalty provided the copyright notice<br>
-+#   and this notice are preserved. This file is offered as-is, without any<br>
-+#   warranty.<br>
-+<br>
-+#serial 8<br>
-+<br>
-+AU_ALIAS([AC_PROG_CC_FOR_<wbr>BUILD], [AX_PROG_CC_FOR_BUILD])<br>
-+AC_DEFUN([AX_PROG_CC_FOR_<wbr>BUILD], [dnl<br>
-+AC_REQUIRE([AC_PROG_CC])dnl<br>
-+AC_REQUIRE([AC_PROG_CPP])dnl<br>
-+AC_REQUIRE([AC_EXEEXT])dnl<br>
-+AC_REQUIRE([AC_CANONICAL_<wbr>HOST])dnl<br>
-+<br>
-+dnl Use the standard macros, but make them use other variable names<br>
-+dnl<br>
-+pushdef([ac_cv_prog_CPP], ac_cv_build_prog_CPP)dnl<br>
-+pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl<br>
-+pushdef([ac_cv_prog_cc_<wbr>works], ac_cv_build_prog_cc_works)dnl<br>
-+pushdef([ac_cv_prog_cc_<wbr>cross], ac_cv_build_prog_cc_cross)dnl<br>
-+pushdef([ac_cv_prog_cc_g], ac_cv_build_prog_cc_g)dnl<br>
-+pushdef([ac_cv_exeext], ac_cv_build_exeext)dnl<br>
-+pushdef([ac_cv_objext], ac_cv_build_objext)dnl<br>
-+pushdef([ac_exeext], ac_build_exeext)dnl<br>
-+pushdef([ac_objext], ac_build_objext)dnl<br>
-+pushdef([CC], CC_FOR_BUILD)dnl<br>
-+pushdef([CPP], CPP_FOR_BUILD)dnl<br>
-+pushdef([CFLAGS], CFLAGS_FOR_BUILD)dnl<br>
-+pushdef([CPPFLAGS], CPPFLAGS_FOR_BUILD)dnl<br>
-+pushdef([LDFLAGS], LDFLAGS_FOR_BUILD)dnl<br>
-+pushdef([host], build)dnl<br>
-+pushdef([host_alias], build_alias)dnl<br>
-+pushdef([host_cpu], build_cpu)dnl<br>
-+pushdef([host_vendor], build_vendor)dnl<br>
-+pushdef([host_os], build_os)dnl<br>
-+pushdef([ac_cv_host], ac_cv_build)dnl<br>
-+pushdef([ac_cv_host_alias], ac_cv_build_alias)dnl<br>
-+pushdef([ac_cv_host_cpu], ac_cv_build_cpu)dnl<br>
-+pushdef([ac_cv_host_vendor], ac_cv_build_vendor)dnl<br>
-+pushdef([ac_cv_host_os], ac_cv_build_os)dnl<br>
-+pushdef([ac_cpp], ac_build_cpp)dnl<br>
-+pushdef([ac_compile], ac_build_compile)dnl<br>
-+pushdef([ac_link], ac_build_link)dnl<br>
-+<br>
-+save_cross_compiling=$cross_<wbr>compiling<br>
-+save_ac_tool_prefix=$ac_<wbr>tool_prefix<br>
-+cross_compiling=no<br>
-+ac_tool_prefix=<br>
-+<br>
-+AC_PROG_CC<br>
-+AC_PROG_CPP<br>
-+AC_EXEEXT<br>
-+<br>
-+ac_tool_prefix=$save_ac_<wbr>tool_prefix<br>
-+cross_compiling=$save_cross_<wbr>compiling<br>
-+<br>
-+dnl Restore the old definitions<br>
-+dnl<br>
-+popdef([ac_link])dnl<br>
-+popdef([ac_compile])dnl<br>
-+popdef([ac_cpp])dnl<br>
-+popdef([ac_cv_host_os])dnl<br>
-+popdef([ac_cv_host_vendor])<wbr>dnl<br>
-+popdef([ac_cv_host_cpu])dnl<br>
-+popdef([ac_cv_host_alias])<wbr>dnl<br>
-+popdef([ac_cv_host])dnl<br>
-+popdef([host_os])dnl<br>
-+popdef([host_vendor])dnl<br>
-+popdef([host_cpu])dnl<br>
-+popdef([host_alias])dnl<br>
-+popdef([host])dnl<br>
-+popdef([LDFLAGS])dnl<br>
-+popdef([CPPFLAGS])dnl<br>
-+popdef([CFLAGS])dnl<br>
-+popdef([CPP])dnl<br>
-+popdef([CC])dnl<br>
-+popdef([ac_objext])dnl<br>
-+popdef([ac_exeext])dnl<br>
-+popdef([ac_cv_objext])dnl<br>
-+popdef([ac_cv_exeext])dnl<br>
-+popdef([ac_cv_prog_cc_g])dnl<br>
-+popdef([ac_cv_prog_cc_cross]<wbr>)dnl<br>
-+popdef([ac_cv_prog_cc_works]<wbr>)dnl<br>
-+popdef([ac_cv_prog_gcc])dnl<br>
-+popdef([ac_cv_prog_CPP])dnl<br>
-+<br>
-+dnl Finally, set Makefile variables<br>
-+dnl<br>
-+BUILD_EXEEXT=$ac_build_<wbr>exeext<br>
-+BUILD_OBJEXT=$ac_build_<wbr>objext<br>
-+AC_SUBST(BUILD_EXEEXT)dnl<br>
-+AC_SUBST(BUILD_OBJEXT)dnl<br>
-+AC_SUBST([CFLAGS_FOR_BUILD])<wbr>dnl<br>
-+AC_SUBST([CPPFLAGS_FOR_<wbr>BUILD])dnl<br>
-+AC_SUBST([LDFLAGS_FOR_BUILD]<wbr>)dnl<br>
-+])<br>
-diff --git a/src/Makefile.am b/src/Makefile.am<br>
-index 3b5e362..05fe8d3 100644<br>
---- a/src/Makefile.am<br>
-+++ b/src/Makefile.am<br>
-@@ -22,7 +22,24 @@ stage1flex_SOURCES = \<br>
-       scan.l \<br>
-       $(COMMON_SOURCES)<br>
-<br>
-+if CROSS<br>
-+stage1flex_LDADD =<br>
-+stage1flex_SOURCES += \<br>
-+                    ../lib/malloc.c \<br>
-+                    ../lib/realloc.c \<br>
-+                    ../lib/reallocarray.c<br>
-+stage1flex_LINK = $(LIBTOOL) --tag=CC --mode=link $(CC_FOR_BUILD) \<br>
-+                $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@<br>
-+<br>
-+$(stage1flex_OBJECTS): CC=$(CC_FOR_BUILD)<br>
-+$(stage1flex_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)<br>
-+$(stage1flex_OBJECTS): CPP=$(CPP_FOR_BUILD)<br>
-+$(stage1flex_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)<br>
-+$(stage1flex_OBJECTS): LDFLAGS=$(LDFLAGS_FOR_BUILD)<br>
-+else<br>
- stage1flex_CFLAGS = $(AM_CFLAGS)<br>
-+stage1flex_LINK = $(LINK)<br>
-+endif<br>
-<br>
- flex_SOURCES = \<br>
-       $(COMMON_SOURCES)<br>
---<br>
-2.8.1<br>
diff --git a/meta/recipes-devtools/flex/<wbr>flex/do_not_create_pdf_doc.<wbr>patch b/meta/recipes-devtools/flex/<wbr>flex/do_not_create_pdf_doc.<wbr>patch<br>
new file mode 100644<br>
index 0000000000..032833ae7a<br>
--- /dev/null<br>
+++ b/meta/recipes-devtools/flex/<wbr>flex/do_not_create_pdf_doc.<wbr>patch<br>
@@ -0,0 +1,17 @@<br>
+Upstream-Status: Inappropriate (embedded specific)<br>
+<br>
+Signed-off-by: Laurentiu Palcu &lt;<a href="mailto:laurentiu.palcu@intel.com">laurentiu.palcu@intel.com</a>&gt;<br>
+<br>
+Index: flex-2.5.37/doc/Makefile.am<br>
+=============================<wbr>==============================<wbr>========<br>
+--- flex-2.5.37.orig/doc/Makefile.<wbr>am   2012-07-21 04:18:27.000000000 +0300<br>
++++ flex-2.5.37/doc/Makefile.am        2013-07-30 17:57:09.834834531 +0300<br>
+@@ -2,7 +2,7 @@<br>
+<br>
+ info_TEXINFOS =       flex.texi<br>
+ dist_man_MANS = flex.1<br>
+-dist_doc_DATA= flex.pdf<br>
++EXTRA_DIST= flex.pdf<br>
+<br>
+ CLEANFILES = \<br>
+       flex.hks \<br>
diff --git a/meta/recipes-devtools/flex/<a href="http://flex_2.6.2.bb" rel="noreferrer" target="_blank">f<wbr>lex_2.6.2.bb</a> b/meta/recipes-devtools/flex/<a href="http://flex_2.6.0.bb" rel="noreferrer" target="_blank">f<wbr>lex_2.6.0.bb</a><br>
similarity index 84%<br>
rename from meta/recipes-devtools/flex/<a href="http://flex_2.6.2.bb" rel="noreferrer" target="_blank">fle<wbr>x_2.6.2.bb</a><br>
rename to meta/recipes-devtools/flex/<a href="http://flex_2.6.0.bb" rel="noreferrer" target="_blank">fle<wbr>x_2.6.0.bb</a><br>
index 1780cabbff..ab35b09f99 100644<br>
--- a/meta/recipes-devtools/flex/<a href="http://flex_2.6.2.bb" rel="noreferrer" target="_blank">f<wbr>lex_2.6.2.bb</a><br>
+++ b/meta/recipes-devtools/flex/<a href="http://flex_2.6.0.bb" rel="noreferrer" target="_blank">f<wbr>lex_2.6.0.bb</a><br>
@@ -6,20 +6,21 @@ SECTION = &quot;devel&quot;<br>
 LICENSE = &quot;BSD&quot;<br>
<br>
 DEPENDS = &quot;${@bb.utils.contains(&#39;PTEST_<wbr>ENABLED&#39;, &#39;1&#39;, &#39;bison-native flex-native&#39;, &#39;&#39;, d)}&quot;<br>
-<br>
 BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
<br>
 LIC_FILES_CHKSUM = &quot;file://COPYING;md5=<wbr>e4742cf92e89040b39486a6219b680<wbr>67&quot;<br>
<br>
-SRC_URI = &quot;<a href="https://github.com/westes/flex/releases/download/v${PV}/flex-${PV}.tar.gz" rel="noreferrer" target="_blank">https://github.com/westes/<wbr>flex/releases/download/v${PV}/<wbr>flex-${PV}.tar.gz</a> \<br>
-           file://crosscompile.patch;<wbr>apply=1 \<br>
+SRC_URI = &quot;${SOURCEFORGE_MIRROR}/flex/<wbr>flex-${PV}.tar.bz2 \<br>
            file://run-ptest \<br>
+           file://do_not_create_pdf_doc.<wbr>patch \<br>
            file://0001-tests-add-a-<wbr>target-for-building-tests-<wbr>without-runnin.patch \<br>
+           file://0002-avoid-c-comments-<wbr>in-c-code-fails-with-gcc-6.<wbr>patch \<br>
+           file://CVE-2016-6354.patch \<br>
            ${@bb.utils.contains(&#39;PTEST_<wbr>ENABLED&#39;, &#39;1&#39;, &#39;&#39;, &#39;file://disable-tests.patch&#39;, d)} \<br>
            &quot;<br>
<br>
-SRC_URI[md5sum] = &quot;<wbr>cc6d76c333db7653d5caf423a33352<wbr>39&quot;<br>
-SRC_URI[sha256sum] = &quot;<wbr>9a01437a1155c799b7dc2508620564<wbr>ef806ba66250c36bf5f9034b1c207c<wbr>b2c9&quot;<br>
+SRC_URI[md5sum] = &quot;<wbr>266270f13c48ed043d95648075084d<wbr>59&quot;<br>
+SRC_URI[sha256sum] = &quot;<wbr>24e611ef5a4703a191012f80c1027d<wbr>c9d12555183ce0ecd46f3636e587e9<wbr>b8e9&quot;<br>
<br>
 # Flex has moved to github from 2.6.1 onwards<br>
 UPSTREAM_CHECK_URI = &quot;<a href="https://github.com/westes/flex/releases" rel="noreferrer" target="_blank">https://github.com/westes/<wbr>flex/releases</a>&quot;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.0.rc1<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>