Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136947 - Bad "Filesize does not match recorded size" error message
Summary: Bad "Filesize does not match recorded size" error message
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Other
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 136244 137445
  Show dependency tree
 
Reported: 2006-06-15 22:48 UTC by Harald van Dijk (RETIRED)
Modified: 2006-06-20 16:59 UTC (History)
0 users

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


Attachments
patch in nice downloadable form (portage-2.1-filesize,926 bytes, patch)
2006-06-15 22:52 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald van Dijk (RETIRED) gentoo-dev 2006-06-15 22:48:46 UTC
While trying to install binutils 2.16.94:

('Filesize does not match recorded size', 8685L, 7906)
!!! Fetched file: binutils-2.16.94-patches-1.0.tar.bz2 VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      Filesize does not match recorded size
!!! Expected: 8685

Obviously, it should say

!!! Reason: Filesize does not match recorded size
!!! Got:      8685
!!! Expected: 7906

The obvious patch:

--- /usr/lib/portage/pym/portage.py.orig
+++ /usr/lib/portage/pym/portage.py
@@ -2139,7 +2139,7 @@
                                    writemsg("!!! Previously fetched file: "+str(myfile)+"\n", noiselevel=-1)
                                    writemsg("!!! Reason: "+reason[0]+"\n", noiselevel=-1)
                                    writemsg("!!! Got:      %s\n!!! Expected: %s\n" % \
-                                       (reason[0], reason[1]), noiselevel=-1)
+                                       (reason[1], reason[2]), noiselevel=-1)
                                    writemsg("Refetching...\n\n", noiselevel=-1)
                                    os.unlink(mysettings["DISTDIR"]+"/"+myfile)
                                    fetched=0
@@ -2269,7 +2269,7 @@
                                    writemsg("!!! Reason: "+reason[0]+"\n",
                                        noiselevel=-1)
                                    writemsg("!!! Got:      %s\n!!! Expected: %s\n" % \
-                                       (reason[0], reason[1]), noiselevel=-1)
+                                       (reason[1], reason[2]), noiselevel=-1)
                                    writemsg("Removing corrupt distfile...\n", noiselevel=-1)
                                    os.unlink(mysettings["DISTDIR"]+"/"+myfile)
                                    fetched=0
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2006-06-15 22:52:05 UTC
Created attachment 89281 [details, diff]
patch in nice downloadable form

Also, I doubt you need to know more than the portage version, but complete emerge --info just in case:

Portage 2.1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-rc5 i686)
=================================================================
System uname: 2.6.17-rc5 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.12.1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.93
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer"
DISTDIR="/var/dist"
FEATURES="assume-digests autoconfig collision-protect cvs distlocks metadata-transfer notitles parallel-fetch sandbox sfperms sign strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Xlinker --as-needed"
LINGUAS="en_GB en"
PKGDIR="/var/pkg"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cvs/gentoo-x86"
PORTDIR_OVERLAY="/etc/portage/overlay /etc/portage/overlay/enlightenment /etc/portage/overlay/flameeyes"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa bindist cairo cdparanoia cjk cups dri fbcon ftp gcc-libffi gif gpgme gtk idn immqt ipv6 jpeg kdeenablefinal kdehiddenvisibility mbox mmx mmxext mozdevelop mudflap ncurses nethack nls no-old-linux nocxx nptl nptlonly offensive ogg opengl pango pcre png ppds qt readline rtc ssl theora truetype unicode vim-pager vorbis win32codecs xim xine xorg elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en_GB linguas_en userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Zac Medico gentoo-dev 2006-06-15 23:15:20 UTC
Thanks, your patch is in svn r3515.
Comment 3 Zac Medico gentoo-dev 2006-06-16 10:02:37 UTC
This has been released in 2.1.1_pre1.