Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 530226

Summary: app-emulation/libvirt-1.1.3.4 with dev-python/libvirt-python-1.2.10 - file collision in /usr/lib64/python2.7/site-packages/libvirt.py (...)
Product: Gentoo Linux Reporter: Juergen Rose <rose>
Component: Current packagesAssignee: Matthias Maier <tamiko>
Status: RESOLVED OBSOLETE    
Severity: normal CC: cardoe, virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Juergen Rose 2014-11-23 19:43:03 UTC
Libvirt is downgraded due to dependency of virt-manager-1.1.0 from 1.2.10 to 1.1.3.4.

root@caiman:/root(6)# emerge -pvuDNt world

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[nomerge       ] app-emulation/virt-manager-1.1.0  USE="gnome-keyring gtk policykit sasl -debug" PYTHON_TARGETS="python2_7" 
[ebuild     UD ]  app-emulation/libvirt-1.1.3.4::x-portage [1.2.10::gentoo] USE="caps fuse libvirtd macvtap nfs nls policykit python%* qemu sasl systemd udev vepa virt-network virtualbox -audit -avahi -firewalld -iscsi -lvm -lxc -numa -openvz -parted -pcap -phyp -rbd (-selinux) -uml -xen (-wireshark-plugins%)" PYTHON_TARGETS="python2_7%*" 0 KiB
[ebuild  rR    ] net-nds/openldap-2.4.40-r3  USE="berkdb crypt cxx gnutls icu ipv6 kerberos odbc perl samba sasl slp ssl syslog tcpd -debug -experimental -iodbc -minimal -overlays (-selinux) -smbkrb5passwd -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 2 packages (1 downgrade, 1 reinstall), Size of downloads: 0 KiB

...

The downgrade failes with file collision with libvirt-python-1.2.10:

...
>>> Installing (4 of 4) app-emulation/libvirt-1.1.3.4::x-portage
 * checking 245 files for package collisions
 * This package will overwrite one or more files that may belong to other
...
 * Detected file collision(s):
 * 
 *      /usr/lib64/python2.7/site-packages/libvirt_qemu.py
 *      /usr/lib64/python2.7/site-packages/libvirt_lxc.py
 *      /usr/lib64/python2.7/site-packages/libvirt.py
 *      /usr/lib64/python2.7/site-packages/libvirtmod.so
 *      /usr/lib64/python2.7/site-packages/libvirtmod_lxc.so
 *      /usr/lib64/python2.7/site-packages/libvirtmod_qemu.so
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-python/libvirt-python-1.2.10:0::gentoo
 *      /usr/lib64/python2.7/site-packages/libvirt.py
 *      /usr/lib64/python2.7/site-packages/libvirt_lxc.py
 *      /usr/lib64/python2.7/site-packages/libvirt_qemu.py
 *      /usr/lib64/python2.7/site-packages/libvirtmod.so
 *      /usr/lib64/python2.7/site-packages/libvirtmod_lxc.so
 *      /usr/lib64/python2.7/site-packages/libvirtmod_qemu.so
 * 
 * Package 'app-emulation/libvirt-1.1.3.4' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.

>>> Failed to install app-emulation/libvirt-1.1.3.4, Log file:
Comment 1 Matthias Maier gentoo-dev 2014-11-24 10:30:30 UTC
libvirt-1.1.3.4 was removed from the tree due to outstanding security issues, please also remove it from your local overlay "x-portage".

The file collision has to be expected because the python bindings were refactored into libvirt-python. I do not understand why portage tries to downgrade libvirt in your case (judging from the dependencies it shouldn't).

Nevertheless, I've updated the dependencies of virt-manager, to reflect the change:

  24 Nov 2014; Matthias Maier <tamiko@gentoo.org>
  -virt-manager-0.10.0-r1.ebuild, -virt-manager-0.10.0.ebuild,
  virt-manager-0.10.0-r2.ebuild, virt-manager-1.0.1.ebuild,
  virt-manager-1.1.0.ebuild, virt-manager-9999.ebuild:
  drop old; clean up dependency (bug #530226)

Please sync and try again. Also check /etc/portage/package.mask and /etc/portage/package.{accept_|}keywords for any stale masks.