Bug 198751 - app-emulation/emul-linux-x86-baselibs-10.2 wrong manifest
Bug#: 198751 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: amd64@gentoo.org Reported By: bugs@dev.gentooexperimental.org
Component: Ebuilds
URL: 
Summary: app-emulation/emul-linux-x86-baselibs-10.2 wrong manifest
Keywords:  
Status Whiteboard: 
Opened: 2007-11-10 21:50 0000
Description:   Opened: 2007-11-10 21:50 0000
>>> Emerging (85 of 666) app-emulation/emul-linux-x86-baselibs-10.2 to /
 * expat-1.95.8.tbz2 RMD160 SHA1 SHA256 size ;-) ...                           
                                                                               
            [ ok ]
 * dbus-glib-0.72.tbz2 RMD160 SHA1 SHA256 size ;-) ...                         
                                                                               
            [ ok ]
 * openldap-2.3.30-r2.tbz2 RMD160 SHA1 SHA256 size ;-) ...                     
                                                                               
            [ ok ]
 * ss-1.39.tbz2 RMD160 SHA1 SHA256 size ;-) ...                                
                                                                               
            [ ok ]
>>> Resuming download...
>>> Downloading 'http://distfiles.gentoo.org/distfiles/libperl-5.8.8-r1.tbz2'
--21:45:29--  http://distfiles.gentoo.org/distfiles/libperl-5.8.8-r1.tbz2
           => `/usr/portage/distfiles/libperl-5.8.8-r1.tbz2'
Resolving distfiles.gentoo.org... 64.50.238.52, 64.50.236.52, 156.56.247.195,
...
Connecting to distfiles.gentoo.org|64.50.238.52|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 1,837,619 (1.8M), 1,793,465 (1.7M) remaining [text/plain]

100%[+++===================================================================================================================================>]
1,837,619    418.55K/s    ETA 00:00

21:45:34 (375.10 KB/s) - `/usr/portage/distfiles/libperl-5.8.8-r1.tbz2' saved
[1837619/1837619]

('Filesize does not match recorded size', 1837619, 518196)
!!! Fetched file: libperl-5.8.8-r1.tbz2 VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      1837619
!!! Expected: 518196
Refetching... File renamed to
'/usr/portage/distfiles/libperl-5.8.8-r1.tbz2._checksum_failure_.NELSrQ'

>>> Downloading 'http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/libperl-5.8.8-r1.tbz2'
--21:45:34-- 
http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/libperl-5.8.8-r1.tbz2
           => `/usr/portage/distfiles/libperl-5.8.8-r1.tbz2'
Resolving distro.ibiblio.org... 152.46.7.109
Connecting to distro.ibiblio.org|152.46.7.109|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,837,619 (1.8M) [text/plain]

Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0,
2.6.23-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
3800+
Timestamp of tree: Sat, 10 Nov 2007 21:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.3-r4, 2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf
/etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms splitdebug
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl alsa amd64 berkdb bitmap-fonts bzip2 cdio
cdparanoia cli cracklib crypt cups dga dri dts dv dvd encode fam flac fortran
ftp gdbm ggi gif gpm iconv ipv6 isdnlog jack jpeg jpeg2k kdeenablefinal ladspa
lzo mad md5sum midi mmx mmxext mng mp2 mp3 mudflap musepack nas ncurses nls
nptl nptlonly openal openmp pam pcre perl png pnm pppd python qt3 qt4 quicktime
rar readline reflection rtc sdl session slang speex spl sqlite sse sse2 ssl
tcpd tga theora tiff truetype truetype-fonts type1-fonts unicode vorbis x264 xc
xcid xorg xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x
ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #1 From Dawid Węgliński 2007-11-11 03:14:39 0000 -------
*** Bug 198766 has been marked as a duplicate of this bug. ***

------- Comment #2 From georgia_tech_swagger 2007-11-11 03:23:44 0000 -------
After considerable searching, 
http://e2.ututo.org/i486/dbus-qt3-old-0.70.tbz2

seems to match the filesize asked for dbus-qt3-old ... but it's about the only
copy I could find.   Nearly every Gentoo mirror has one that's slightly smaller
in size.

------- Comment #3 From georgia_tech_swagger 2007-11-11 03:24:20 0000 -------
Scratch that -- it's slightly too small to  :-/

------- Comment #4 From Mike Doty 2007-11-11 05:00:10 0000 -------
sorry about that, while preparing some new emul libs for you all, I trashed my
DISTDIR and caused an invalid manifest to be generated.  All is reverted and
should be corrected on the mirrors in 1 hour.  If not, please reopen.

------- Comment #5 From Jakub Moc (RETIRED) 2007-11-11 16:23:13 0000 -------
*** Bug 198814 has been marked as a duplicate of this bug. ***

------- Comment #6 From Jakub Moc (RETIRED) 2007-11-11 16:28:05 0000 -------
Reopen...

DIST libperl-5.8.8-r1.tbz2 1534618 RMD160
71d3da85a6626f2a01d660f6e642e0d64d4e0c9b SHA1
b637f7377196e1aa231616b9312584ee8197d701 SHA256
7c0d374e5b6da6d1ef205525a9e4fcdf522905e30506321588f5e8a229af6d48

$ wget http://distfiles.gentoo.org/distfiles/libperl-5.8.8-r1.tbz2
--17:27:01--  http://distfiles.gentoo.org/distfiles/libperl-5.8.8-r1.tbz2
           => `libperl-5.8.8-r1.tbz2'
Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195,
140.211.166.134, ...
Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,837,619 (1.8M) [text/plain]

