Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263630 - enhancement proposal for --keep-going with blockers in the depgraph after a failure.
Summary: enhancement proposal for --keep-going with blockers in the depgraph after a f...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 518704 (view as bug list)
Depends on:
Blocks: 285936 300071 373807
  Show dependency tree
 
Reported: 2009-03-24 17:01 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2020-09-22 02:22 UTC (History)
5 users (show)

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 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-24 17:01:51 UTC
As discussed in irc, zmedico says that this case will not be hard to recognize and fix. So, here is the portage output:

:

Calculating dependencies... done!
[ebuild     U ] x11-libs/qt-dbus-4.5.0 [4.5.0_rc1] USE="(-aqua) -custom-cxxflags -debug -pch" 0 kB
[ebuild     U ] x11-libs/qt-sql-4.5.0 [4.5.0_rc1] USE="iconv qt3support sqlite (-aqua) -custom-cxxflags -debug (-firebird) -mysql -odbc -pch -postgres" 0 kB
[ebuild     U ] x11-libs/qt-xmlpatterns-4.5.0 [4.5.0_rc1] USE="(-aqua) -custom-cxxflags -debug -pch" 0 kB
[ebuild     U ] x11-libs/qt-gui-4.5.0 [4.5.0_rc1-r1] USE="accessibility dbus glib gtkstyle qt3support tiff (-aqua) (-cups) -custom-cxxflags -debug -mng -nas -nis -pch -raster -xinerama" 0 kB
[ebuild     U ] x11-libs/qt-qt3support-4.5.0 [4.5.0_rc1] USE="accessibility (-aqua) -custom-cxxflags -debug -pch -phonon" 0 kB
[ebuild     U ] xfce-base/xfce-utils-4.6.0 [4.4.3] USE="lock -dbus -debug" 0 kB
[ebuild     U ] gnome-base/libgnomeui-2.24.1 [2.24.0] USE="-doc (-debug%)" 0 kB
[ebuild     U ] xfce-base/xfce4-session-4.6.0 [4.4.3] USE="-debug -gnome (-dbus%)" 0 kB
[ebuild     U ] app-crypt/gnupg-2.0.11 [2.0.10] USE="bzip2 nls -caps -doc -ldap -openct -pcsc-lite (-selinux) -smartcard -static" 0 kB
[ebuild     U ] gnome-extra/evolution-data-server-2.24.5-r2 [2.24.5] USE="ssl -debug -doc -gnome-keyring -ipv6 -kerberos -krb4 -ldap" 0 kB
[ebuild     U ] dev-util/git-1.6.2 [1.6.1.3] USE="bash-completion curl iconv perl subversion -cgi -cvs -doc -emacs -gtk -mozsha1 (-ppcsha1) -threads -tk -webdav -xinetd (-vim-syntax%)" 0 kB
[ebuild  N    ] xfce-base/xfce4-settings-4.6.0  USE="keyboard -debug -libnotify -sound" 0 kB
[uninstall    ] xfce-base/xfce-mcs-plugins-4.4.3  USE="-debug"
[blocks b     ] xfce-base/xfce-mcs-plugins ("xfce-base/xfce-mcs-plugins" is blocking xfce-base/xfce4-settings-4.6.0)
[uninstall    ] xfce-base/xfce-mcs-manager-4.4.3  USE="-debug"
[blocks b     ] xfce-base/xfce-mcs-manager ("xfce-base/xfce-mcs-manager" is blocking xfce-base/xfce4-settings-4.6.0)
[ebuild     U ] xfce-base/xfce4-4.6.0 [4.4.3] USE="xscreensaver -alsa (-cups) -minimal -oss" 0 kB

<something fails>

>>> Failed to emerge xfce-base/xfce-utils-4.6.0, Log file:
>>>  '/public/tmp/linux-64/portage/xfce-base/xfce-utils-4.6.0/temp/build.log'

new depgraph:

