"emerge -av --emptytree -f world" lists all the packages that it wants to download, then dies with: Traceback (most recent call last): File "/usr/bin/emerge", line 2548, in ? mydepgraph.display(mydepgraph.altlist()) File "/usr/bin/emerge", line 1374, in display print "Total size of downloads: "+format_size(totalsize) TypeError: cannot concatenate 'str' and 'long' objects Reproducible: Always Steps to Reproduce: 1. In order to clean my /usr/portage/distfiles, I moved my /usr/portage/distfiles to /usr/portage/distfiles.old and put a link to that directory in /var/www/localhost/htdocs (as suggested in http://forums.gentoo.org/viewtopic.php?t=88832). 2. GENTOO_MIRRORS="http://localhost" in /etc/make.conf. 3. emerge -av --emptytree -f world Actual Results: After "Calculating world dependencies" and after printing all the packages it wants to download, it dies with the error message from above. Expected Results: It should print the calculated download size, even if it's greater than 2 GB. "emerge --emptytree -f world" works without problems.
Reopen if you can reproduce this. It is technically impossible given the code cited as the cause. Include CFLAGS and emerge info if reopened. Also, remerge python with basic CFLAGS and try again.