Opened 6 years ago

Closed 6 years ago

#56796 closed defect (fixed)

amber @0.8.0: Checksum mismatch

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: conradwt (Conrad Taylor)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: amber

Description

$ sudo port checksum amber
--->  Fetching distfiles for amber
--->  Attempting to fetch amber-0.8.0.tar.gz from https://distfiles.macports.org/amber
--->  Attempting to fetch amber-0.8.0.tar.gz from https://github.com/amberframework/amber/tarball/v0.8.0
--->  Verifying checksums for amber                                                          
Error: Checksum (rmd160) mismatch for amber-0.8.0.tar.gz
Error: Checksum (sha256) mismatch for amber-0.8.0.tar.gz
Error: Checksum (size) mismatch for amber-0.8.0.tar.gz
Error: Failed to checksum amber: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_Users_rschmidt_macports_macports-ports-ryandesign-fork_www_amber/amber/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port amber failed

Note that amber's dependency, shards, also cannot be installed because its distfile does not exist; see #56772.

Attachments (1)

amber.diff (640 bytes) - added by conradwt (Conrad Taylor) 6 years ago.
diff of the non-working (i.e. Portfile.orig) and working (i.e. Portfile)

Download all attachments as: .zip

Change History (4)

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

Conrad, please respond. You are the maintainer of this port, so we look to you for the correct solution.

comment:2 Changed 6 years ago by conradwt (Conrad Taylor)

There appear to be some inconsistencies in checksums for v0.8.0. For example,

expected checksums:

openssl dgst -rmd160 ~/Downloads/amber-0.8.0.tar.gz
RIPEMD160(/Users/conradwt/Downloads/amber-0.8.0.tar.gz)= ac486ad4b362a777a8cee86a9903a17098ed8654

openssl dgst -sha256 ~/Downloads/amber-0.8.0.tar.gz
SHA256(/Users/conradwt/Downloads/amber-0.8.0.tar.gz)= d2706633fccfbce4102077b7455595d0935f5a542d85c68b744eb129edd64c6b

size    177801

actual checksums:

:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  2e0f2116965c181a77b2fd0d2c2fe33689a5d250 \
:info:checksum                     sha256  5be5118de393f6e5662ffe772a6d9771f302ba3ff6f922445167a693b5da8ea5 \
:info:checksum                     size    177856

Note: The above checksums information were obtained from the generated main.log file and I'm not 100% clear as to why these are different today. However, the following issue appears to be relevant to why users of MacPorts are facing these issues:

#56796

As a fix, I have decided to kill two birds with one stone (i.e. fix checksum issue and update to v0.9.0) with the following PR:

https://github.com/macports/macports-ports/pull/2809

When that gets approved, I recommend performing the following to install amber v0.9.0:

sudo port clean --all amber
sudo port selfupdate
sudo port install amber

Finally, I'm sorry about the delay in response to this ticket but I'll update this ticket when the above PR is approved.

Changed 6 years ago by conradwt (Conrad Taylor)

Attachment: amber.diff added

diff of the non-working (i.e. Portfile.orig) and working (i.e. Portfile)

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

This issue was resolved by merging your PR to update to 0.9.0.

Note: See TracTickets for help on using tickets.