emerge -fp <package> doesn't show the information I'm looking for. I would like to see which source files are going to be downloaded. With that information I can see if I have the source already somewhere else. Another advantage is that with a command like emerge -efp <package> I could see which source files should be available in distfiles. That makes it easier to maintain the outdated source files. I miss easy maintenance of portage/distfiles and also portage/packages...
Ok. -fp will be in portage-2.0.40. The outdate distfiles will have to come later when I figure out a good way to do that.
*** Bug 7655 has been marked as a duplicate of this bug. ***
There's a small issue related to this feature. I don't know exactly why it happens, but I'd guess it has something to do with output buffers. Here is an example. On my system, 'emerge -p kdeaddons' will give These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] media-video/xanim-2.80.1-r4 [ebuild N ] media-libs/libogg-1.0 [ebuild N ] media-libs/libvorbis-1.0-r1 [ebuild N ] media-sound/mpg123-0.59r-r1 [ebuild N ] kde-base/kdemultimedia-3.1 [ebuild N ] dev-lang/nasm-0.98.34 [ebuild N ] media-libs/libsdl-1.2.5-r1 [ebuild N ] kde-base/kdenetwork-3.1 [ebuild N ] kde-base/kdegames-3.1 [ebuild UD] gnome-base/gnome-panel-1.4.2-r1 [2.2.0.1] [ebuild N ] media-sound/xmms-1.2.7-r15 [ebuild N ] kde-base/kdeaddons-3.1 And the last few lines of 'emerge -p -f kdeaddons' are http://gentoo.oregonstate.edu//distfiles/xmms-1.2.7.tar.gz http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/xmms-1.2.7.tar.gz http://www.xmms.org/files/1.2.x/xmms-1.2.7.tar.gz sdl xmms http://gentoo.oregonstate.edu//distfiles/kdeaddons-3.1.tar.bz2 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/kdeaddons-3.1.tar.bz2 http://ibiblio.org/pub/packages/desktops/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://ftp.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.us.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://ftp.gtlib.cc.gatech.edu/pub/kde/stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.uk.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.au.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.at.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.tw.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 Ok so far. But if I try to pipe this to some other command, those use flags printed somehow get mixed with the rest. The last few lines of 'emerge -p -f kdeaddons | cat' are: http://gentoo.oregonstate.edu//distfiles/xmms-1.2.7.tar.gz http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/xmms-1.2.7.tar.gz http://www.xmms.org/files/1.2.x/xmms-1.2.7.tar.gz http://gentoo.oregonstate.edu//distfiles/kdeaddons-3.1.tar.bz2 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/kdeaddons-3.1.tar.bz2 http://ibiblio.org/pub/packages/desktops/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://ftp.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.us.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://ftp.gtlib.cc.gatech.edu/pub/kde/stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://downsdl xmms load.uk.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.au.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.at.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 ftp://download.tw.kde.org/pub/kde//stable/3.1/src/kdeaddons-3.1.tar.bz2 Now, even filtering it all with 'grep ://' still leaves some garbage URIs. The workaround is to edit /usr/sbin/ebuild.sh and change the use() function so that it won't produce any output, by commenting out the 'echo "${x}"' line in there (is that line really needed, anyway?). This makes it possible to generate dowload lists to be used somewhere else.