Opened 15 months ago

Closed 15 months ago

Last modified 14 months ago

#66805 closed defect (fixed)

rav1e @0.6.3: Checksum mismatch

Reported by: amadeus24 Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: 3add3287 (3add3287), adamaviv (Adam J. Aviv)
Port: rav1e

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Running macOS 13.2 Ventura and I has updated macports today on a arm MacBook.
During update I got the message:

Error: Checksum (rmd160) mismatch for rav1e-0.6.3.tar.gz
Error: Checksum (sha256) mismatch for rav1e-0.6.3.tar.gz
Error: Checksum (size) mismatch for rav1e-0.6.3.tar.gz
Error: Failed to checksum rav1e: Unable to verify file checksums

Had a look at:
https://packages.macports.org/rav1e
https://fra.de.packages.macports.org/rav1e
https://nue.de.packages.macports.org/rav1e
But there was no "rav1e-0.6.3_0.darwin_22.arm64.tbz2"

Attachments (1)

main.log (557.5 KB) - added by amadeus24 15 months ago.
main.log

Download all attachments as: .zip

Change History (18)

comment:1 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: rav1e could not be downloaded removed
Summary: rav1e current release (rav1e-0.6.3_0.darwin_22.arm64.tbz2) is not availablerav1e @0.6.3: Checksum mismatch

No packages are available for any port for darwin_22.arm64 yet. See #66637. That should not be a problem. When a package is not available, MacPorts builds from source. That's what's failing on your system because the rav1e-0.6.3.tar.gz distfile you downloaded has different checksums than we expected. Where did your rav1e-0.6.3.tar.gz distfile come from? If your log doesn't show and you don't remember, sudo port clean --all rav1e and try again, and attach the main.log if it still fails.

We've been getting a lot of checksum mismatch bugs reported lately but we haven't been able to reproduce them. (I cannot reproduce this problem with rav1e.) We need to know where the bad files are coming from (which a clean log should show) to be able to proceed with a fix.

Changed 15 months ago by amadeus24

Attachment: main.log added

main.log

comment:2 Changed 15 months ago by amadeus24

Thanks for this very quick answer. Did what you suggest, but achieving same result. rav1e-0.6.3.tar.gz was downloaded from https://codeload.github.com/xiph/rav1e/legacy.tar.gz/v0.6.3?dummy=

comment:3 Changed 15 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I am not sure why these files are different.
As a temporary workaround, you could try
sudo port clean --all rav1e && sudo port install rav1e master_sites=macports_distfiles

comment:4 in reply to:  1 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

(I cannot reproduce this problem with rav1e.)

I could not reproduce it 9 hours ago, but I can now; either I tested incorrectly 9 hours ago or something changed on GitHub since then. (Maybe some cached file expired on the GitHub server so now I'm seeing the new one.) The two gz files differ but the tar files inside are identical, as are of course their contents.

comment:5 Changed 15 months ago by amadeus24

Thanks! sudo port clean --all rav1e && sudo port install rav1e master_sites=macports_distfiles did the trick. Thanks a lot!

comment:6 Changed 15 months ago by amadeus24

Also downloaded the *.gz files, unpack them and packaging them again. One of the downloaded *tar.gz unpacked keep the same size after unpacking and packing again, the other one changed its size after unpacking it and packing it again. Little bit strange. Sorry, but I can't recall which one I have downloaded from which source. Unpacked, both tar-files had same size and same cksum.

comment:7 in reply to:  6 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to amadeus24:

Also downloaded the *.gz files, unpack them and packaging them again. One of the downloaded *tar.gz unpacked keep the same size after unpacking and packing again, the other one changed its size after unpacking it and packing it again. Little bit strange. Sorry, but I can't recall which one I have downloaded from which source. Unpacked, both tar-files had same size and same cksum.

What command did you use to to recompress? I'm wondering specifically about what flags you supplied to indicate the compression level (such as, in the case of gz, the -9 flag), as well as the version of the compression tool and how it was installed.

comment:8 Changed 15 months ago by amadeus24

Didn't use any flag, simply /usr/bin/gzip.

comment:9 Changed 15 months ago by 3add3287 (3add3287)

Cc: 3add3287 added

comment:10 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

This appears to have been a problem on GitHub that was resolved:

January 30 18:35 UTC (lasting 7 hours)

We upgraded our production Git binary with a recent version from upstream. The updates included a change to use an internal implementation of gzip when generating archives. This resulted in subtle changes to the contents of the “Download Source” links served by GitHub, leading to checksum mismatches. No content was changed.

After becoming aware of the impact to many communities, we rolled back the compression change to restore the previous behavior.

Similar to the above, we are still investigating the contributing factors of this incident, and will provide a more thorough update in next month’s report.

comment:11 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

In fact the problem is that we updated rav1e to 0.6.3 during the timeframe that GitHub was using the incorrect compression method. Now that GitHub has fixed their servers to use the old compression method, users who happen to download this distfile from GitHub will get a checksum mismatch while those who download from our mirror won't.

Setting master_sites macports_distfiles in the port until the next version of rav1e is released is probably the simplest solution here.

comment:12 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: adamaviv added

Has duplicate #66870.

comment:13 in reply to:  5 Changed 15 months ago by adamaviv (Adam J. Aviv)

Replying to amadeus24:

Thanks! sudo port clean --all rav1e && sudo port install rav1e master_sites=macports_distfiles did the trick. Thanks a lot!

Can confirm that this worked for me too.

comment:14 Changed 15 months ago by jmroot (Joshua Root)

Cc: MarcusCalhoun-Lopez removed
Owner: set to MarcusCalhoun-Lopez
Status: reopenedassigned

comment:15 Changed 15 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In 000ad4c01ff4b720ef4da04738cb73a27febcab2/macports-ports (master):

rav1e: temporarily fetch from macports_distfiles

Fixes #66805

comment:16 Changed 15 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Has duplicate #66902.

comment:17 Changed 14 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Has duplicate #66972.

Note: See TracTickets for help on using tickets.