Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931862 - dev-vcs/fossil-2.24 VERIFY FAILED: Filesize does not match recorded size
Summary: dev-vcs/fossil-2.24 VERIFY FAILED: 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: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
: 931881 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-05-13 10:03 UTC by Brett Sheffield
Modified: 2024-05-15 03:53 UTC (History)
3 users (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 Brett Sheffield 2024-05-13 10:03:30 UTC
dev-vcs/fossil-2.24 fails to emerge.

File size listed in Manifest (6730954) does not match downloaded file size (6904302)

Reproducible: Always

Steps to Reproduce:
1.sudo emerge -av dev-vcs/fossil
Actual Results:  
$ sudo emerge -av dev-vcs/fossil

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.80 s (backtrack: 0/20).

[ebuild     U  ] dev-vcs/fossil-2.24::gentoo [2.22::gentoo] USE="ssl -debug -fusefs -json -static -system-sqlite -tcl -tcl-private-stubs -tcl-stubs -test -th1-docs -th1-hooks" 6,574 KiB

Total: 1 package (1 upgrade), Size of downloads: 6,574 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-vcs/fossil-2.24::gentoo
>>> Downloading 'http://mirror.bytemark.co.uk/gentoo/distfiles/96/fossil-src-2.24.tar.gz'
--2024-05-13 11:58:05--  http://mirror.bytemark.co.uk/gentoo/distfiles/96/fossil-src-2.24.tar.gz
Resolving mirror.bytemark.co.uk... 80.68.83.150, 212.110.163.13, 2001:41c8:20:5fc::13, ...
Connecting to mirror.bytemark.co.uk|80.68.83.150|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-05-13 11:58:05 ERROR 404: Not Found.

>>> Downloading 'rsync://mirror.bytemark.co.uk/gentoo/distfiles/96/fossil-src-2.24.tar.gz'

 -========== B Y T E M A R K   H O S T I N G   M I R R O R  ==========-

rsync: [sender] link_stat "/distfiles/96/fossil-src-2.24.tar.gz" (in gentoo) failed: No such file or directory (2)

sent 8 bytes  received 125 bytes  88.67 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1861) [Receiver=3.2.7]
>>> Downloading 'https://fossil-scm.org/home/tarball/8be0372c1051043761320c8ea8669c3cf320c406e5fe18ad36b7be5f844ca73b/fossil-src-2.24.tar.gz'
--2024-05-13 11:58:06--  https://fossil-scm.org/home/tarball/8be0372c1051043761320c8ea8669c3cf320c406e5fe18ad36b7be5f844ca73b/fossil-src-2.24.tar.gz
Resolving fossil-scm.org... 45.33.6.223, 2600:3c00::f03c:91ff:fe96:b959
Connecting to fossil-scm.org|45.33.6.223|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6904302 (6.6M) [application/x-compressed]
Saving to: ‘/var/cache/distfiles/fossil-src-2.24.tar.gz.__download__’

/var/cache/distfile 100%[===================>]   6.58M  1.98MB/s    in 3.8s    

2024-05-13 11:58:11 (1.74 MB/s) - ‘/var/cache/distfiles/fossil-src-2.24.tar.gz.__download__’ saved [6904302/6904302]

!!! Fetched file: fossil-src-2.24.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      6904302
!!! Expected: 6730954
Refetching... File renamed to '/var/cache/distfiles/fossil-src-2.24.tar.gz._checksum_failure_.33byneop'

!!! Couldn't download 'fossil-src-2.24.tar.gz'. Aborting.

>>> Failed to emerge dev-vcs/fossil-2.24, Log file:

>>>  '/var/tmp/portage/dev-vcs/fossil-2.24/temp/build.log'

Expected Results:  
fossil installed/upgraded.

Manifest shows file as 6730954 bytes. Actual download from 

https://fossil-scm.org/home/tarball/8be0372c1051043761320c8ea8669c3cf320c406e5fe18ad36b7be5f844ca73b/fossil-src-2.24.tar.gz

is 6904302 bytes.

DIST fossil-src-2.24.tar.gz 6730954 BLAKE2B fd83893c603181643dd6706a3bde025dd92f7be031f366604e6441aff453569b298d36f5bac4caafac218890b02834d100654cc181669017fac91743930d99e3 SHA512 bec6f3feeafa86727ce44b1f7ecd9bb687ae76885bfd1bad01500737dd1a6aaa4fb1388b5499b953853375c39e16dcf57b5dbd37a34e187a5b53814ca1894bf8
Comment 1 Toralf Förster gentoo-dev 2024-05-13 18:08:12 UTC
*** Bug 931881 has been marked as a duplicate of this bug. ***
Comment 2 Aaron W. Swenson gentoo-dev 2024-05-14 22:03:06 UTC
I do apologize for the inconvenience. There are actually a few errors I made while starving myself yesterday.

Upstream's distribution strategy for the tarball doesn't make it apparent when the SRC_URI is wrong. Everything hinges on the tag, and if that isn't updated before running the manifest, the wrong fingerprint will be generated and kept without more work. Clearly, I did this in the wrong order.

This also explains the challenges I had fixing some of the tests.

I'll be releasing a -r1 shortly.
Comment 3 Larry the Git Cow gentoo-dev 2024-05-15 03:53:53 UTC
The bug has been closed via the following commit(s):

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

commit b83b55c6eda116097aa380ede69db8417413f98b
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2024-05-15 03:43:51 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2024-05-15 03:43:51 +0000

    dev-vcs/fossil: Fix incorrect checksum and tests
    
    Tag number wasn't changed before generating manifest. Correct
    file/release now fetched and correct checksum generated.
    
    No longer a straight to stable ebuild, either.
    
    New depend on dev-tcltk/tcllib for JSON tests. If the package is
    missing, as it currently will be on riscv architectures, the tests are
    nonfatally skipped.
    
    Several more test patches included from upstream to fix tests that
    didn't work in the wider world.
    
    Now installs a man page. Thanks to Bernd Feige <Bernd.Feige@gmx.net> for
    this addition.
    
    Closes: https://bugs.gentoo.org/931862
    Closes: https://bugs.gentoo.org/923783
    Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>

 dev-vcs/fossil/Manifest                            |   2 +-
 ...il-2.24-disable-utf8-tests-1179-1586-1587.patch | 119 +++++++++++++++++++
 .../fossil-2.24-fix-json-test-content-length.patch |  18 +++
 dev-vcs/fossil/files/fossil-2.24-test-fixes.patch  | 130 ++++++++++++++-------
 .../{fossil-2.24.ebuild => fossil-2.24-r1.ebuild}  |  28 +++--
 5 files changed, 246 insertions(+), 51 deletions(-)