In fact, it's qemu-1.2.0-cflags.patch which fails to apply since the 'configure' file it is patching has changed. Well, in the git, not the release. So we need something like this: --- a/qemu-9999.ebuild 2013-01-10 13:56:35.491114288 +0100 +++ b/qemu-9999.ebuild 2013-01-10 13:56:39.631205019 +0100 @@ -189,7 +189,7 @@ python_convert_shebangs -r 2 "${S}/scripts/kvm/kvm_stat" - epatch "${FILESDIR}"/qemu-1.2.0-cflags.patch + epatch "${FILESDIR}"/qemu-9999-cflags.patch [[ -n ${BACKPORTS} ]] && \ EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ epatch and add the qemu-9999-cflags.patch file into 'files' dir: diff --git a/configure b/configure index 82f6e71..7e19aaf 100755 --- a/configure +++ b/configure @@ -3131,8 +3131,6 @@ fi if test "$gcov" = "yes" ; then CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS" LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS" -elif test "$debug" = "no" ; then - CFLAGS="-O2 -D_FORTIFY_SOURCE=2 $CFLAGS" fi Then we will build successfully.
Created attachment 335068 [details] qemu-9999.ebuild.patch Patch attached so it can be downloaded.
Created attachment 335070 [details] qemu-9999-cflags.patch Patch attached so it can be downloaded.
Pushed to the tree: > 10 Jan 2013; Sergei Trofimovich <slyfox@gentoo.org> > +files/qemu-9999-cflags.patch, qemu-9999.ebuild: > Refresh cflags patch by Michal Privoznik and by Tom Wijsman (bug #451178). Thanks guys!