From: Matthias Maier Date: Mon, 8 Apr 2019 01:48:29 +0000 (-0500) Subject: app-emulation/qemu: synchronize live ebuild X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b86a3a0d6f91117377f3a339e61ff389eb3a25d1;p=gentoo.git app-emulation/qemu: synchronize live ebuild Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Matthias Maier --- diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild index 69e36290636d..dbfe40f35758 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 <>"${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