While doing an emerge recently, I noticed that net-p2p/bittorrent wanted to be downgraded. Nothing obvious in the ChangeLog for why it would be downgraded, but I decided to let it. A few days later, I synced again, and this time it wanted to be upgraded again, back to the previous version. So, I let it upgrade, but after the emerge world completed, I decided to try it again. Lo and behold, net-p2p/bittorrent wanted to be downgraded again. Below you can see what happens, it's an endless loop. ----------- idc00099p01 ~ # emerge -uDvp world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild UD] net-p2p/bittorrent-3.4.2-r2 [4.0.1] +X 0 kB Total size of downloads: 0 kB idc00099p01 ~ # emerge -uDv world Calculating world dependencies ...done! >>> emerge (1 of 1) net-p2p/bittorrent-3.4.2-r2 to / <snip> bittorrent-3.4.2-r2 merged. idc00099p01 ~ # emerge -uDvp world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild U ] net-p2p/bittorrent-4.0.1 [3.4.2-r2] +X 0 kB Total size of downloads: 0 kB idc00099p01 ~ # emerge -uDv world Calculating world dependencies ...done! >>> emerge (1 of 1) net-p2p/bittorrent-4.0.1 to / <snip> >>> net-p2p/bittorrent-4.0.1 merged. idc00099p01 ~ # emerge -uDvp world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild UD] net-p2p/bittorrent-3.4.2-r2 [4.0.1] +X 0 kB Total size of downloads: 0 kB idc00099p01 ~ # Reproducible: Always Steps to Reproduce: 1. emerge =net-p2p/bittorrent-4.0.1 2. emerge -uvp world 3. emerge -uv world 4. goto 2 Actual Results: endless loop of changing version from 3.4.2-r2 to 4.0.1 and back again. Expected Results: Should stay at 4.0.1 idc00099p01 ~ # grep bittorrent /etc/portage/* idc00099p01 ~ # ----------------- idc00099p01 ~ # emerge info Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 Intel(R) Xeon(TM) CPU 3.60GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.osuosl.org/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d a52 aac acl acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cdr crypt cscope cups curl dga dv dvd dvdr dvdread eds encode fam ffmpeg fftw flac foomaticdb fortran gcj gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ieee1394 imagemagick imlib ipv6 jack jpeg kde kerberos krb4 ladcca lcms ldap libwww lm_sensors lzo lzw lzw-tiff mad mailwrapper matroska mbox mikmod milter mmap mng motif mozilla mp3 mpeg mpi ncurses nls nptl nsplugin oci8 odbc offensive ogg oggvorbis opengl oracle pam pda pdflib perl png portaudio ppds python qt quicktime readline ruby samba sasl sdl silc skey smartcard sndfile snmp spell ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vorbis wmf xine xinerama xml xml2 xmms xosd xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Someone "cleaned up" bittorrent-4.0.1.ebuild but that was the highest version previously marked stable for amd64.
Do you have gnome-btdownload installed?
Yes, it is. Looking at that ebuild, I see it requires bittorrent-3.4.x, which is what is forcing the downgrade. Emerge world is deciding to upgrade again, as 4.0.1 is marked stable, which is why this endless loop is going on. I've removed gnome-btdownload, as I'm not using it.
Fixed.