libvirt-0.83* fails to build when the use-flag parted is enabled and sys-apps/parted was built without device-mapper. As soon as I enabled device-mapper USE-flag and rebuild sys-apps/parted, libvirt build without and problems. So i suggest to update the dependency for parted as follows: parted? ( >=sys-apps/parted-1.8[device-mapper] ) The error I was experiencing looked like this: CCLD libvirt_driver_storage.la CCLD libvirt_driver_nodedev.la CCLD libvirt_test.la CCLD libvirt_parthelper CCLD libvirt.la libvirt_parthelper-parthelper.o: In function `main': parthelper.c:(.text+0x286): undefined reference to `dm_is_dm_major' collect2: ld returned 1 exit status make[3]: *** [libvirt_parthelper] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.8.3-r1/work/libvirt-0.8.3/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.8.3-r1/work/libvirt-0.8.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.8.3-r1/work/libvirt-0.8.3' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. disable device-mapper USE-flag of parted 2. rebuild parted 3. enable parted USE-flag of libvirt 4. rebuild libvirt Actual Results: Build failure Expected Results: Build success
Fixed in tree. Thanks for tracking it down.