An emerge of the latest gentoo-sources fails with the messages that the digests are incorrect and that a patch file is missing. Reproducible: Always Steps to Reproduce: emerge -uv gentoo-sources Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) sys-kernel/gentoo-sources-2.4.22-r7 to / >>> md5 src_uri ;-) linux-2.4.22.tar.bz2 !!! File is corrupt or incomplete. (Digests do not match) >>> our recorded digest: 7f4a97d9c29f7dfc959a7a7efb077e29 >>> your file's digest: bd9fe0048efaff6382d887bfb595f31a !!! File does not exist: /usr/portage/distfiles//gentoo-sources-2.4.22-r5.patch.bz2 Expected Results: The new version of the kernel source should have been installed. Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r9) ================================================================= System uname: 2.4.20-gentoo-r9 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.4.3.13 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://gentoo.noved.org/ http://mirror.tucdemonic.org/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X alsa apache2 apm arts avi berkdb bonobo cdr cjk crypt cups curl dga directfb doc dvd emacs encode esd ethereal fastcgi fbcon foomaticdb gb gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib innodb java jpeg kde libg++ libwww mad maildir mikmod mmx motif mozilla mpeg mysql ncurses nls odbc ofx oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline samba sasl sdl slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype unicode usb wmf x86 xml xml2 xmms xv zeo zlib"
Typo in files/digest-gentoo-sources-2.4.22-r7? betka@rsc-ops files $ cat digest-gentoo-sources-2.4.22-r5 MD5 75dc85149b06ac9432106b8941eb9f7b linux-2.4.22.tar.bz2 29528612 MD5 7f4a97d9c29f7dfc959a7a7efb077e29 gentoo-sources-2.4.22-r5.patch.bz2 3766950 betka@rsc-ops files $ cat digest-gentoo-sources-2.4.22-r7 MD5 75dc85149b06ac9432106b8941eb9f7b linux-2.4.22.tar.bz2 29528612 MD5 7f4a97d9c29f7dfc959a7a7efb077e29 gentoo-sources-2.4.22-r5.patch.bz2 3766950
Nope, it isn't a typo since -r7 has the -r6 AMD64 patch and the -r7 security fix but uses the -r5 tarball. What happened was that -r5 was initially released with a broken version, which was then updated without bumping the revision, and it seems you've got the broken tarball when you installed gentoo-sources-2.4.22-r5. If you clean out /usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2 it should be fine - if not, please reopen this bug. Thanks!
Manually removing /usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2 fixed the problem. However, given the way that files are downloaded for an emerge, perhaps it would have been better to have created a new r7 patch tarball. Either that or find some way to force a re-download of a file if it changes but the name of the file hasn't changed for some peculiar reason. I am sure that other people are going to run into similar problems on other ebuilds.