<div>Yes, you are right.</div><div>The mistake was in local setting because DISTRO_VERSION was set to "-${DATE}" and the minus created</div><div>the install error.</div><div>Locally solved, please discard the patch.</div>
<div>Thanks,</div><div>Giuseppe<br><br></div><div class="gmail_quote">2012/10/23 Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="im">On Mon, Oct 22, 2012 at 05:32:32PM +0200, Giuseppe CONDORELLI wrote:<br>
> Fixed error in do_install_basefilesissue, printf is now replaced by echo.<br>
<br>
</div>Looks like partial revert of<br>
<br>
commit a19880ad10ccb5d7d909dcf9de5c3dc58a0ebcd3<br>
Author: Andrei Gherzan <<a href="mailto:andrei@gherzan.ro">andrei@gherzan.ro</a>><br>
Date: Thu Sep 20 12:56:59 2012 +0300<br>
<br>
Replace "echo -e" with "printf" to have the same behavior in dash or bash<br>
<br>
oe-core removed the prerequisite to have sh as bash. POSIX doesn't define<br>
any options and furthermore allows 'echo -e' to be the default behavior.<br>
This means that in dash 'echo -e' will actually print '-e' and interpret<br>
backslashes by default. We use instead 'printf' builtin command with or<br>
without '\n' to simulate 'echo -e' or 'echo -n'.<br>
'printf' needs format while 'echo' can be used without any arguments. So<br>
'echo >' was replaced by 'printf "" >'.<br>
'echo' without '-n' flag adds a new line by default so to keep the same<br>
behavior of two new lines while using 'echo "\n"', 'printf "\n\n"' is<br>
used.<br>
<br>
[YOCTO #3138]<br>
<br>
with very weak explanation why..<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Signed-off-by: Giuseppe Condorelli <<a href="mailto:giuseppe.condorelli@st.com">giuseppe.condorelli@st.com</a>><br>
> ---<br>
> meta/recipes-core/base-files/<a href="http://base-files_3.0.14.bb" target="_blank">base-files_3.0.14.bb</a> | 8 ++++----<br>
> 1 files changed, 4 insertions(+), 4 deletions(-)<br>
><br>
> diff --git a/meta/recipes-core/base-files/<a href="http://base-files_3.0.14.bb" target="_blank">base-files_3.0.14.bb</a> b/meta/recipes-core/base-files/<a href="http://base-files_3.0.14.bb" target="_blank">base-files_3.0.14.bb</a><br>
> index ba355ee..766b0e5 100644<br>
> --- a/meta/recipes-core/base-files/<a href="http://base-files_3.0.14.bb" target="_blank">base-files_3.0.14.bb</a><br>
> +++ b/meta/recipes-core/base-files/<a href="http://base-files_3.0.14.bb" target="_blank">base-files_3.0.14.bb</a><br>
> @@ -117,11 +117,11 @@ do_install_basefilesissue () {<br>
><br>
> install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir}<br>
> if [ -n "${DISTRO_NAME}" ]; then<br>
> - printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue<br>
> - printf "${DISTRO_NAME} " >> ${D}${sysconfdir}/<a href="http://issue.net" target="_blank">issue.net</a><br>
> + echo "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue<br>
> + echo "${DISTRO_NAME} " >> ${D}${sysconfdir}/<a href="http://issue.net" target="_blank">issue.net</a><br>
> if [ -n "${DISTRO_VERSION}" ]; then<br>
> - printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue<br>
> - printf "${DISTRO_VERSION} " >> ${D}${sysconfdir}/<a href="http://issue.net" target="_blank">issue.net</a><br>
> + echo "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue<br>
> + echo "${DISTRO_VERSION} " >> ${D}${sysconfdir}/<a href="http://issue.net" target="_blank">issue.net</a><br>
> fi<br>
> echo "\n \l" >> ${D}${sysconfdir}/issue<br>
> echo >> ${D}${sysconfdir}/issue<br>
> --<br>
> 1.7.4.4<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>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Martin 'JaMa' Jansa jabber: <a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a><br>
</font></span><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>
<br></blockquote></div><br>