#66436 closed defect (fixed)
cctools @949.0.1_2 checksum mismatch
Reported by: | gplunk | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | cctools |
Description (last modified by jmroot (Joshua Root))
I have no clue about this. I read the FAQ about checksum errors and found nothing that helped.
sudo port install cctools ---> Computing dependencies for cctools ---> Fetching archive for cctools ---> Attempting to fetch cctools-949.0.1_2+llvm10.darwin_22.arm64.tbz2 from https://nue.de.packages.macports.org/cctools ---> Attempting to fetch cctools-949.0.1_2+llvm10.darwin_22.arm64.tbz2 from https://packages.macports.org/cctools ---> Attempting to fetch cctools-949.0.1_2+llvm10.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/cctools ---> Fetching distfiles for cctools ---> Attempting to fetch ld64-530.tar.gz from https://opensource.apple.com/tarballs/ld64 ---> Attempting to fetch cctools-949.0.1.tar.gz from https://opensource.apple.com/tarballs/cctools ---> Verifying checksums for cctools Error: Checksum (rmd160) mismatch for ld64-530.tar.gz Error: Checksum (sha256) mismatch for ld64-530.tar.gz Error: Checksum (size) mismatch for ld64-530.tar.gz Error: Checksum (rmd160) mismatch for cctools-949.0.1.tar.gz Error: Checksum (sha256) mismatch for cctools-949.0.1.tar.gz Error: Checksum (size) mismatch for cctools-949.0.1.tar.gz Error: Failed to checksum cctools: Unable to verify file checksums Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port cctools failed
Change History (10)
comment:1 follow-up: 3 Changed 2 years ago by gplunk
comment:2 Changed 2 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Owner: | set to jeremyhu |
Status: | new → assigned |
Summary: | cctools checksum fail → cctools @949.0.1_2 checksum mismatch |
https://opensource.apple.com/tarballs
is no longer serving the files; it now redirects to https://github.com/apple-oss-distributions
which doesn't have identical files, though the extracted contents are probably the same.
comment:3 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to gplunk:
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/main.log for details.
Please attach this file.
comment:4 Changed 23 months ago by michaelld (Michael Dickens)
Yes the extracted files are the same ... checksums & size are different. Once I verify build, I'll put in a PR for the move to Github
comment:5 Changed 23 months ago by esbugz
To fix the issue I not only had to change the port hashes
@ /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/cctools/Portfile
to
checksums ld64-530.tar.gz \ rmd160 57d6629f31180b53f6f6a324a28e723611bd3cfb \ sha256 a21de4c2d4cd3ebf13c887eebbafc4b58ff0ee5bb07e592ba12690fb28a9cb17 \ size 729897 \ cctools-949.0.1.tar.gz \ rmd160 54a8e318087547b827eee4e5dbb21a8f3956402f \ sha256 8b2d8dc371a57e42852fa6102efaf324ef004adf86072bf9957e2ac9005326c1 \ size 1967695
But also the folder names changed to some buggy duplicates, so had to rename these two folders, replacing the duplicate cctools-cctools-
and ld64-ld64-
with a single cctools-
and ld64-
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-cctools-949.0.1
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/ld64-ld64-530
comment:6 Changed 23 months ago by kencu (Ken)
comment:7 Changed 22 months ago by michaelld (Michael Dickens)
FYI I think the PR ^^^ is ready to go ... please test / verify
comment:8 Changed 19 months ago by spmundi
I today (2023-04-28) tried to upgrade the cctools on macos 15.6 And ran into the same problems as described in the ticket. I applied the fixed to the checksums and directory names as described above and that fixed the problem.
comment:9 Changed 19 months ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I looked into this more. I first determined the directory where the distribution files are supposed to be created
This directory was in fact not even created. Is it possible that the checksum failed because it could not even download the distribution files? That is odd. So I downloaded the files manually (ProblemHotlist#fetch-failures), created the directory and put them there. Then I tried
and it failed: