Bug 277881 - cat/opencascade: Fetched file size mismatch (expected 48428333, actual 48428565)
Summary: cat/opencascade: Fetched file size mismatch (expected 48428333, actual 48428565)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-22 08:50 UTC by Sergey Kiselev
Modified: 2024-03-22 11:30 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Kiselev 2024-03-22 08:50:16 UTC
13.2-STABLE live system using ports

# make

Warning: to build OpenCascade, you should have at least
2.6 Gb of free disk space in build area!

===>  License OCTPL accepted by the user
===>   opencascade-7.8.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by opencascade-7.8.0 for building
===>  Extracting for opencascade-7.8.0
=> SHA256 Checksum mismatch for Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz.
===>  Refetch for 1 more times files:  Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz 

Warning: to build OpenCascade, you should have at least
2.6 Gb of free disk space in build area!

===>  License OCTPL accepted by the user
===>   opencascade-7.8.0 depends on file: /usr/local/sbin/pkg - found
=> Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://codeload.github.com/Open-Cascade-SAS/OCCT/tar.gz/V7_8_0?dummy=/Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz
fetch: https://codeload.github.com/Open-Cascade-SAS/OCCT/tar.gz/V7_8_0?dummy=/Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/Open-Cascade-SAS/OCCT/tar.gz/V7_8_0?dummy=/Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz: size of remote file is not known
Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz                 46 MB  648 kBps 01m13s
=> Fetched file size mismatch (expected 48428333, actual 48428565)
=> Trying next site
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/Open-Cascade-SAS-OCCT-V7_8_0_GH0.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/cad/opencascade
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/cad/opencascade
*** Error code 1

Stop.
make: stopped in /usr/ports/cad/opencascade

I downloaded the snapshot from https://git.dev.opencascade.org/gitweb/?p=occt.git;a=commit;h=656b0d217fcc3f6611dfabc0206bd2d967ed5265 to check the file size. The size is different from the same snapshot from GitHub and from the size in distinfo
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2024-03-22 09:00:13 UTC

*** This bug has been marked as a duplicate of bug 277874 ***
Comment 2 Sergey Kiselev 2024-03-22 09:13:09 UTC
(In reply to Thierry Thomas from comment #1)
Not fixed.

I updated the ports to HEAD and get the error again
Comment 3 Thierry Thomas freebsd_committer freebsd_triage 2024-03-22 09:56:00 UTC
Thanks for,the notification!

It seems that they reworked the tarball to integrate several patches without bumping revision. I shall fix it ASAP.
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-03-22 10:59:33 UTC
(In reply to Thierry Thomas from comment #3)
> It seems that they reworked the tarball to integrate several patches without bumping revision.

Ye, patched not apply:

===>  Applying FreeBSD patches for opencascade-7.8.0 from /usr/ports/cad/opencascade/files
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to adm/UDLIST.rej
===>  FAILED Applying FreeBSD patch-adm_UDLIST
===> Cleanly applied FreeBSD patch(es)  patch-CMakeLists.txt
===> FAILED to apply cleanly FreeBSD patch(es)  patch-adm_UDLIST
*** Error code 1
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-03-22 11:30:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bbb76dace979e046a3ac1cbcf1ed51595f6d2aea

commit bbb76dace979e046a3ac1cbcf1ed51595f6d2aea
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2024-03-22 11:21:35 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-03-22 11:21:35 +0000

    cad/opencascade: the initial tarball has been reworked

    Upstream reworked the tarball to integrate several patches without bumping
    revision.

    PR:             277881
    Reported by:    Sergey Kiselev

 cad/opencascade/Makefile                           |  2 ++
 cad/opencascade/distinfo                           | 10 +++---
 cad/opencascade/files/patch-adm_UDLIST (gone)      | 10 ------
 ...-src_Message_Message__AttributeMeter.cxx (gone) | 10 ------
 ...-src_NCollection_NCollection__Array1.hxx (gone) | 39 ----------------------
 ...Collection_NCollection__DynamicArray.hxx (gone) | 29 ----------------
 ...rc_NCollection_NCollection__Iterator.hxx (gone) | 19 -----------
 7 files changed, 7 insertions(+), 112 deletions(-)
Comment 6 Thierry Thomas freebsd_committer freebsd_triage 2024-03-22 11:30:41 UTC
Should be fixed, thanks!