Opened 9 years ago

Closed 9 years ago

#49020 closed defect (fixed)

cctools @870: Checksum (rmd160) mismatch for cctools-870.tar.gz

Reported by: john.qingwang@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: Hot-Wire@…, captainproton1971 (Captain Proton), bukczynski@…, jenstroeger (Jens Troeger), ballapete (Peter "Pete" Dyballa), schnide (Joe Schnide), bmayer@…
Port: cctools

Description

The error occurs after migration from MacOS X Yosemite to MacOS X El Captain. sudo port clean cctools was attempted but failed to resolve the problem.

Attachments (1)

cctools-870.tar.gz (1.6 MB) - added by Hot-Wire@… 9 years ago.
earlier tarball

Download all attachments as: .zip

Change History (28)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to jeremyhu@…
Port: cctools added; cctools-870 removed
Summary: Checksum (rmd160) mismatch for cctools-870.tar.gzcctools @870: Checksum (rmd160) mismatch for cctools-870.tar.gz

Did you read wiki:FAQ#checksums and attempt to figure out which situation applies in your case?

comment:2 in reply to:  1 Changed 9 years ago by john.qingwang@…

Replying to ryandesign@…:

Did you read wiki:FAQ#checksums and attempt to figure out which situation applies in your case?

Thanks for the reply. I did try all the suggestions but the second one. If I managed to get the complete file of cctools from a machine with MacOS Yosemite, how could I install it?

Thank you!

comment:3 Changed 9 years ago by john.qingwang@…

It turns out to be that port is looking for cctools-870_0+llvm35.darwin_15.x86_64.tbz2 which seems to be unavailable yet.

comment:4 Changed 9 years ago by Hot-Wire@…

I'm having the same issue after the El Capitan upgrade, during the mass reinstall required by MacPorts migration. I also had this issue prior to the upgrade, while still running Yosemite, but decided to deal with it post-upgrade (since migration forces uninstallation anyway).

$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.3.3 installed,
MacPorts base version 2.3.3 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
$ sudo port clean --dist cctools
--->  Cleaning cctools
$ sudo port install cctools
--->  Computing dependencies for cctools
--->  Fetching archive for cctools
--->  Attempting to fetch cctools-870_0+llvm35.darwin_15.x86_64.tbz2 from http://packages.macports.org/cctools
--->  Attempting to fetch cctools-870_0+llvm35.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/cctools
--->  Attempting to fetch cctools-870_0+llvm35.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/cctools
--->  Fetching distfiles for cctools
--->  Attempting to fetch ld64-242.tar.gz from http://opensource.apple.com/tarballs/cctools
--->  Attempting to fetch ld64-242.tar.gz from http://opensource.apple.com/tarballs/ld64
--->  Attempting to fetch cctools-870.tar.gz from http://opensource.apple.com/tarballs/cctools
--->  Verifying checksums for cctools                                           
Error: Checksum (rmd160) mismatch for cctools-870.tar.gz
Error: Checksum (sha256) mismatch for cctools-870.tar.gz
Error: org.macports.checksum for port cctools returned: Unable to verify file checksums
$ shasum -a 256 /opt/local/var/macports/distfiles/cctools/cctools-870.tar.gz 
81a12e325255ea683447aff5f4d93f53e2498edcfdd4bb43996a21ef7f00b267  /opt/local/var/macports/distfiles/cctools/cctools-870.tar.gz
$ tar xzf /opt/local/var/macports/distfiles/cctools/cctools-870.tar.gz
$ ls cctools-870/
total 80
-rw-r--r--   1 desimone  staff  19829 Mar 19  2013 APPLE_LICENSE
-rw-r--r--   1 desimone  staff  16171 Aug 26 00:49 Makefile
-rw-r--r--   1 desimone  staff    637 Mar 19  2013 PB.project
drwxr-xr-x  18 desimone  staff    612 Sep 30 01:50 ar/
drwxr-xr-x  82 desimone  staff   2788 Sep 30 01:50 as/
drwxr-xr-x   4 desimone  staff    136 Sep 30 01:50 cbtlibs/
drwxr-xr-x   5 desimone  staff    170 Sep 30 01:50 efitools/
drwxr-xr-x  18 desimone  staff    612 Sep 30 01:50 gprof/
drwxr-xr-x  16 desimone  staff    544 Sep 30 01:50 include/
drwxr-xr-x  64 desimone  staff   2176 Sep 30 01:50 ld/
drwxr-xr-x  18 desimone  staff    612 Sep 30 01:50 libmacho/
drwxr-xr-x  41 desimone  staff   1394 Sep 30 01:50 libstuff/
drwxr-xr-x  46 desimone  staff   1564 Sep 30 01:50 man/
drwxr-xr-x  23 desimone  staff    782 Sep 30 01:50 misc/
drwxr-xr-x  34 desimone  staff   1156 Sep 30 01:50 otool/

