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:
Hello try resync portage. that probably solve the problem. turnaround is ebuild sys-libs/db-4.4.20_p4-r1.ebuild digest
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.
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'
Created attachment 185516 [details] emerge failre log
Created attachment 185517 [details] emerge --info
Created attachment 185519 [details] /usr/portage/sys-libs/db/Manifest
Created attachment 185521 [details] /usr/portage/sys-libs/db/db-4.4.20_p4-r1.ebuild
Created attachment 185524 [details] git diff oracle other The tarballs are really different!
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.