<div dir="ltr">ack</div><div class="gmail_extra"><br clear="all"><div><div style="text-align:center"></div><div style="text-align:center"><div align="left" style="font-family:&#39;Times New Roman&#39;;font-size:medium"><font face="Arial" color="#333333" size="-1"><br>

<br><strong>Andrei Gherzan</strong></font><br><font face="Arial" color="#333333" size="-1">mobile +40.744.478.414  fax +40.31.816.28.12</font><br><font face="Arial" color="#333333" size="-1">Email: <a href="mailto:andrei@gherzan.ro" target="_blank">andrei@gherzan.ro</a></font><br>

<font face="Arial" color="#333333" size="-1">Email: <a href="mailto:andrei.gherzan@windriver.com" target="_blank">andrei.gherzan@windriver.com</a></font><br><font face="Arial" color="#333333" size="-1">Romania</font></div>

</div></div>
<br><br><div class="gmail_quote">On Wed, Jan 9, 2013 at 12:39 AM, Saul Wold <span dir="ltr">&lt;<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Same patch for non-gplv3 version:<br>
<br>
<a href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1fd9a16d2a4594a4e9179dc7353ac51ce32eb712" target="_blank">http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1fd9a16d2a4594a4e9179dc7353ac51ce32eb712</a><br>


<br>
[YOCTO #3646]<br>
<br>
Signed-off-by: Saul Wold &lt;<a href="mailto:sgw@linux.intel.com">sgw@linux.intel.com</a>&gt;<br>
---<br>
 .../bash-3.2.48/mkbuiltins_have_stringize.patch    |   29 ++++++++++++++++++++<br>
 meta/recipes-extended/bash/<a href="http://bash_3.2.48.bb" target="_blank">bash_3.2.48.bb</a>          |    4 ++-<br>
 2 files changed, 32 insertions(+), 1 deletion(-)<br>
 create mode 100644 meta/recipes-extended/bash/bash-3.2.48/mkbuiltins_have_stringize.patch<br>
<br>
diff --git a/meta/recipes-extended/bash/bash-3.2.48/mkbuiltins_have_stringize.patch b/meta/recipes-extended/bash/bash-3.2.48/mkbuiltins_have_stringize.patch<br>
new file mode 100644<br>
index 0000000..c4229a7<br>
--- /dev/null<br>
+++ b/meta/recipes-extended/bash/bash-3.2.48/mkbuiltins_have_stringize.patch<br>
@@ -0,0 +1,29 @@<br>
+On hosts with FORTIFY_SOURCES, stringize support is required, as it&#39;s used by<br>
+the macros to wrap functions (e.g. read and open in unistd.h). Those wrappers<br>
+use the STRING() macro from unistd.h. A header in the bash sources overrides<br>
+the unistd.h macro to &#39;x&#39; when HAVE_STRINGIZE is not defined, causing the<br>
+wrappers to generate calls to &#39;xread&#39; and &#39;xopen&#39;, which do not exist,<br>
+resulting in a failure to link.<br>
+<br>
+Assume we have stringize support when cross-compiling, which works around the<br>
+issue.<br>
+<br>
+It may be best for upstream to either give up on supporting compilers without<br>
+stringize support, or to not define STRING() at all when FORTIFY_SOURCES is<br>
+defined, letting the unistd.h one be used, instead.<br>
+<br>
+Upstream-Status: Pending<br>
+<br>
+Signed-off-by: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>&gt;<br>
+Signed-off-by: Saul Wold &lt;<a href="mailto:sgw@linux.intel.com">sgw@linux.intel.com</a>&gt;<br>
+<br>
+--- bash-4.2.orig/builtins/mkbuiltins.c<br>
++++ bash-4.2/builtins/mkbuiltins.c<br>
+@@ -28,6 +28,7 @@<br>
+ #  define HAVE_STDLIB_H<br>
+<br>
+ #  define HAVE_RENAME<br>
++#  define HAVE_STRINGIZE<br>
+ #endif /* CROSS_COMPILING */<br>
+<br>
+ #if defined (HAVE_UNISTD_H)<br>
diff --git a/meta/recipes-extended/bash/<a href="http://bash_3.2.48.bb" target="_blank">bash_3.2.48.bb</a> b/meta/recipes-extended/bash/<a href="http://bash_3.2.48.bb" target="_blank">bash_3.2.48.bb</a><br>
index 828d629..4e6f0f3 100644<br>
--- a/meta/recipes-extended/bash/<a href="http://bash_3.2.48.bb" target="_blank">bash_3.2.48.bb</a><br>
+++ b/meta/recipes-extended/bash/<a href="http://bash_3.2.48.bb" target="_blank">bash_3.2.48.bb</a><br>
@@ -8,7 +8,9 @@ PR = &quot;r11&quot;<br>
 SRC_URI = &quot;${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \<br>
            ${GNU_MIRROR}/bash/bash-3.2-patches/bash32-049;apply=yes;striplevel=0;name=patch001 \<br>
            ${GNU_MIRROR}/bash/bash-3.2-patches/bash32-050;apply=yes;striplevel=0;name=patch002 \<br>
-           ${GNU_MIRROR}/bash/bash-3.2-patches/bash32-051;apply=yes;striplevel=0;name=patch003&quot;<br>
+           ${GNU_MIRROR}/bash/bash-3.2-patches/bash32-051;apply=yes;striplevel=0;name=patch003 \<br>
+           file://mkbuiltins_have_stringize.patch \<br>
+          &quot;<br>
<br>
 SRC_URI[tarball.md5sum] = &quot;338dcf975a93640bb3eaa843ca42e3f8&quot;<br>
 SRC_URI[tarball.sha256sum] = &quot;128d281bd5682ba5f6953122915da71976357d7a76490d266c9173b1d0426348&quot;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.9.5<br>
<br>
<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br></div>