The file does not appear to be corrupt.

I have downloaded cctools-master.zip from https://github.com/opensource-apple/cctools (the only other source for this I could find on Google that wasn't Apple's version or this bug report) and it matches Apple's version exactly.

Apple's site (http://www.opensource.apple.com/tarballs/cctools/) does not seem to provide checksums.

Not sure how to proceed. I have no reason to suspect corruption, foul play, not the OS upgrade. A stealth tarball regeneration on Apple's part seems the most likely case.

P.S. the one time I've been able to successfully install was pre-upgrade, when MacPorts found a cctools-870_0+llvm35.darwin_14.x86_64.tbz2 binary and skipped building from source. (The pre-upgrade build failure was trying to fetch cctools-870_0+llvm32.darwin_14.x86_64.tbz2 and failing. It was insisting on the llvm32 variant because that's what some prior version used and you have to manually uninstall and reinstall all dependencies to change the variant.)

Last edited 9 years ago by Hot-Wire@… (previous) (diff)

comment:5 Changed 9 years ago by Hot-Wire@…

Cc: Hot-Wire@… added

Cc Me!

Changed 9 years ago by Hot-Wire@…

Attachment: cctools-870.tar.gz added

earlier tarball

comment:6 Changed 9 years ago by Hot-Wire@…

I attached a tarball I found on another machine that was able to install cctools. I haven't had a chance to test it or diff it.

$ shasum -a 256 cctools-870.tar.gz 
b83f4b4696414b814cc1781ec4b68ff9c7bb97920a68f308351a74e75f41d961  cctools-870.tar.gz

comment:7 Changed 9 years ago by captainproton1971 (Captain Proton)

Cc: captainproton1971@… added

Cc Me!

comment:8 Changed 9 years ago by bukczynski@…

Cc: bukczynski@… added

Cc Me!

comment:9 Changed 9 years ago by Hot-Wire@…

  • Updated to MacPorts 2.3.4 via port selfupdate.
    • cctools still failed to build due to checksum error.
  • Replaced /opt/local/var/macports/distfiles/cctools/cctools-870.tar.gz with attachment noted in comment 6.
    • cctools successfully built.
  • Compared the two tarballs. Difference in size of 41 bytes.
  • Unpacked both old and new tarballs. Comparing them with diff -r detected no differences.
  • Dumping tarball directories with tar tzf and comparing with diff detected no differences.

Not sure what else to throw at this to convince folks it's a stealth change on Apple's part, and not user error or corruption. There doesn't seem to be any user-side corrective action that can be taken either, except replacing the tarball with the one above. Can you just update the port checksums to the current file?

comment:10 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I need to first make sure that these stealth updates stop happening.

comment:11 Changed 9 years ago by jenstroeger (Jens Troeger)

Cc: jens.troeger@… added

Cc Me!

comment:12 Changed 9 years ago by ballapete (Peter "Pete" Dyballa)

Cc: Peter_Dyballa@… added

Cc Me!

comment:13 in reply to:  3 ; Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to john.qingwang@…:

It turns out to be that port is looking for cctools-870_0+llvm35.darwin_15.x86_64.tbz2 which seems to be unavailable yet.

At this time, that is normal. We do not have a buildbot builder set up for El Capitan yet, so there are no binaries of any ports for darwin_15 yet. See #48609.

comment:14 Changed 9 years ago by schnide (Joe Schnide)

Cc: jschnide@… added

Cc Me!

comment:15 in reply to:  13 ; Changed 9 years ago by jenstroeger (Jens Troeger)

At this time, that is normal. We do not have a buildbot builder set up for El Capitan yet, so there are no binaries of any ports for darwin_15 yet. See #48609.

