Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416871 - sys-apps/portage- emerge instructions to break circular dependencies are incomplete due to FEATURES=test
Summary: sys-apps/portage- emerge instructions to break circular dependencie...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
: 455364 525632 (view as bug list)
Depends on:
Reported: 2012-05-21 08:20 UTC by Pacho Ramos
Modified: 2019-12-23 23:05 UTC (History)
4 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2012-05-21 08:20:50 UTC
I get the following:

# emerge -avuDN world

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

Calculating dependencies... done!

[nomerge       ] app-text/texlive-2011  USE="X dvipdfm extra graphics humanities music png pstricks publishers science tex4ht truetype xml -cjk -context -detex -doc -dvi2tty -games -jadetex -luatex -omega -pdfannotextractor -xetex -xindy" LINGUAS="es -af -ar -as -bg -bn -bo -ca -cs -cy -da -de -el -en -en_GB -eo -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -kn -ko -la -lo -lt -lv -ml -mn -mr -nb -nl -nn -no -or -pa -pl -pt -ro -ru -sa_IN -sk -sl -sr -sv -ta -te -th -tk -tr -uk -vi -zh" 
[nomerge       ]  dev-texlive/texlive-pictures-2011  USE="-doc -source" 
[nomerge       ]   dev-lang/ruby-1.9.3_p125 [1.8.7_p357] USE="berkdb gdbm ncurses rdoc readline ssl yaml -debug -doc -examples -ipv6 -rubytests -socks5 -tk -xemacs" 
[nomerge       ]     dev-ruby/rubygems-1.8.24 [1.3.7-r1] USE="test%* -server (-doc%)" RUBY_TARGETS="ruby18 ruby19%* -jruby -ree18" 
[nomerge       ]      virtual/ruby-rdoc-0  RUBY_TARGETS="(ruby18)" 
[nomerge       ]       dev-ruby/rdoc-3.12  USE="test -doc" RUBY_TARGETS="ruby18 ruby19 -jruby -ree18" 
[nomerge       ]        dev-ruby/hoe-2.12.5  USE="test -doc" RUBY_TARGETS="ruby18 ruby19 -jruby -ree18" 
[ebuild  N     ]         dev-ruby/rubyforge-2.0.4-r2  USE="test -doc" RUBY_TARGETS="ruby18 ruby19 -jruby -ree18" 15 kB
[ebuild  N     ]          dev-ruby/hoe-2.12.5  USE="test -doc" RUBY_TARGETS="ruby18 ruby19 -jruby -ree18" 120 kB
[ebuild     U  ]     dev-ruby/rubygems-1.8.24 [1.3.7-r1] USE="test%* -server (-doc%)" RUBY_TARGETS="ruby18 ruby19%* -jruby -ree18" 372 kB
[ebuild  N     ]      dev-ruby/minitest-2.8.1  USE="test -doc" RUBY_TARGETS="ruby18 ruby19 -jruby -ree18" 42 kB
[ebuild  N     ]      virtual/ruby-rdoc-0  RUBY_TARGETS="(ruby18)" 0 kB
[ebuild  N     ]      virtual/ruby-rdoc-1  RUBY_TARGETS="(ruby19)" 0 kB
[ebuild  N     ]       dev-ruby/rdoc-3.12  USE="test -doc" RUBY_TARGETS="ruby18 ruby19 -jruby -ree18" 309 kB
[ebuild  N     ]        dev-ruby/racc-1.4.6-r1  USE="test" RUBY_TARGETS="ruby18 ruby19 -jruby -ree18" 108 kB
[ebuild  N     ]        dev-ruby/json-1.5.4-r1  USE="test -doc" RUBY_TARGETS="ruby18 ruby19 -jruby -ree18" 663 kB
[ebuild     U  ]         dev-ruby/rake-0.8.7-r6 [0.8.7-r5] USE="bash-completion test -doc" RUBY_TARGETS="ruby18 ruby19%* -jruby -ree18" 101 kB
[ebuild  NS    ]          virtual/rubygems-4 [1] RUBY_TARGETS="(ruby19)" 0 kB
[blocks B      ]    <dev-ruby/rubygems-1.8.10-r1 ("<dev-ruby/rubygems-1.8.10-r1" is blocking dev-lang/ruby-1.9.3_p125)

Total: 11 packages (2 upgrades, 8 new, 1 in new slot), Size of downloads: 1,729 kB

 * Error: circular dependencies:

(dev-ruby/minitest-2.8.1::gentoo, ebuild scheduled for merge) depends on
 (dev-ruby/rdoc-3.12::gentoo, ebuild scheduled for merge) (buildtime)
  (dev-ruby/minitest-2.8.1::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying any of the following changes:
- dev-ruby/rdoc-3.12 (Change USE: -test)
- dev-ruby/minitest-2.8.1 (Change USE: -test)

Note that this change can be reverted, once the package has been installed.

Note that the dependency graph contains a lot of cycles.
Several changes might be required to resolve all cycles.
Temporarily changing some use flag for all packages might be the better option.

But looks like setting USE="-test" is no longer enough as the USE flag is forced if we have FEATURES="test", emerge should suggest to disable that feature too then


Reproducible: Always

Portage (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.6, glibc-2.14.1-r3, 3.3.4-gentoo x86_64)
System uname: Linux-3.3.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 21 May 2012 08:00:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo bumblebee x11 x-portage
CFLAGS="-O2 -pipe -march=native"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask-write"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms sign split-log strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="es es_ES en_US"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/portage/local/layman/bumblebee /usr/portage/local/layman/x11 /usr/local/portage"
USE="X a52 aac acl acpi alsa amd64 applet bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli colord consolekit cracklib crypt cups cvs cxx dbus djvu dri dts dvd dvdr dvi eds emboss enchant encode evo exif fam fat ffmpeg firefox flac fortran fuse gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle http iconv jpeg kpathsea latex lcms ldap libnotify libvisual lyx mad mms mmx mmxext mng modules mono monolithic-build mp3 mp4 mpeg mudflap multilib musicbrainz nautilus ncurses network-cron networkmanager nls nptl ntfs ntp numa nvidia ogg opengl openmp optimized-qmake pam pango pch pcre pdf png policykit ppds pppd pulseaudio qt3support readline reiserfs scanner sdl session smp sna socialweb spell sse sse2 sse3 ssl ssse3 startup-notification svg t1lib tcpd test theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vcd vdpau vorbis wifi wxwidgets x264 xcb xml xorg xulrunner xv xvid youtube zlib" ALSA_CARDS="hda-intel" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es es_ES en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nvidia vesa intel i915 i965" 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"
Comment 1 Zac Medico gentoo-dev 2013-03-22 21:01:04 UTC
*** Bug 455364 has been marked as a duplicate of this bug. ***
Comment 2 Zac Medico gentoo-dev 2014-10-17 08:35:54 UTC
*** Bug 525632 has been marked as a duplicate of this bug. ***