I add the USE flag "doc" , when I emerge -uvND world, portage told me to add the "jadetex" and "tk" into my USE, and I did. then, the circular dependence occured. Reproducible: Always Steps to Reproduce: 1 add "doc jadetex tk" in USE of the /etc/make.conf. 2 emerge -uvND world. 3. Actual Results: emerge -uvND world These are the packages that would be merged, in order: Calculating dependencies... done! [nomerge ] dev-util/wxglade-0.6.3 [nomerge ] dev-python/wxpython-2.8.10.1 USE="cairo doc* opengl -examples" [nomerge ] dev-python/pycairo-1.8.8 USE="doc* svg -examples" [nomerge ] dev-python/sphinx-0.6.7 USE="doc latex -test" [ebuild N ] dev-python/jinja-2.5 USE="doc i18n -examples -test" 675 kB [ebuild N ] dev-python/sphinx-0.6.7 USE="doc latex -test" 952 kB Total: 2 packages (2 new), Size of downloads: 1,627 kB * Error: circular dependencies: ('ebuild', '/', 'dev-python/jinja-2.5', 'merge') depends on ('ebuild', '/', 'dev-python/sphinx-0.6.7', 'merge') (buildtime) ('ebuild', '/', 'dev-python/sphinx-0.6.7', 'merge') depends on ('ebuild', '/', 'dev-python/jinja-2.5', 'merge') (buildtime) * Note that circular dependencies can often be avoided by temporarily * disabling USE flags that trigger optional dependencies. emerge --info Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.34-gentoo-r1-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-1.12.13 Timestamp of tree: Mon, 26 Jul 2010 22:30:14 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.11 dev-lang/python: 2.4.6, 2.6.5-r2, 3.1.2-r3 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula AdobeFlash-10.1 googleearth" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -mabm -msse4a -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -mabm -msse4a -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="zh_CN.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="zh_CN zh_TW en_US" MAKEOPTS="-j6" 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="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib acl acpi aiglx alsa amd64 amd64codecs ape automount avi bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt cue cups cxx dbus dedicated device-mapper devil doc dri dts dvd dvdr emboss emerald enca encode esd exif extras fam ffmpeg firefox flac flash fortran fuse gdbm gdu gif gnash gnome gpm gstreamer gtk gtk2 hal hddtemp i18n iconv icu ipod jadetex java java6 jpeg latex lcms ldap libnotify lm_sensors m4a mad man maps midi mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nfs nls nptl nptlonly nsplugin ntfs-3g ntptlonly ogg openal opengl openmp pam pango pcre pdf perl pmu png policykit ppds pppd python qt3support qt4 readline reflection samba sdl session smp sound spell spl sqlite sse sse2 sse3 ssl startup-notification svg symlink sysfs tcl tcpd threads tiff tk truetype udev unicode unsupported upnp usb utils vaapi vorbis webkit x264 xcb xft xml xorg xulrunner xv xvid xvmc zlib" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh_TW en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx ati radeon" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS my /var/lib/portage/world app-admin/sudo app-admin/syslog-ng app-arch/file-roller app-arch/p7zip app-arch/rar app-dicts/stardict-cdict-en-zh-gb app-dicts/stardict-cedict-zh-en-gb app-dicts/stardict-dictd-devils app-dicts/stardict-langdao-en-zh-gb app-dicts/stardict-langdao-zh-en-gb app-dicts/stardict-mova-smiley app-dicts/stardict-oxford-en-zh-gb app-dicts/stardict-xdict-en-zh-gb app-dicts/stardict-xdict-zh-en-gb app-editors/emacs app-editors/gedit app-editors/vim app-emulation/wine app-i18n/ibus-pinyin app-misc/freemind app-misc/workrave app-office/dia app-office/openoffice app-portage/eix app-portage/gentoolkit app-shells/bash-completion app-text/chmsee app-text/evince app-text/stardict dev-util/ccache dev-util/glade dev-util/strace dev-util/wxglade dev-vcs/cvs games-arcade/frozen-bubble games-arcade/njam games-arcade/smc games-arcade/stepmania games-emulation/dosbox games-fps/alienarena games-fps/openarena games-kids/tuxtype games-misc/fortune-mod-all games-misc/typespeed games-simulation/openttd games-simulation/simutrans games-strategy/boswars games-strategy/freeciv games-strategy/freecol games-strategy/glest games-strategy/wesnoth gnome-base/gnome-applets gnome-base/gnome-light gnome-base/gnome-volume-manager gnome-extra/fast-user-switch-applet gnome-extra/gcalctool gnome-extra/gconf-editor gnome-extra/gnome-games gnome-extra/gnome-power-manager gnome-extra/gnome-screensaver gnome-extra/gnome-system-monitor gnome-extra/gnome-utils gnome-extra/sensors-applet mail-client/mutt mail-filter/procmail mail-mta/msmtp media-fonts/wqy-bitmapfont media-fonts/wqy-microhei media-fonts/wqy-unibit media-fonts/wqy-zenhei media-gfx/gimp media-gfx/grub-splashes media-gfx/gthumb media-sound/rhythmbox media-sound/shntool media-tv/xbmc media-video/smplayer media-video/totem net-ftp/lftp net-im/skype net-irc/irssi net-mail/getmail net-misc/ntp net-news/liferea net-p2p/amule net-p2p/transmission sci-geosciences/googleearth sys-apps/kexec-tools sys-boot/grub sys-fs/jfsutils sys-fs/ntfs3g sys-fs/ntfsprogs sys-fs/reiserfsprogs sys-fs/xfsprogs sys-kernel/gentoo-sources sys-kernel/vanilla-sources sys-power/acpid sys-power/powernowd sys-process/vixie-cron www-client/chromium www-client/epiphany-extensions www-client/firefox www-client/opera www-plugins/adobe-flash x11-apps/mesa-progs x11-apps/xlsfonts x11-base/xorg-server x11-drivers/radeon-ucode x11-libs/xvba-video x11-themes/amsn-skins x11-themes/pidgin-smileys my /etc/portage/package.unmask media-libs/amd64codecs media-libs/win32codecs my/etc/portage/package.keywords www-client/chromium ~amd64 app-i18n/ibus ~amd64 app-i18n/ibus-pinyin ~amd64 sys-kernel/vanilla-sources ~amd64 media-sound/rhythmbox ~amd64 media-video/coherence ~amd64 dev-python/louie ~amd64 dev-python/axiom ~amd64 dev-python/epsilon ~amd64 games-strategy/boswars ~amd64 games-arcade/stepmania ~amd64 games-simulation/secondlife ~amd64 games-simulation/openttd ~amd64 games-misc/opengfx ~amd64 games-misc/openmsx ~amd64 games-misc/opensfx ~amd64 games-util/catcodec ~amd64 games-util/grfcodec ~amd64 games-util/nforenum ~amd64 app-misc/workrave ~amd64 dev-python/cheetah ~amd64 dev-python/markdown ~amd64 app-text/chmsee ~amd64 dev-libs/elfio ~amd64 dev-java/icedtea ~amd64 media-libs/mesa ~amd64 x11-apps/mesa-progs ~amd64 x11-libs/libdrm ~amd64 x11-base/xorg-drivers ~amd64 x11-drivers/xf86-video-ati ~amd64 x11-drivers/radeon-ucode ~amd64 x11-drivers/ati-drivers ~amd64 net-news/liferea ~amd64 net-im/skype ~amd64 x11-wm/compiz-fusion ~amd64 x11-plugins/compiz-plugins-main ~amd64 x11-plugins/compiz-plugins-unsupported ~amd64 x11-libs/compizconfig-backend-gconf ~amd64 x11-wm/compiz ~amd64 x11-wm/emerald ~amd64 x11-apps/ccsm ~amd64 x11-plugins/compiz-plugins-extra ~amd64 x11-libs/compiz-bcop ~amd64 x11-themes/emerald-themes ~amd64 dev-python/compizconfig-python ~amd64 x11-libs/libcompizconfig ~amd64 games-strategy/glest ~amd64 dev-libs/xerces-c ~amd64 www-plugins/gnash ~amd64 www-plugins/adobe-flash ~amd64 app-dicts/stardict-cdict-en-zh-gb ~amd64 app-dicts/stardict-cedict-zh-en-gb ~amd64 app-dicts/stardict-dictd-devils ~amd64 app-dicts/stardict-langdao-en-zh-gb ~amd64 app-dicts/stardict-langdao-zh-en-gb ~amd64 app-dicts/stardict-mova-smiley ~amd64 app-dicts/stardict-oxford-en-zh-gb ~amd64 app-dicts/stardict-xdict-en-zh-gb ~amd64 app-dicts/stardict-xdict-zh-en-gb ~amd64 app-admin/eselect-xvmc ~amd64 media-video/ffmpeg ~amd64 x11-libs/libva ~amd64 media-libs/x264 ~amd64 x11-libs/xvba-video ~amd64 media-libs/amd64codecs ~amd64 media-libs/win32codecs ~amd64 sci-geosciences/googleearth ~amd64 sys-apps/lm_sensors ~amd64 app-admin/hddtemp ~amd64 games-fps/sauerbraten ~amd64
The documentation said that enable the "doc" flag global can cause the circle dependence. Maybe it's a feature is NOT a bug.