<div dir="ltr">By passing --disable-bootstrap for the native build you're assuming that the host has flex. If we could assume that we wouldn'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't integrated. I'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"><<a href="mailto:hongl.fnst@cn.fujitsu.com" target="_blank">hongl.fnst@cn.fujitsu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Lei Maohui <<a href="mailto:leimaohui@cn.fujitsu.com">leimaohui@cn.fujitsu.com</a>><br>
<br>
* Deleted 3 patches because these patches have been fixed in new version.<br>
* Added "--disable-bootstrap" to avoid the build error of stage1flex on host.<br>
<br>
stage1flex-misc.o: In function `allocate_array':<br>
misc.c:(.text+0x38f): undefined reference to `reallocarray'<br>
stage1flex-misc.o: In function `reallocate_array':<br>
misc.c:(.text+0xc8a): undefined reference to `reallocarray'<br>
collect2: error: ld returned 1 exit status<br>
<br>
<br>
Signed-off-by: Lei Maohui <<a href="mailto:leimaohui@cn.fujitsu.com">leimaohui@cn.fujitsu.com</a>><br>
Signed-off-by: Hong Liu <<a href="mailto:hongl.fnst@cn.fujitsu.com">hongl.fnst@cn.fujitsu.com</a>><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> => <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> => <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 = "native nativesdk"<br>
<br>
LIC_FILES_CHKSUM = "file://COPYING;md5=<wbr>e4742cf92e89040b39486a6219b680<wbr>67"<br>
<br>
-SRC_URI = "${SOURCEFORGE_MIRROR}/flex/<wbr>flex-${PV}.tar.bz2 \<br>
+SRC_URI = "<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('PTEST_<wbr>ENABLED', '1', '', 'file://disable-tests.patch', d)} \<br>
"<br>
<br>
-SRC_URI[md5sum] = "<wbr>266270f13c48ed043d95648075084d<wbr>59"<br>
-SRC_URI[sha256sum] = "<wbr>24e611ef5a4703a191012f80c1027d<wbr>c9d12555183ce0ecd46f3636e587e9<wbr>b8e9"<br>
+SRC_URI[md5sum] = "<wbr>2882e3179748cc9f9c23ec593d6adc<wbr>8d"<br>
+SRC_URI[sha256sum] = "<wbr>e87aae032bf07c26f85ac0ed325099<wbr>8c37621d95f8bd748b31f15b33c45e<wbr>e995"<br>
<br>
# Flex has moved to github from 2.6.1 onwards<br>
UPSTREAM_CHECK_URI = "<a href="https://github.com/westes/flex/releases" rel="noreferrer" target="_blank">https://github.com/westes/<wbr>flex/releases</a>"<br>
@@ -30,7 +27,9 @@ inherit autotools gettext texinfo ptest<br>
<br>
M4 = "${bindir}/m4"<br>
M4_class-native = "${STAGING_BINDIR_NATIVE}/m4"<br>
-EXTRA_OECONF += "ac_cv_path_M4=${M4}"<br>
+EXTRA_OECONF += "ac_cv_path_M4=${M4} \<br>
+ --disable-bootstrap \<br>
+ "<br>
EXTRA_OEMAKE += "m4=${STAGING_BINDIR_NATIVE}/<wbr>m4"<br>
<br>
EXTRA_OEMAKE += "${@bb.utils.contains('PTEST_<wbr>ENABLED', '1', 'FLEX=${STAGING_BINDIR_NATIVE}<wbr>/flex', '', d)}"<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>