The patch needs this patch: s/-D_FORTIFY_SOURCE/-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE/ With that, it succeeds and the emerge continues on to compilation. (Which I expect also will succeed.)
That patch to the patch is enough to get compile to finish, but it still fails in install. The QMP directory is gone as of commit 212774c5a50. Even with -python the install fails in dodoc, due to the portage bug whereby missing dodoc files kill the whole merge.
Hit save too soon.... For the docs, commit 7537fe0487 moved: QMP: QMP/ -> docs/qmp/
Can confirm that bug
I have reproduced this bug on my development system. I am marking it as confirmed. I can confirm that the fix proposed by James Cloos allows us to get pass src_prepare(), but src_install() fails on the latest head with the following: mv: cannot move ‘/var/tmp/portage/app-emulation/qemu-9999/image//usr/share/doc/qemu-9999/html/qmp-commands.txt’ to ‘/var/tmp/portage/app-emulation/qemu-9999/work/qemu-9999/QMP/’: Not a directory /usr/bin/install: cannot stat ‘QMP/qmp-commands.txt’: No such file or directory !!! dodoc: QMP/qmp-commands.txt does not exist /usr/bin/install: cannot stat ‘QMP/qmp-events.txt’: No such file or directory !!! dodoc: QMP/qmp-events.txt does not exist /usr/bin/install: cannot stat ‘QMP/qmp-spec.txt’: No such file or directory !!! dodoc: QMP/qmp-spec.txt does not exist
http://sources.gentoo.org/app-emulation/qemu/qemu-9999.ebuild?r1=1.60&r2=1.61