Opened 7 months ago

Closed 7 months ago

#69847 closed defect (fixed)

R-assertr @3.0.1: Unable to verify file checksums

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: barracuda156
Port: R-assertr

Description

https://build.macports.org/builders/ports-14_arm64-builder/builds/27467/steps/install-port/logs/stdio

--->  Verifying checksums for R-assertr
DEBUG: Executing org.macports.checksum (R-assertr)
--->  Checksumming assertr-3.0.1.tar.gz
DEBUG: Calculated (rmd160) is da6fb94fb95a9ff812c3c055c8850d9350471073
Error: Checksum (rmd160) mismatch for assertr-3.0.1.tar.gz
Portfile checksum: assertr-3.0.1.tar.gz rmd160 0eef91e0baa975a0ad29474d2e5cd3f596670e2c
Distfile checksum: assertr-3.0.1.tar.gz rmd160 da6fb94fb95a9ff812c3c055c8850d9350471073
DEBUG: Calculated (sha256) is ba64819fcb50d7ead674655fe64f07c74056c8832dd5192979fee50dc1977895
Error: Checksum (sha256) mismatch for assertr-3.0.1.tar.gz
Portfile checksum: assertr-3.0.1.tar.gz sha256 6b93b2b9d4c669a09e76263ea2f8302b30a51b6e6a577c30005ff38554f8c06d
Distfile checksum: assertr-3.0.1.tar.gz sha256 ba64819fcb50d7ead674655fe64f07c74056c8832dd5192979fee50dc1977895
DEBUG: Calculated (size) is 59271
Error: Checksum (size) mismatch for assertr-3.0.1.tar.gz
Portfile checksum: assertr-3.0.1.tar.gz size 59263
Distfile checksum: assertr-3.0.1.tar.gz size 59271
The correct checksum line may be:
checksums           rmd160  da6fb94fb95a9ff812c3c055c8850d9350471073 \
                    sha256  ba64819fcb50d7ead674655fe64f07c74056c8832dd5192979fee50dc1977895 \
                    size    59271
Error: Failed to checksum R-assertr: Unable to verify file checksums

Change History (2)

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

The difference between the old and new tarballs is only in the enclosing directory name. It was ropensci-assertr-9d5cea4 and is now tonyfischetti-assertr-9d5cea4. The simplest solution is to avoid this for this version by setting master_sites macports_distfiles and removing it with the next version update. This happened because the GitHub project moved from the owner ropensci to tonyfischetti and the R-assertr port is downloading using GitHub's legacy "tarball" method for downloading automatically-generated tarballs. If it had used the newer "archive" method this problem would not have occurred. The way to use this new download method is to set github.tarball_from archive, if using the github portgroup. The R-assertr port isn't using the github portgroup directly but is using the R portgroup which uses the github portgroup so I'm not sure if setting github.tarball_from archive will work, but it might. This would, of course, change the checksums again, so it's best to combine this change with a version update.

comment:2 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In aee967dbf985821620b6ecc71e085afff7ca152d/macports-ports (master):

R-assertr: Avoid stealth update

Closes: #69847

Note: See TracTickets for help on using tickets.