[ebuild  N    ] xfce-base/xfce4-settings-4.6.0  USE="keyboard -debug -libnotify -sound" 0 kB
[ebuild     U ] x11-libs/qt-gui-4.5.0 [4.5.0_rc1-r1] USE="accessibility dbus glib gtkstyle qt3support tiff (-aqua) (-cups) -custom-cxxflags -debug -mng -nas -nis -pch -raster -xinerama" 0 kB
[ebuild     U ] x11-libs/qt-sql-4.5.0 [4.5.0_rc1] USE="iconv qt3support sqlite (-aqua) -custom-cxxflags -debug (-firebird) -mysql -odbc -pch -postgres" 0 kB
[ebuild     U ] x11-libs/qt-xmlpatterns-4.5.0 [4.5.0_rc1] USE="(-aqua) -custom-cxxflags -debug -pch" 0 kB
[ebuild     U ] x11-libs/qt-qt3support-4.5.0 [4.5.0_rc1] USE="accessibility (-aqua) -custom-cxxflags -debug -pch -phonon" 0 kB
[ebuild     U ] gnome-base/libgnomeui-2.24.1 [2.24.0] USE="-doc (-debug%)" 0 kB
[ebuild     U ] app-crypt/gnupg-2.0.11 [2.0.10] USE="bzip2 nls -caps -doc -ldap -openct -pcsc-lite (-selinux) -smartcard -static" 0 kB
[ebuild     U ] gnome-extra/evolution-data-server-2.24.5-r2 [2.24.5] USE="ssl -debug -doc -gnome-keyring -ipv6 -kerberos -krb4 -ldap" 0 kB
[ebuild     U ] dev-util/git-1.6.2 [1.6.1.3] USE="bash-completion curl iconv perl subversion -cgi -cvs -doc -emacs -gtk -mozsha1 (-ppcsha1) -threads -tk -webdav -xinetd (-vim-syntax%)" 0 kB
[blocks B     ] xfce-base/xfce-mcs-plugins ("xfce-base/xfce-mcs-plugins" is blocking xfce-base/xfce4-settings-4.6.0)
[blocks B     ] xfce-base/xfce-mcs-manager ("xfce-base/xfce-mcs-manager" is blocking xfce-base/xfce4-settings-4.6.0)

<emerge quits because of hard blockers>

restart emerge process:

[ebuild     U ] x11-libs/qt-gui-4.5.0 [4.5.0_rc1-r1] USE="accessibility dbus glib gtkstyle qt3support tiff (-aqua) (-cups) -custom-cxxflags -debug -mng -nas -nis -pch -raster -xinerama" 0 kB
[ebuild     U ] x11-libs/qt-sql-4.5.0 [4.5.0_rc1] USE="iconv qt3support sqlite (-aqua) -custom-cxxflags -debug (-firebird) -mysql -odbc -pch -postgres" 0 kB
[ebuild     U ] x11-libs/qt-xmlpatterns-4.5.0 [4.5.0_rc1] USE="(-aqua) -custom-cxxflags -debug -pch" 0 kB
[ebuild     U ] x11-libs/qt-qt3support-4.5.0 [4.5.0_rc1] USE="accessibility (-aqua) -custom-cxxflags -debug -pch -phonon" 0 kB
[ebuild     U ] xfce-base/xfce-utils-4.6.0 [4.4.3] USE="lock -dbus -debug" 0 kB
[ebuild     U ] gnome-base/libgnomeui-2.24.1 [2.24.0] USE="-doc (-debug%)" 0 kB
[ebuild     U ] xfce-base/xfce4-session-4.6.0 [4.4.3] USE="-debug -gnome (-dbus%)" 0 kB
[ebuild     U ] media-gfx/gthumb-2.10.11 [2.10.10] USE="gphoto2* tiff -debug -iptc -raw -test" 0 kB
[ebuild     U ] app-crypt/gnupg-2.0.11 [2.0.10] USE="bzip2 nls -caps -doc -ldap -openct -pcsc-lite (-selinux) -smartcard -static" 0 kB
[ebuild     U ] gnome-extra/evolution-data-server-2.24.5-r2 [2.24.5] USE="ssl -debug -doc -gnome-keyring -ipv6 -kerberos -krb4 -ldap" 0 kB
[ebuild     U ] dev-util/git-1.6.2 [1.6.1.3] USE="bash-completion curl iconv perl subversion -cgi -cvs -doc -emacs -gtk -mozsha1 (-ppcsha1) -threads -tk -webdav -xinetd (-vim-syntax%)" 0 kB
[ebuild  N    ] xfce-base/xfce4-settings-4.6.0  USE="keyboard -debug -libnotify -sound" 0 kB
[uninstall    ] xfce-base/xfce-mcs-plugins-4.4.3  USE="-debug" 
[blocks b     ] xfce-base/xfce-mcs-plugins ("xfce-base/xfce-mcs-plugins" is blocking xfce-base/xfce4-settings-4.6.0)
[uninstall    ] xfce-base/xfce-mcs-manager-4.4.3  USE="-debug" 
[blocks b     ] xfce-base/xfce-mcs-manager ("xfce-base/xfce-mcs-manager" is blocking xfce-base/xfce4-settings-4.6.0)
[ebuild     U ] xfce-base/xfce4-4.6.0 [4.4.3] USE="xscreensaver -alsa (-cups) -minimal -oss" 0 kB

So, the problem is obvious. Since xfce4-settings-4.6.0 fails to merge, then xfce-mcs-plugins-4.4.3 isn't unmerged anymore. But shouldn't the depgraph just be pruned off and the other stuff (qt*, git, etc) be compliled still?
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-25 15:22:30 UTC
In a similar fashion --keep-going, does not keep going if the failure results in a broken depgraph. Here it would be nice to prune off that part of the graph too.

As solar said, This is what I would expect to happen:
10:07 < solar> more like remove the leaf of deps that caused the failure.

