Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 825090 - emerge on byacc fails - Reason: Filesize does not match recorded size
Summary: emerge on byacc fails - Reason: Filesize does not match recorded size
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-20 06:33 UTC by Richard Hair
Modified: 2021-11-20 14:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Hair 2021-11-20 06:33:01 UTC
FYI:  when trying to emerge virtualbox, the emerge for byacc complains about a wrong file size:

>>> Emerging (1 of 13) dev-util/byacc-20210808::gentoo
>>> Downloading <SNIP> ...20210808.tgz'
--2021-11-19 20:18:27--  <SNIP> byacc-20210808.tgz
Resolving distfiles.gentoo.org... 89.187.187.12, 2a02:6ea0:c800::8
Connecting to distfiles.gentoo.org|89.187.187.12|:80... connected.
request sent, awaiting response... 200 OK
Length: 891489 (871K) [application/x-gzip]
Saving to: ‘/var/cache/distfiles/byacc-20210808.tgz.__download__’

/var/cache/distfile 100%[===================>] 870.59K  --.-KB/s    in 0.1s    

2021-11-19 20:18:27 (6.91 MB/s) - ‘/var/cache/distfiles/byacc-20210808.tgz.__download__’ saved [891489/891489]

!!! Fetched file: byacc-20210808.tgz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      891489
!!! Expected: 895366
Refetching... File renamed to '/var/cache/distfiles/byacc-20210808.tgz._checksum_failure_.g_1eryac'

>>> Downloading <SNIP> invisible-mirror.net/ archives/ byacc/ byacc-20210808.tgz'
--2021-11-19 20:18:28--  <SNIP> invisible-mirror net/ archives/ byacc/ byacc-20210808.tgz
Resolving invisible-mirror.net... 160.153.42.69
Connecting to invisible-mirror.net|160.153.42.69|:443... connected.
   request sent, awaiting response... 200 OK
Length: 891489 (871K) [application/x-tar]
Saving to: ‘/var/cache/distfiles/byacc-20210808.tgz.__download__’

/var/cache/distfile 100%[===================>] 870.59K  4.41MB/s    in 0.2s    

2021-11-19 20:18:28 (4.41 MB/s) - ‘/var/cache/distfiles/byacc-20210808.tgz.__download__’ saved [891489/891489]

!!! Fetched file: byacc-20210808.tgz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      891489
!!! Expected: 895366
Refetching... File renamed to '/var/cache/distfiles/byacc-20210808.tgz._checksum_failure_.g_1eryac'

!!! Couldn't download 'byacc-20210808.tgz'. Aborting.
 * Fetch failed for 'dev-util/byacc-20210808', Log file:
 *  '/var/tmp/portage/dev-util/byacc-20210808/temp/build.log'

>>> Failed to emerge dev-util/byacc-20210808, Log file:

>>>  '/var/tmp/portage/dev-util/byacc-20210808/temp/build.log'

 * Messages for package dev-util/byacc-20210808:

 * Fetch failed for 'dev-util/byacc-20210808', Log file:
 *  '/var/tmp/portage/dev-util/byacc-20210808/temp/build.log'

Can the ebuild be re-built?

========================== build.log ======================
System /var/tmp/portage/dev-util/byacc-20210808/temp # cat build.log
>>> Downloading '<SNIP> distfiles gentoo org/ distfiles/ 86/ byacc-20210808.tgz'
--2021-11-19 20:18:27--  <SNIP> distfiles gentoo.org/ distfiles/ 86/ byacc-20210808.tgz
Resolving distfiles.gentoo.org... 89.187.187.12, 2a02:6ea0:c800::8
Connecting to distfiles.gentoo.org|89.187.187.12|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 891489 (871K) [application/x-gzip]
Saving to: ‘/var/cache/distfiles/byacc-20210808.tgz.__download__’

/var/cache/distfile 100%[===================>] 870.59K  --.-KB/s    in 0.1s    

2021-11-19 20:18:27 (6.91 MB/s) - ‘/var/cache/distfiles/byacc-20210808.tgz.__download__’ saved [891489/891489]

!!! Fetched file: byacc-20210808.tgz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      891489
!!! Expected: 895366
Refetching... File renamed to '/var/cache/distfiles/byacc-20210808.tgz._checksum_failure_.g_1eryac'

>>> Downloading '<SNIP> invisible-mirror.net/ archives/ byacc/ byacc-20210808.tgz'
--2021-11-19 20:18:28--  https invisible-mirror net/ archives/ byacc/ byacc-20210808.tgz
Resolving invisible-mirror.net... 160.153.42.69
Connecting to invisible-mirror.net|160.153.42.69|:443... connected.
  request sent, awaiting response... 200 OK
Length: 891489 (871K) [application/x-tar]
Saving to: ‘/var/cache/distfiles/byacc-20210808.tgz.__download__’

/var/cache/distfile 100%[===================>] 870.59K  4.41MB/s    in 0.2s    

2021-11-19 20:18:28 (4.41 MB/s) - ‘/var/cache/distfiles/byacc-20210808.tgz.__download__’ saved [891489/891489]

!!! Fetched file: byacc-20210808.tgz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      891489
!!! Expected: 895366
Refetching... File renamed to '/var/cache/distfiles/byacc-20210808.tgz._checksum_failure_.g_1eryac'

!!! Couldn't download 'byacc-20210808.tgz'. Aborting.
 * Fetch failed for 'dev-util/byacc-20210808', Log file:
 *  '/var/tmp/portage/dev-util/byacc-20210808/temp/build.log'
System /var/tmp/portage/dev-util/byacc-20210808/temp #
=========================================================
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-20 06:49:29 UTC
Thanks, I'll reopen the original one I guess, not sure why this keeps happening.

Please note that you should make sure you have a valid GENTOO_MIRRORS value: https://bugs.gentoo.org/820167#c4

*** This bug has been marked as a duplicate of bug 820167 ***
Comment 2 Larry the Git Cow gentoo-dev 2021-11-20 06:53:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73fa675629b4649d694a167b0df8ce3e2f2cce6e

commit 73fa675629b4649d694a167b0df8ce3e2f2cce6e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-20 06:52:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-20 06:52:55 +0000

    dev-util/byacc: update SRC_URI (use upstream FTP)
    
    Hopefully this is the end of it. Fetched directly, I get
    the same checksum as the one we originally added.
    
    Closes: https://bugs.gentoo.org/825090
    Closes: https://bugs.gentoo.org/820167
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/byacc/byacc-20210808.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Comment 3 Mike Gilbert gentoo-dev 2021-11-20 14:52:08 UTC
I am guessing you have not run emerge --sync since the Manifest was updated on November 7.