[MacPorts] #67734: R-baygel @0.2.0: checksum mismatch
MacPorts
noreply at macports.org
Tue Jul 11 08:22:44 UTC 2023
#67734: R-baygel @0.2.0: checksum mismatch
-------------------------+--------------------------
Reporter: ryandesign | Owner: barracuda156
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: R-baygel |
-------------------------+--------------------------
Comment (by ryandesign):
All ports using the github portgroup should specify `github.tarball_from`.
Not doing so deprecated and I will modify the github portgroup to print a
warning for this soon.
I infer from the fact that the URL contains "legacy.tar.gz" that GitHub
considers this method old and I suppose they could deprecate and remove it
eventually so it would be wise to remove our dependence on it. Its
replacement, the "archive" URLs, have been available for many years.
"Archive" URLs have the added advantage that you don't get checksum
mismatches if the project is transferred to a different owner account,
which turns out happens rather frequently.
For any ports hosted at GitHub where the project offers manually-prepared
tarballs, those should be used by specifying `github.tarball_from
releases` in the Portfile. This is not something the R or github
portgroups could automate for you since it is specific to each project
whether or not they offer this.
How about modifying the R portgroup to set `github.tarball_from archive`
when it is using GitHub, and for any existing R port using GitHub, add the
line `github.tarball_from tarball` to them so they continue to work. When
each of those ports is updated next, that line can be removed to switch it
to the new download URL.
--
Ticket URL: <https://trac.macports.org/ticket/67734#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list