Does this mean people will be blocked until the buildbot comes alive? When will that be?

Last edited 9 years ago by jenstroeger (Jens Troeger) (previous) (diff)

comment:16 in reply to:  15 Changed 9 years ago by Hot-Wire@…

Replying to jens.troeger@…:

At this time, that is normal. We do not have a buildbot builder set up for El Capitan yet, so there are no binaries of any ports for darwin_15 yet. See #48609.

Does this mean people will be blocked until the buildbot comes alive? When will that be?

No, they'll be blocked until jeremyhu "make[s] sure that these stealth updates stop happening."

All the buildbot means is that you'll have to build ports from source instead of installing prebuilt binary packages. The buildbot is going to have the same checksum failure as we do unless they either patch in the old tarball and prevent updates to the new one, or change the checksums to match the new version. Presence or absence of the buildbot is not a factor.

comment:17 Changed 9 years ago by bmayer@…

Cc: bmayer@… added

Cc Me!

comment:18 in reply to:  17 Changed 9 years ago by bmayer@…

Replying to bmayer@…:

Cc Me!

I am also having the issue. For sure not only El Capitan as I am on 10.9.5.

comment:19 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

r140775

Hopefully this won't happen again...

comment:20 in reply to:  description ; Changed 9 years ago by essandess (Steve Smith)

cc me on 10.10.5.

port clean --dist and all the other tricks failed to resolve the issue.

comment:21 in reply to:  20 ; Changed 9 years ago by Hot-Wire@…

Replying to s.t.smith@…:

cc me on 10.10.5.

port clean --dist and all the other tricks failed to resolve the issue.

You'll be fine as soon as the fix propagates. The issue is not OS version dependent.

comment:22 Changed 9 years ago by essandess (Steve Smith)

Replying to jeremyhu@…:

r140775

Hopefully this won't happen again...

I don't believe this is fixed -- I'm seeing the exact same problem after I do this FOLLOWING your post:

sudo port -d selfupdate
sudo port clean --dist cctools
sudo port install -s cctools
sudo port clean --dist cctools
sudo port upgrade outdated

All this fails with the error:

--->  Computing dependencies for cctools
--->  Verifying checksums for cctools
Error: Checksum (rmd160) mismatch for cctools-870.tar.gz
Error: Checksum (sha256) mismatch for cctools-870.tar.gz
Error: org.macports.checksum for port cctools returned: Unable to verify file checksums

The hashes in the Portfile are:

less `port file cctools`

checksums
                        cctools-870.tar.gz \
                        rmd160  21cfe0e5f14f4a16f198a9f52ed5e133b01ae3a2 \
                        sha256  b83f4b4696414b814cc1781ec4b68ff9c7bb97920a68f308351a7

comment:23 Changed 9 years ago by essandess (Steve Smith)

Resolution: fixed
Status: closedreopened

comment:24 in reply to:  19 Changed 9 years ago by essandess (Steve Smith)

Replying to jeremyhu@…:

r140775

Hopefully this won't happen again...

The hashes in the Portfile conflict with the file available from Apple at http://opensource.apple.com/tarballs/cctools/cctools-870.tar.gz:

$ openssl rmd160 cctools-870.tar.gz 
RIPEMD160(cctools-870.tar.gz)= 1e3a2c0b8227ed1462e8097d8f99fb1af803d834
$ openssl sha256 cctools-870.tar.gz 
SHA256(cctools-870.tar.gz)= 81a12e325255ea683447aff5f4d93f53e2498edcfdd4bb43996a21ef7f00b267

comment:25 in reply to:  21 Changed 9 years ago by essandess (Steve Smith)

Replying to Hot-Wire@…:

Replying to s.t.smith@…:

cc me on 10.10.5.

port clean --dist and all the other tricks failed to resolve the issue.

You'll be fine as soon as the fix propagates. The issue is not OS version dependent.

Oh there it is. Thank you! Fixed for me now.

comment:26 Changed 9 years ago by john.qingwang@…

The issue seems to be resolved for me by following

sudo port -d selfupdate
sudo port clean --dist cctools
sudo port install cctools

Thank you!

Last edited 9 years ago by john.qingwang@… (previous) (diff)

comment:27 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.