Opened 17 months ago

Closed 12 months ago

Last modified 12 months ago

#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 Changed 17 months ago by gplunk

I looked into this more. I first determined the directory where the distribution files are supposed to be created

port distfiles cctools

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

sudo port install cctools

and it failed:

--->  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
--->  Verifying checksums for cctools
--->  Extracting cctools
--->  Applying patches to cctools
Warning: reinplace /^COMMON_SUBDIRS/s/ ld / / didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-949.0.1/Makefile
Warning: reinplace s:"llvm-mc":"llvm-mc-mp-10": didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-949.0.1/as/driver.c
--->  Configuring cctools
--->  Building cctools
Error: Failed to build cctools: command execution failed 
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
Last edited 17 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 17 months ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to jeremyhu
Status: newassigned
Summary: cctools checksum failcctools @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 in reply to:  1 Changed 17 months 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 17 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 16 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:7 Changed 16 months ago by michaelld (Michael Dickens)

FYI I think the PR ^^^ is ready to go ... please test / verify

Last edited 14 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:8 Changed 12 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 12 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In bfe5a3572f3533857eef562267d3f531e78489f2/macports-ports (master):

cctools: fix checksum mismatch

Closes: #66436
Closes: #66181

comment:10 Changed 12 months ago by catap (Kirill A. Korinsky)

In a079d1b3fb82435bc1251074178e66966de9c909/macports-ports (master):

cctools: move to github

+ stealth update for changed distfile
+ tweak patches to apply cleanly

Closes: #66436

Co-Authored-By: Michael Dickens <michaelld@…>

Note: See TracTickets for help on using tickets.