Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357065 - sys-apps/portage: --depclean shouldn't stop after a broken dependency.
Summary: sys-apps/portage: --depclean shouldn't stop after a broken dependency.
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 07:50 UTC by dE
Modified: 2011-03-02 16:11 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 dE 2011-03-02 07:50:32 UTC
For e.g - 

Calculating dependencies                 ... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 * 
 *   ~net-libs/xulrunner-9999[libnotify,-mozdom,-raw,-system-sqlite,webm,-wifi] pulled in by:
 *     www-client/firefox-9999
 * 

Basically portage is asking a rebuild of xulrunner and firefox after it realized that USE of xulrunner and firefox is not upto the mark. Then it just stopped calculating anything else, this shouldn't happen.

This should not be the behavior (with the --keep-going switch?); instead it should continue calculating other orphan installed packages and remove what it can without breaking dependencies.

Reproducible: Always

Steps to Reproduce:
Comment 1 dE 2011-03-02 07:51:01 UTC
Oh yes -- 

Portage 2.2.0_alpha24 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.11.2-r3, 2.6.37.2 x86_64)
=================================================================
System uname: Linux-2.6.37.2-x86_64-AMD_Athlon-tm-_64_X2_Dual-Core_Processor_TK-55-with-gentoo-2.0.1
Timestamp of tree: Tue, 15 Feb 2011 04:30:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo sunrise proaudio mozilla x11 sardemff7 x-dev-tree
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=n --binpkg-respect-use=y --complete-graph"
FEATURES="assume-digests binpkg-logs candy distlocks fail-clean fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/mozilla /var/lib/layman/x11 /var/lib/layman/sardemff7 /home/de/dev-tree"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 a53 aac aalib acc acpi adns alsa amd64 amr atm audiofile branding bzip2 cdr cli consolekit cracklib css cups custom-cflags custom-optimization dbus dbx dga dirac dri dts dv dvd dvdr enscript exif ffmpeg firefox flac fortran gdu gif glut gmp gsm gstreamer gzip icu imlib ipc jpeg jpeg2k kde ladspa lame lcms libedit libnotify libsamplerate libwww lzma lzo mad matroska matrox mikmod mime minimal mmap mmx mng mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack networkmanager nntp nocd nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp optimization osc pam pango pch pdf plasma png policykit posix pppd qt3support qt4 quicktime raw readline schroedinger sharedmem shorten smp sndfile sockets socks5 speex spell sse sse2 startup-notification strong-optimization svg symlink sysfs taglib tcpd theora threads tiff truetype udev unicode usb vcd vhosts vorbis wavpack win32codecs wmf x264 xcb xine xinerama xml xorg xpm xv xvid" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r300 r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Sebastian Luther (few) 2011-03-02 09:06:58 UTC
(In reply to comment #0)
> This should not be the behavior (with the --keep-going switch?); instead it
> should continue calculating other orphan installed packages and remove what it
> can without breaking dependencies.

The problem is that if some dependecy cannot be resolved, the depgraph is broken. This leaves the possibility for some packages to be missing from the calculated depgraph, which otherwise would be included. It would be very hard to output a "correct" solution (what ever that is in this case) and the risk to remove a needed package is way to high. We need depclean to be a safe operation.
In short: No, the current behavior is the only sane one.
Comment 3 Zac Medico gentoo-dev 2011-03-02 16:11:19 UTC
It may be possible to create an approximate solution by completing the dependency graph using unbuilt ebuilds, but this approach may be error-prone and difficult to maintain.