Curiously, this patch 0004-build-fix-build-with-latest-rawhide-kernel-headers.patch only applies its magic fix if qemu or lxc are "selected" (in USE, or equivalently, --with-).
Can you please attach the complete build log and comment with the output of `emerge --info =app-emulation/libvirt-1.1.2-r3`? Thank you in advance.
Created attachment 360570 [details, diff] Quick fix The attached patch allows the 0004-.. fix to work even with USE="-qemu -lxc". As an interim solution, copy the patch to /etc/portage/patches/app-emulation/libvirt-1.1.2-r3 and the 'epatch_user' command in the ebuild will automagically apply it.
Give libvirt-1.1.3 in tree a whirl.
libvirt-1.1.3 builds fine
*** Bug 487654 has been marked as a duplicate of this bug. ***
(In reply to Doug Goldstein from comment #3) > Give libvirt-1.1.3 in tree a whirl. For me, libvirt-1.1.3 still fails without the patch.
> For me, libvirt-1.1.3 still fails without the patch. You are absolutely right. I put my user patch in the unversioned /etc/portage/patches/app-emulation/libvirt directory; so, it got applied even on the 1.1.3 build. (Without the patch libvirt-1.1.3 _does_ fail!) Sorry for misreporting..
*** Bug 488502 has been marked as a duplicate of this bug. ***
Seems to be fixed with =app-emulation/libvirt-1.1.4
(In reply to Johannes Hirte from comment #9) > Seems to be fixed with =app-emulation/libvirt-1.1.4 Confirmed.
Sorry been very busy. I merged the patch into upstream and never had a chance to make an updated ebuild before 1.1.4 came out so the problem is now solved. Sorry for the lack of communication.