I had to update/upgrade some gentoo box which wasn't on internet ASAP. Therefore I copied /usr/portage tree from my PC and run "emerge -UDfp world" to get the list of files to copy too. I copied them and run "emerge -UDf world" to be sure nothing was forgotten ... emerge started to download plenty of files which were not listed if with --pretend flag. Reproducible: Always Steps to Reproduce: 1. emerge -UDfp world >/dev/null 2>list1.tmp 2. sed 's#^.*/##' list1.tmp|sort|uniq >list1 3. copy all files from list1 to /usr/portage distfiles 4. emerge -UDf world Actual Results: emerge from step 4. downloads files, which were not listed in step 1. Expected Results: emerge from step 4. should say all af files were previously fetched Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo) ================================================================= System uname: 2.4.25-gentoo i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.4.9 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -mfpmath=sse -msse2 -mmmx -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/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 /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -mfpmath=sse -msse2 -mmmx -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acl acpi alsa apache2 arts avi bonobo cdr crypt cups dga directfb doc dvd encode esd ethereal evo fbcon flash foomaticdb freetds gd gdbm ggi gif gpm gps gtk gtk2 gtkhtml guile icc-pgo imap imlib innodb java jikes jpeg junit kde ladcca lcms libwww linguas_sk lirc mad maildir mikmod mmx motif mozilla mpeg mpi mule mysql nas ncurses nls oav odbc oggvorbis opengl oss pam pcmcia pdflib perl plotutils png pnp python qt quicktime readline sasl scanner sdl slang slp snmp socks5 spell sse ssl svga tcltk tcpd tiff truetype trusted usb video_cards_radeon wavelan wmf x86 xface xml xml2 xmms xv zeo zlib"
I tried the required steps as you showed above. The exact same portage version was used as well. One thing I will mention, as developers have cautioned against using the -U flag, I used `emerge -uDfp world` and `emerge -uDf world` instead. Following the procedure: 1) I got the list of files that would be downloaded by the -f argument. 2) After the list was compiled, I changed the /usr/portage/distfiles directory 3) I manually downloaded all the files in the list into /usr/portage distfiles 4) I did `emerge -uDf world` and for all the files that I downloaded I recieved: >>> python-fchksum-1.7.1.tar.gz MD5 ;-) >>> md5 src_uri ;-) python-fchksum-1.7.1.tar.gz >>> emerge (2 of 7) app-text/sgml-common-0.6.3-r4 to / >>> Previously fetched file: sgml-common-0.6.3.tgz MD5 ;-) >>> md5 src_uri ;-) sgml-common-0.6.3.tgz >>> emerge (3 of 7) net-mail/mailwrapper-0.1 to / >>> Previously fetched file: mailwrapper-0.1.tbz2 MD5 ;-) >>> md5 src_uri ;-) mailwrapper-0.1.tbz2 >>> emerge (4 of 7) net-mail/ssmtp-2.60.7 to / >>> Previously fetched file: ssmtp_2.60.7.tar.gz MD5 ;-) >>> md5 src_uri ;-) ssmtp_2.60.7.tar.gz >>> emerge (5 of 7) net-misc/curl-7.11.0 to / >>> Previously fetched file: curl-7.11.0.tar.bz2 MD5 ;-) >>> md5 src_uri ;-) curl-7.11.0.tar.bz2 >>> emerge (6 of 7) media-libs/libmikmod-3.1.11 to / >>> Previously fetched file: libmikmod-3.1.11.tar.gz MD5 ;-) >>> md5 src_uri ;-) libmikmod-3.1.11.tar.gz >>> emerge (7 of 7) app-text/texi2html-1.64-r1 to / >>> Previously fetched file: texi2html-1.64.tar.gz MD5 ;-) >>> md5 src_uri ;-) texi2html-1.64.tar.gz only issue being python-fchksum-1.7.1.tar.gz which I forgot to download but was still on the list. As is such, I am unable to verify this as a valid bug.
Duplicate it somehow, produce the data, and reopen the bug.