commit:     b86a3a0d6f91117377f3a339e61ff389eb3a25d1
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  8 01:48:29 2019 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Mon Apr  8 02:29:41 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b86a3a0d

app-emulation/qemu: synchronize live ebuild

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 app-emulation/qemu/qemu-9999.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app-emulation/qemu/qemu-9999.ebuild 
b/app-emulation/qemu/qemu-9999.ebuild
index 69e36290636..dbfe40f3575 100644
--- a/app-emulation/qemu/qemu-9999.ebuild
+++ b/app-emulation/qemu/qemu-9999.ebuild
@@ -641,9 +641,11 @@ generate_initd() {
                sparc*) qcpu="sparc";;
                esac
 
+               # we use 'printf' here to be portable across 'sh'
+               # implementations: #679168
                cat <<EOF >>"${out}"
        if [ "\${cpu}" != "${qcpu}" -a -x "${interpreter}" ] ; then
-               echo 
':${package}:M::${magic}:${mask}:${interpreter}:'"\${QEMU_BINFMT_FLAGS}" 
>/proc/sys/fs/binfmt_misc/register
+               printf '%s\n' 
':${package}:M::${magic}:${mask}:${interpreter}:'"\${QEMU_BINFMT_FLAGS}" 
>/proc/sys/fs/binfmt_misc/register
        fi
 EOF
 

Reply via email to