Instead we get an exit condition and this output:

 * One or more packages are either masked or have missing dependencies:
 * 
 *   ~x11-libs/qt-gui-4.5.0[qt3support] pulled in by:
 *     ('installed', '/', 'x11-libs/qt-core-4.5.0', 'nomerge')
 * 
 * The resume list contains packages that are either masked or have
 * unsatisfied dependencies. Please restart/continue the operation
 * manually, or use --skipfirst to skip the first package in the list and
 * any other packages that may be masked or have missing dependencies.
 * 
 * The following package has failed to build or install:
 * 
 *      ('ebuild', '/', 'x11-libs/qt-gui-4.5.0', 'merge')
Comment 2 Zac Medico gentoo-dev 2009-03-25 17:00:27 UTC
(In reply to comment #1)
> Instead we get an exit condition and this output:
> 
>  * One or more packages are either masked or have missing dependencies:
>  * 
>  *   ~x11-libs/qt-gui-4.5.0[qt3support] pulled in by:
>  *     ('installed', '/', 'x11-libs/qt-core-4.5.0', 'nomerge')

This is a separate issue from the blockers thing. There's already some code that's supposed to prune off the broken part of the depgraph, so I need to figure out why it didn't work in this case.
Comment 3 Zac Medico gentoo-dev 2009-03-25 17:30:59 UTC
The issue from comment #1 seems seems to have been triggered by those the solved blockers in your merge list:

[ebuild     U ] x11-libs/qt-gui-4.5.0 [4.5.0_rc1-r1] USE="accessibility dbus glib gtkstyle qt3support tiff (-aqua) (-cups) -custom-cxxflags -debug -mng -nas -nis -pch -raster -xinerama" 0 kB
[ebuild     U ] x11-libs/qt-sql-4.5.0 [4.5.0_rc1] USE="iconv qt3support sqlite (-aqua) -custom-cxxflags -debug (-firebird) -mysql -odbc -pch -postgres" 0 kB
[ebuild     U ] x11-libs/qt-xmlpatterns-4.5.0 [4.5.0_rc1] USE="(-aqua) -custom-cxxflags -debug -pch" 0 kB
[ebuild     U ] x11-libs/qt-qt3support-4.5.0 [4.5.0_rc1] USE="accessibility (-aqua) -custom-cxxflags -debug -pch -phonon" 0 kB
[ebuild     U ] xfce-base/xfce4-session-4.6.0 [4.4.3] USE="-debug -gnome (-dbus%)" 0 kB
[ebuild     U ] media-gfx/gthumb-2.10.11 [2.10.10] USE="gphoto2* tiff -debug -iptc -raw -test" 0 kB
[ebuild     U ] app-crypt/gnupg-2.0.11 [2.0.10] USE="bzip2 nls -caps -doc -ldap -openct -pcsc-lite (-selinux) -smartcard -static" 0 kB
[ebuild     U ] gnome-extra/evolution-data-server-2.24.5-r2 [2.24.5] USE="ssl -debug -doc -gnome-keyring -ipv6 -kerberos -krb4 -ldap" 0 kB
[ebuild     U ] dev-util/git-1.6.2 [1.6.1.3] USE="bash-completion curl iconv perl subversion -cgi -cvs -doc -emacs -gtk -mozsha1 (-ppcsha1) -threads -tk -webdav -xinetd (-vim-syntax%)" 0 kB
[ebuild  N    ] xfce-base/xfce4-settings-4.6.0  USE="keyboard -debug -libnotify -sound" 0 kB
[uninstall    ] xfce-base/xfce-mcs-plugins-4.4.3  USE="-debug"
[blocks b     ] xfce-base/xfce-mcs-plugins ("xfce-base/xfce-mcs-plugins" is blocking xfce-base/xfce4-settings-4.6.0)
[uninstall    ] xfce-base/xfce-mcs-manager-4.4.3  USE="-debug"
[blocks b     ] xfce-base/xfce-mcs-manager ("xfce-base/xfce-mcs-manager" is blocking xfce-base/xfce4-settings-4.6.0)
[ebuild     U ] xfce-base/xfce4-4.6.0 [4.4.3] USE="xscreensaver -alsa (-cups) -minimal -oss" 0 kB

It doesn't properly prune off installed packages with broken deps in this case. The installed packages get pulled into the graph when it's checking reverse deps to make sure that it doesn't uninstall anything that's needed.
Comment 4 Dennis Schridde 2011-06-19 09:24:57 UTC
Possible duplicates: bug #263630, bug #312467, bug #312789, bug #340287, bug #342713, bug #362355
Comment 5 Dennis Schridde 2011-07-02 10:15:18 UTC
Please have a look at the possible duplicates bug #263630, bug #312467, bug #312789, bug #340287, bug #342713, bug #362355, and then raise the priority of the appropriate bugs. This issue is really annoying me by now, because it prevents a proper update of @world since months.
Comment 6 Zac Medico gentoo-dev 2014-09-20 23:37:00 UTC
*** Bug 518704 has been marked as a duplicate of this bug. ***