Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5926 - emerge -fp should print file names to be downloaded
Summary: emerge -fp should print file names to be downloaded
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
: 7655 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-02 15:12 UTC by Wilbert van Bakel
Modified: 2011-10-30 22:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wilbert van Bakel 2002-08-02 15:12:55 UTC
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...
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-10-13 14:47:41 UTC
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.
Comment 2 Jeremy Gebben 2002-10-28 16:19:43 UTC
*** Bug 7655 has been marked as a duplicate of this bug. ***
Comment 3 Felipe Ghellar 2003-02-13 12:03:48 UTC
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.