Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262678 - sys-libs/db-4.4.20_p4-r1: file size mismatch while fetching
Summary: sys-libs/db-4.4.20_p4-r1: file size mismatch while fetching
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://www.mydatabasesupport.com/foru...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-16 17:06 UTC by Andrey Korobkov
Modified: 2010-04-12 16:44 UTC (History)
2 users (show)

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


Attachments
emerge failre log (build.log,67.82 KB, text/plain)
2009-03-19 14:13 UTC, Andrey Korobkov
Details
emerge --info (emerge.info,5.08 KB, text/plain)
2009-03-19 14:15 UTC, Andrey Korobkov
Details
/usr/portage/sys-libs/db/Manifest (Manifest,14.21 KB, text/plain)
2009-03-19 14:18 UTC, Andrey Korobkov
Details
/usr/portage/sys-libs/db/db-4.4.20_p4-r1.ebuild (db-4.4.20_p4-r1.ebuild,4.86 KB, text/plain)
2009-03-19 14:21 UTC, Andrey Korobkov
Details
git diff oracle other (oracle_other.diff,330.09 KB, text/plain)
2009-03-19 14:39 UTC, Andrey Korobkov
Details
diff between old and new ebuilds (ebuild_1.2_1.3.diff,3.50 KB, text/plain)
2009-03-19 14:55 UTC, Andrey Korobkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Korobkov 2009-03-16 17:06:26 UTC
Fetching file db-4.4.20.tar.gz from different sources (mirrors) gives different file size, that causes failing integrity checks (depending on the mirror).

On the mainstream download page
(http://www.oracle.com/technology/software/products/berkeley-db/db/index.html) the size of db-4.4.20.tar.gz is 7952742,
while in ebuild (and on some other mirrors) it is 8112163.


Reproducible: Sometimes

Steps to Reproduce:
Comment 1 Cassio Lange 2009-03-17 01:56:14 UTC
Hello

try resync portage. that probably solve the problem.

turnaround is ebuild sys-libs/db-4.4.20_p4-r1.ebuild digest
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-17 19:37:39 UTC
I couldn't reproduce your problem. If it still isn't fixed for you please tell us from which mirrors you downloaded the mismatching files and reopen this bug.
Comment 3 Andrey Korobkov 2009-03-19 14:11:20 UTC
It seems to be OK while you have GENTOO_MIRRORS in /etc/make.conf (so that file is downloaded from that mirrors).
But when I use paludis (where I forgot to specify any mirror in /etc/paludis/mirrors.conf) it tries to fetch the tarball from the mainstream download site, specified in the ebuild (SRC_URI="http://download.oracle.com/berkeley-db/${MY_P}.tar.gz"). And from THIS mirror the size and cheksums are different!

I suppose, portage without mirrors specified, will do the same...
Is there any difference between oracle's and other versions of sys-libs/db?
Or it's just the different compression level of the tarball?

Reproducible: Always

Steps to reproduce:
1. set GENTOO_MIRRORS="" in /etc/make.conf
2. rm /usr/portage/distfiles/db-4.4.20.tar.gz
3. emerge -v =sys-libs/db-4.4.20_p4-r1

Expected behavior:
  fetching the bigger tarball (8112163) from any mirror,
  checking checksums and normal installing

Real behavior:
  fetching the smaller tarball (7952742) from the oracle's mirror,
  checking checksums and failing with this message:

('Filesize does not match recorded size', 7952742L, 8112163)
!!! Fetched file: db-4.4.20.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      7952742
!!! Expected: 8112163
Refetching... File renamed to '/usr/portage/distfiles/db-4.4.20.tar.gz._checksum_failure_.ZIEGV2'

!!! Couldn't download 'db-4.4.20.tar.gz'. Aborting.
 * Fetch failed for 'sys-libs/db-4.4.20_p4-r1', Log file:
 *  '/var/tmp/portage/sys-libs/db-4.4.20_p4-r1/temp/build.log'

>>> Failed to emerge sys-libs/db-4.4.20_p4-r1, Log file:

>>>  '/var/tmp/portage/sys-libs/db-4.4.20_p4-r1/temp/build.log'

 * Messages for package sys-libs/db-4.4.20_p4-r1:

 * Fetch failed for 'sys-libs/db-4.4.20_p4-r1', Log file:
 *  '/var/tmp/portage/sys-libs/db-4.4.20_p4-r1/temp/build.log'
Comment 4 Andrey Korobkov 2009-03-19 14:13:54 UTC
Created attachment 185516 [details]
emerge failre log
Comment 5 Andrey Korobkov 2009-03-19 14:15:21 UTC
Created attachment 185517 [details]
emerge --info
Comment 6 Andrey Korobkov 2009-03-19 14:18:04 UTC
Created attachment 185519 [details]
/usr/portage/sys-libs/db/Manifest
Comment 7 Andrey Korobkov 2009-03-19 14:21:48 UTC
Created attachment 185521 [details]
/usr/portage/sys-libs/db/db-4.4.20_p4-r1.ebuild
Comment 8 Andrey Korobkov 2009-03-19 14:39:10 UTC
Created attachment 185524 [details]
git diff oracle other

The tarballs are really different!
Comment 9 Andrey Korobkov 2009-03-19 14:55:55 UTC
Created attachment 185525 [details]
diff between old and new ebuilds

The new ebuild (v 1.3) doesn't change the SOURCE_URI, so the bug is still actual.