app-emulation/qemu: synchronize live ebuild
authorMatthias Maier <tamiko@gentoo.org>
Mon, 8 Apr 2019 01:48:29 +0000 (20:48 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Mon, 8 Apr 2019 02:29:41 +0000 (21:29 -0500)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
app-emulation/qemu/qemu-9999.ebuild

index 69e36290636d5768f3a13e060a9e2e1401871504..dbfe40f35758ea730c209126a16f463795c14d3a 100644 (file)
@@ -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