Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65575 - emerge -pv just check if distfile exists, not its size, nor its md5
Summary: emerge -pv just check if distfile exists, not its size, nor its md5
Status: RESOLVED DUPLICATE of bug 116796
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 13:02 UTC by Talamona Francesco
Modified: 2007-01-18 20:59 UTC (History)
0 users

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 Talamona Francesco 2004-09-27 13:02:31 UTC
If the needed source file doesn't exist in DISTDIR, then size to download is reported correctly, but if the download is incomplete, emerge -pv tells there are 0KB to download.

Reproducible: Always
Steps to Reproduce:
1. try emerge -pv about something that isn't in DISTDIR
2. put an empty file (or an incomplete download) instead of source one 
3. call again emerge -pv

Actual Results:  
1)
macula root #  emerge -pv mozilla-firefox

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/mozilla-firefox-1.0_pre  -debug -debug +gnome +gtk2
+gtk2 -ipv6 +java +java -ldap -mozdevelop -moznoxft -moznoxft -mozxmlterm
+truetype -xinerama -xinerama +xprint  31,637 kB 

Total size of downloads: 31,637 kB

2)
macula root # touch  /usr/portage/distfiles/firefox-1.0PR-source.tar.bz2
macula root # ll  /usr/portage/distfiles/firefox-1.0PR-source.tar.bz2
-rw-r--r--  1 root root 0 Sep 27 20:50
/usr/portage/distfiles/firefox-1.0PR-source.tar.bz2

3)
macula root # emerge -pv mozilla-firefox

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/mozilla-firefox-1.0_pre  -debug -debug +gnome +gtk2
+gtk2 -ipv6 +java +java -ldap -mozdevelop -moznoxft -moznoxft -mozxmlterm
+truetype -xinerama -xinerama +xprint  0 kB 

Total size of downloads: 0 kB

At this point this information is obviously wrong



Expected Results:  
report user that download file is incomplete/unusable as does with emerge -pvf.
Side note: even with "-f" filesize is not checked.

I don't think it's relevant, but here it is:

Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8.1)
=================================================================
System uname: 2.6.8.1 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -mmmx -Os -m3dnow -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -mmmx -Os -m3dnow -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.du.se/pub/os/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.inode.at/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://gentoo.tiscali.nl/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/
http://gentoo.mirror.sdv.fr
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://mirror.switch.ch/mirror/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X X509 aalib alsa apm arts avi berkdb bitmap-fonts cddb cdparanoia
cdr crypt cups dga directfb doc dv dvd dvdr encode esd f77 fbcon flac fmod
foomaticdb ftp gdbm ggi gif gnome gpm gstreamer gtk gtk2 guile imlib java jpeg
kde libg++ libwww live mad mikmod mmx mng motif mozilla moznoirc moznomail mpeg
ncurses nls oggvorbis opengl oracle oss pam pdflib perl png python qt quicktime
readline samba sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms
xprint xv zlib"
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:24:39 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 13:49:55 UTC
Pretty sure this is fixed by now.
Comment 3 Zac Medico gentoo-dev 2007-01-12 06:39:56 UTC
This was fixed in portage-2.1 for bug #116796.
Comment 4 Talamona Francesco 2007-01-18 18:37:22 UTC
Who is supposed to close this bug report, then?
Comment 5 Zac Medico gentoo-dev 2007-01-18 20:59:27 UTC
Reopening for duping.
Comment 6 Zac Medico gentoo-dev 2007-01-18 20:59:42 UTC

*** This bug has been marked as a duplicate of bug 116796 ***