Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332971 - app-emulation/libvirt-0.8.3 needs updated dependency for USE-flag parted
Summary: app-emulation/libvirt-0.8.3 needs updated dependency for USE-flag parted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 10:02 UTC by Gen2
Modified: 2010-08-18 15:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gen2 2010-08-16 10:02:31 UTC
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
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2010-08-18 15:38:56 UTC
Fixed in tree. Thanks for tracking it down.