<div dir="ltr">By passing --disable-bootstrap for the native build you&#39;re assuming that the host has flex.  If we could assume that we wouldn&#39;t be building a flex-native.<div><br></div><div>Also I submitted this upgrade a few months ago but flex was aborting in the selftest, which is why it wasn&#39;t integrated.  I&#39;ll integrate it again, and see what happens.</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 May 2018 at 10:09, Hong Liu <span dir="ltr">&lt;<a href="mailto:hongl.fnst@cn.fujitsu.com" target="_blank">hongl.fnst@cn.fujitsu.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Lei Maohui &lt;<a href="mailto:leimaohui@cn.fujitsu.com">leimaohui@cn.fujitsu.com</a>&gt;<br>
<br>
* Deleted 3 patches because these patches have been fixed in new version.<br>
* Added &quot;--disable-bootstrap&quot; to avoid the build error of stage1flex on host.<br>
<br>
stage1flex-misc.o: In function `allocate_array&#39;:<br>
misc.c:(.text+0x38f): undefined reference to `reallocarray&#39;<br>
stage1flex-misc.o: In function `reallocate_array&#39;:<br>
misc.c:(.text+0xc8a): undefined reference to `reallocarray&#39;<br>
collect2: error: ld returned 1 exit status<br>
<br>
<br>
Signed-off-by: Lei Maohui &lt;<a href="mailto:leimaohui@cn.fujitsu.com">leimaohui@cn.fujitsu.com</a>&gt;<br>
Signed-off-by: Hong Liu &lt;<a href="mailto:hongl.fnst@cn.fujitsu.com">hongl.fnst@cn.fujitsu.com</a>&gt;<br>
---<br>
 meta/recipes-devtools/flex/{<a href="http://flex_2.6.0.bb" rel="noreferrer" target="_blank">fl<wbr>ex_2.6.0.bb</a> =&gt; <a href="http://flex_2.6.4.bb" rel="noreferrer" target="_blank">flex_2.6.4.bb</a>} | 13 ++++++-------<br>
 1 file changed, 6 insertions(+), 7 deletions(-)<br>
 rename meta/recipes-devtools/flex/{<a href="http://flex_2.6.0.bb" rel="noreferrer" target="_blank">fl<wbr>ex_2.6.0.bb</a> =&gt; <a href="http://flex_2.6.4.bb" rel="noreferrer" target="_blank">flex_2.6.4.bb</a>} (84%)<br>
<br>
diff --git a/meta/recipes-devtools/flex/<a href="http://flex_2.6.0.bb" rel="noreferrer" target="_blank">f<wbr>lex_2.6.0.bb</a> b/meta/recipes-devtools/flex/<a href="http://flex_2.6.4.bb" rel="noreferrer" target="_blank">f<wbr>lex_2.6.4.bb</a><br>
similarity index 84%<br>
rename from 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>
rename to meta/recipes-devtools/flex/<a href="http://flex_2.6.4.bb" rel="noreferrer" target="_blank">fle<wbr>x_2.6.4.bb</a><br>
index b89b751..4d59cc6 100644<br>
--- a/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>
+++ b/meta/recipes-devtools/flex/<a href="http://flex_2.6.4.bb" rel="noreferrer" target="_blank">f<wbr>lex_2.6.4.bb</a><br>
@@ -10,17 +10,14 @@ BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
<br>
 LIC_FILES_CHKSUM = &quot;file://COPYING;md5=<wbr>e4742cf92e89040b39486a6219b680<wbr>67&quot;<br>
<br>
-SRC_URI = &quot;${SOURCEFORGE_MIRROR}/flex/<wbr>flex-${PV}.tar.bz2 \<br>
+SRC_URI = &quot;<a href="https://github.com/westes/flex/releases/download/v2.6.4/flex-${PV}.tar.gz" rel="noreferrer" target="_blank">https://github.com/westes/<wbr>flex/releases/download/v2.6.4/<wbr>flex-${PV}.tar.gz</a> \<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>266270f13c48ed043d95648075084d<wbr>59&quot;<br>
-SRC_URI[sha256sum] = &quot;<wbr>24e611ef5a4703a191012f80c1027d<wbr>c9d12555183ce0ecd46f3636e587e9<wbr>b8e9&quot;<br>
+SRC_URI[md5sum] = &quot;<wbr>2882e3179748cc9f9c23ec593d6adc<wbr>8d&quot;<br>
+SRC_URI[sha256sum] = &quot;<wbr>e87aae032bf07c26f85ac0ed325099<wbr>8c37621d95f8bd748b31f15b33c45e<wbr>e995&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>
@@ -30,7 +27,9 @@ inherit autotools gettext texinfo ptest<br>
<br>
 M4 = &quot;${bindir}/m4&quot;<br>
 M4_class-native = &quot;${STAGING_BINDIR_NATIVE}/m4&quot;<br>
-EXTRA_OECONF += &quot;ac_cv_path_M4=${M4}&quot;<br>
+EXTRA_OECONF += &quot;ac_cv_path_M4=${M4} \<br>
+                 --disable-bootstrap \<br>
+                &quot;<br>
 EXTRA_OEMAKE += &quot;m4=${STAGING_BINDIR_NATIVE}/<wbr>m4&quot;<br>
<br>
 EXTRA_OEMAKE += &quot;${@bb.utils.contains(&#39;PTEST_<wbr>ENABLED&#39;, &#39;1&#39;, &#39;FLEX=${STAGING_BINDIR_NATIVE}<wbr>/flex&#39;, &#39;&#39;, d)}&quot;<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.7.4<br>
<br>
<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>