100%[==================================================================================================>]
1,837,619    283.03K/s    ETA 00:00

17:27:08 (281.08 KB/s) - `libperl-5.8.8-r1.tbz2' saved [1837619/1837619]

------- Comment #7 From Jakub Moc (RETIRED) 2007-11-11 16:29:09 0000 -------
*** Bug 198814 has been marked as a duplicate of this bug. ***

------- Comment #8 From Mike Doty 2007-11-11 17:54:04 0000 -------
(In reply to comment #6)
> Reopen...
> 
> DIST libperl-5.8.8-r1.tbz2 1534618 RMD160
> 71d3da85a6626f2a01d660f6e642e0d64d4e0c9b SHA1
> b637f7377196e1aa231616b9312584ee8197d701 SHA256
> 7c0d374e5b6da6d1ef205525a9e4fcdf522905e30506321588f5e8a229af6d48
> 
> $ wget http://distfiles.gentoo.org/distfiles/libperl-5.8.8-r1.tbz2
> --17:27:01--  http://distfiles.gentoo.org/distfiles/libperl-5.8.8-r1.tbz2
>            => `libperl-5.8.8-r1.tbz2'
> Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195,
> 140.211.166.134, ...
> Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 1,837,619 (1.8M) [text/plain]
> 
> 100%[==================================================================================================>]
> 1,837,619    283.03K/s    ETA 00:00
> 
> 17:27:08 (281.08 KB/s) - `libperl-5.8.8-r1.tbz2' saved [1837619/1837619]
> 

regenerated from an empty DISTDIR this time, gotta be resolved now.  please
reopen in 1 hour of otherwise.

------- Comment #9 From David Ashley 2007-11-11 19:19:29 0000 -------
Confirmed this fixed problem after I did an "emerge --sync" about an hour
later...

------- Comment #10 From Jakub Moc (RETIRED) 2007-11-11 21:39:47 0000 -------
*** Bug 198853 has been marked as a duplicate of this bug. ***

------- Comment #11 From Jakub Moc (RETIRED) 2007-11-15 17:13:49 0000 -------
*** Bug 199272 has been marked as a duplicate of this bug. ***

------- Comment #12 From Mike Luschas 2007-11-15 18:39:10 0000 -------
Reopen as this is still problematic

------- Comment #13 From klenze@in.tum.de 2007-11-15 20:16:07 0000 -------
I've just synced against rsync://rsync.gentoo.org/gentoo-portage and have
issues with the Manifest for the libperl-5.8.8-r1.tbz2 file, downloaded from
distfiles.gentoo.org. 

Curiously, the file size in the manifest has changed but still is not correct: 

$ emerge -1 emul-linux-x86-baselibs
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) app-emulation/emul-linux-x86-baselibs-10.2 to /
 * expat-1.95.8.tbz2 RMD160 SHA1 SHA256 size ;-) ...                          
[ ok ]
 * dbus-glib-0.72.tbz2 RMD160 SHA1 SHA256 size ;-) ...                        
[ ok ]
 * openldap-2.3.30-r2.tbz2 RMD160 SHA1 SHA256 size ;-) ...                    
[ ok ]
 * ss-1.39.tbz2 RMD160 SHA1 SHA256 size ;-) ...                               
[ ok ]
>>> Downloading 'http://distfiles.gentoo.org/distfiles/libperl-5.8.8-r1.tbz2'
--22:59:59--  http://distfiles.gentoo.org/distfiles/libperl-5.8.8-r1.tbz2
           => `/usr/portage/distfiles/libperl-5.8.8-r1.tbz2'
Resolving distfiles.gentoo.org... 140.211.166.134, 156.56.247.195,
216.165.129.135, ...
Connecting to distfiles.gentoo.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,837,619 (1.8M) [text/plain]

100%[=========================================>] 1,837,619    545.90K/s    ETA
00:00

23:00:03 (544.25 KB/s) - `/usr/portage/distfiles/libperl-5.8.8-r1.tbz2' saved
[1837619/1837619]

 * glib-2.12.7.tbz2 RMD160 SHA1 SHA256 size ;-) ...                           
[ ok ]
(long list of successful checks ommited)
 * checking libperl-5.8.8-r1.tbz2 ;-) ...                                     
[ !! ]

!!! Digest verification failed:
!!! /usr/portage/distfiles/libperl-5.8.8-r1.tbz2
!!! Reason: Filesize does not match recorded size
!!! Got: 1837619
!!! Expected: 1534618

I've found a good version of the Manifest in a portage tree some days old, the
relevant line is:
DIST libperl-5.8.8-r1.tbz2 1837619 RMD160
318de060f437f5d9e81a2d184aed13fd83451734 SHA1
8c1bcff51e2cd8fe752723d6387f1af16a64ee8f SHA256
c556c9f0230aa5aea70a191e7bf74644707efb7d4ff6a1feb952a2a8c17bde5b

The bad line in the current manifest is:

DIST libperl-5.8.8-r1.tbz2 1534618 RMD160
71d3da85a6626f2a01d660f6e642e0d64d4e0c9b SHA1
b637f7377196e1aa231616b9312584ee8197d701 SHA256
7c0d374e5b6da6d1ef205525a9e4fcdf522905e30506321588f5e8a229af6d48

I've been able to reproduce this problem on a different machine. And I'm pretty
convinced this is not about outdated mirrors since I've chosen the official
ones for both rsync and http.