The pyobject-2.12.1 ebuild fails due to collision-protect errors. Collisions are with the following files from pygtk-2.8.6 /usr/lib/pkgconfig/pygobject-2.0.pc /usr/include/pygtk-2.0/pygobject.h /usr/lib/python2.4/site-packages/pygtk.pth-2.0 /usr/lib/python2.4/site-packages/pygtk.py-2.0 /usr/lib/python2.4/site-packages/gtk-2.0/dsextras.py Summary of discussion of this issue with leio on #gentoo-desktop: 1) This problem occurs because pygobject is now split off from the pygtk ebuild 2) I do not know if this is possible or correct, but we could addwrite these files in preinst and just delete them 3) Is there a mechanism to ignore/disable collision protect for this ebuild? 4) pygobject-2.12 could just block pygtk-2.8
Now on a non-brief look it appears that it is already blocking <pygtk-2.9 since the start (ignoring a brief time in earlier pygobject series [2.10]). I wonder what was the problem there for you. Didn't portage see that blocker for some reason? Please reopen on comment if it indicates a possible problem remaining.
Reopening, there's no block and just hit this. * checking 44 files for package collisions existing file /usr/lib/pkgconfig/pygobject-2.0.pc is not owned by this package existing file /usr/include/pygtk-2.0/pygobject.h is not owned by this package existing file /usr/lib/python2.4/site-packages/pygtk.pth-2.0 is not owned by this package existing file /usr/lib/python2.4/site-packages/pygtk.py-2.0 is not owned by this package existing file /usr/lib/python2.4/site-packages/gtk-2.0/dsextras.py is not owned by this package * spent 0.0229499340057 seconds checking for file collisions * This package is blocked because it wants to overwrite * files belonging to other packages (see messages above). * If you have no clue what this is all about report it * as a bug for this package on http://bugs.gentoo.org package dev-python/pygobject-2.12.2 NOT merged $ equery b /usr/lib/pkgconfig/pygobject-2.0.pc /usr/lib/python2.4/site-packages/pygtk.pth-2.0 /usr/lib/python2.4/site-packages/pygtk.py-2.0 /usr/lib/python2.4/site-packages/gtk-2.0/dsextras.py [ Searching for file(s) /usr/lib/pkgconfig/pygobject-2.0.pc,/usr/lib/python2.4/site-packages/pygtk.pth-2.0,/usr/lib/python2.4/site-packages/pygtk.py-2.0,/usr/lib/python2.4/site-packages/gtk-2.0/dsextras.py in *... ] dev-python/pygtk-2.8.6 (/usr/lib/python2.4/site-packages/pygtk.pth-2.0) dev-python/pygtk-2.8.6 (/usr/lib/python2.4/site-packages/gtk-2.0/dsextras.py) dev-python/pygtk-2.8.6 (/usr/lib/pkgconfig/pygobject-2.0.pc) dev-python/pygtk-2.8.6 (/usr/lib/python2.4/site-packages/pygtk.py-2.0)
Portage gets this wrong and updates the packages in wrong order, so the block is effectively ignored.
# emerge -uDpv world These are the packages that would be merged, in order: Calculating world dependencies... done! [ebuild N ] dev-python/pygobject-2.12.2 USE="-debug -doc" 0 kB [ebuild U ] x11-libs/libwnck-2.16.1 [2.14.2] USE="-debug -doc" 0 kB [ebuild U ] x11-themes/gtk-engines-2.8.1 [2.6.10] USE="-accessibility -debug -static%" 0 kB [ebuild U ] x11-themes/gnome-themes-2.16.1.1 [2.14.2] USE="-accessibility -debug" 0 kB [ebuild U ] dev-python/pygtk-2.10.3 [2.8.6] USE="-doc opengl" 0 kB [ebuild U ] net-misc/openssh-4.4_p1-r4 [4.4_p1-r3] USE="X X509 chroot -hpn -kerberos -ldap -libedit pam (-selinux) skey -smartcard -static tcpd" 0 kB [ebuild U ] app-office/openoffice-bin-2.0.4 [2.0.4_rc3] USE="-gnome java kde" LINGUAS="-af -as_IN -be_BY -bg -bs -ca cs -cy -da -de -el en -en_GB -en_ZA -es -et -fa -fi -fr -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -lt -mk -ml_IN -mr_IN -nb -nl -nn -nr -ns -or_IN -pa_IN -pl -pt_BR -ru -rw -sh_YU -sk -sl -sr_CS -st -sv -sw_TZ -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB [ebuild U ] x11-libs/vte-0.14.1 [0.12.2] USE="-debug -doc opengl python" 0 kB [ebuild U ] gnome-base/gnome-vfs-2.16.1 [2.14.2-r1] USE="-avahi -debug -doc -gnutls -hal ipv6 samba ssl" 0 kB [ebuild U ] gnome-base/libgnome-2.16.0 [2.14.1] USE="-debug -doc -esd -static" 0 kB [ebuild U ] gnome-base/libbonoboui-2.16.0 [2.14.0] USE="X -debug -doc" 0 kB [ebuild U ] gnome-base/libgnomeui-2.16.1 [2.14.1] USE="-debug -doc jpeg" 0 kB [ebuild U ] gnome-extra/gconf-editor-2.16.0 [2.14.0] USE="-debug" 0 kB [ebuild U ] x11-themes/gnome-icon-theme-2.16.0.1 [2.14.2] USE="-debug" 0 kB
Created attachment 99639 [details] emerge -uDdpv world debugging output
# emerge -C pygtk; emerge -uDav world Hmmm... :/ These are the packages that would be merged, in order: Calculating world dependencies... done! [ebuild N ] dev-python/pygobject-2.12.2 USE="-debug -doc" 0 kB [ebuild U ] x11-libs/libwnck-2.16.1 [2.14.2] USE="-debug -doc" 0 kB [ebuild U ] x11-themes/gtk-engines-2.8.1 [2.6.10] USE="-accessibility -debug -static%" 0 kB [ebuild U ] x11-themes/gnome-themes-2.16.1.1 [2.14.2] USE="-accessibility -debug" 0 kB [ebuild N ] dev-python/pygtk-2.10.3 USE="-doc opengl" 0 kB [ebuild U ] net-misc/openssh-4.4_p1-r4 [4.4_p1-r3] USE="X X509 chroot -hpn -kerberos -ldap -libedit pam (-selinux) skey -smartcard -static tcpd" 0 kB [ebuild U ] app-office/openoffice-bin-2.0.4 [2.0.4_rc3] USE="-gnome java kde" LINGUAS="-af -as_IN -be_BY -bg -bs -ca cs -cy -da -de -el en -en_GB -en_ZA -es -et -fa -fi -fr -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -lt -mk -ml_IN -mr_IN -nb -nl -nn -nr -ns -or_IN -pa_IN -pl -pt_BR -ru -rw -sh_YU -sk -sl -sr_CS -st -sv -sw_TZ -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB [ebuild U ] x11-libs/vte-0.14.1 [0.12.2] USE="-debug -doc opengl python" 0 kB [ebuild U ] gnome-base/gnome-vfs-2.16.1 [2.14.2-r1] USE="-avahi -debug -doc -gnutls -hal ipv6 samba ssl" 0 kB [ebuild U ] gnome-base/libgnome-2.16.0 [2.14.1] USE="-debug -doc -esd -static" 0 kB [ebuild U ] gnome-base/libbonoboui-2.16.0 [2.14.0] USE="X -debug -doc" 0 kB [ebuild U ] gnome-base/libgnomeui-2.16.1 [2.14.1] USE="-debug -doc jpeg" 0 kB [ebuild U ] gnome-extra/gconf-editor-2.16.0 [2.14.0] USE="-debug" 0 kB [ebuild U ] x11-themes/gnome-icon-theme-2.16.0.1 [2.14.2] USE="-debug" 0 kB [ebuild U ] kde-base/kdelibs-3.5.5 [3.5.4-r2] USE="acl alsa -arts cups -debug -doc -fam jpeg2k kdeenablefinal kdehiddenvisibility -kerberos -legacyssl -lua -noutempter -openexr spell ssl tiff xinerama -zeroconf" 0 kB [ebuild U ] kde-base/khexedit-3.5.5 [3.5.4] USE="-arts -debug kdeenablefinal kdehiddenvisibility xinerama" 0 kB [ebuild U ] kde-base/kget-3.5.5 [3.5.4] USE="-arts -debug kdeenablefinal kdehiddenvisibility xinerama" 0 kB [ebuild U ] media-video/gxine-0.5.8 [0.5.7] USE="lirc nls nsplugin xinerama" 0 kB
This is actually a continuation of bug 79606. In cases like this, where dev-python/pygobject-2.12.2 blocks !<dev-python/pygtk-2.9, the blocker needs to be converted into a hard dependency on >dev-python/pygtk-2.9 for the merge order calculation.
This is fixed in svn r4698. Unfortunately, the user will be required to manually unmerge the lower version of pygtk: [blocks B ] <dev-python/pygtk-2.9 (is blocking dev-python/pygobject-2.12.2) [ebuild U ] dev-libs/glib-2.12.4 [2.10.3] USE="-debug -doc -hardened" 2,801 kB [ebuild U ] x11-libs/gtk+-2.10.6 [2.8.20-r1] USE="X jpeg tiff xinerama -debug -doc" 14,219 kB [ebuild U ] dev-python/pygtk-2.10.3 [2.8.6] USE="doc opengl" 1,931 kB [ebuild N ] dev-python/pygobject-2.12.2 USE="-debug -doc" 329 kB Emerge can't upgrade pygtk first because the new version of pygtk depends on pygobject. If that dependency didn't exist, emerge would be able to navigate around the block automatically (without a collision).
This has been released in 2.1.2_pre3-r2.
Hi! Should this fix be already incorporated to the pygobject-2.12.2.ebuild? My recently (yesterday) synced version still has this bug.
(In reply to comment #10) It wasn't a bug in pygobject-2.12.2. That package isn't supposed to be installed at the same time as <pygtk-2.9. You need to manually unmerge <pygtk-2.9 before the new version can be installed (along with pygobject).