#67818 closed defect (fixed)

kokkos-devel: how to prevent GitHub from breaking checksums?

Reported by: barracuda156 Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: kokkos-devel

Description

I got this again:

--->  Fetching distfiles for kokkos-devel
--->  kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz does not exist in /opt/local/var/macports/distfiles/kokkos
--->  Attempting to fetch kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz from https://github.com/kokkos/kokkos/archive/develop
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2283k    0 2283k    0     0   615k      0 --:--:--  0:00:03 --:--:-- 1202k
--->  Verifying checksums for kokkos-devel
--->  Checksumming kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz
Error: Checksum (rmd160) mismatch for kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz
Portfile checksum: kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz rmd160 226b5910edf760938a7a9827602937bcbc44a06c
Distfile checksum: kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz rmd160 1e9accbbe5b617c7ca357c576adcae4c2cf310bb
Error: Checksum (sha256) mismatch for kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz
Portfile checksum: kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz sha256 507880a3fa8eef899e63df99b1dc78a8a777dd6fcd487c146f0c7e221c7a17a1
Distfile checksum: kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz sha256 9c1250f1834a43c9ffe7438edcb621f8fe68ef5067b4846b8100017402ec0b62
Error: Checksum (size) mismatch for kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz
Portfile checksum: kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz size 2333182
Distfile checksum: kokkos-11ce288cdd44c305f7499568be889b8034115bab.tar.gz size 2338549
The correct checksum line may be:
checksums           rmd160  1e9accbbe5b617c7ca357c576adcae4c2cf310bb \
                    sha256  9c1250f1834a43c9ffe7438edcb621f8fe68ef5067b4846b8100017402ec0b62 \
                    size    2338549
Error: Failed to checksum kokkos-devel: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/main.log for details.

We already have set it to from_archive, but it seems either not to help or otherwise I did it wrong:

subport kokkos-devel {
    github.setup            kokkos kokkos 11ce288cdd44c305f7499568be889b8034115bab
    version                 2023.07.17
    conflicts               kokkos
    maintainers-append      {@barracuda156 gmail.com:vital.had}
    checksums               rmd160  226b5910edf760938a7a9827602937bcbc44a06c \
                            sha256  507880a3fa8eef899e63df99b1dc78a8a777dd6fcd487c146f0c7e221c7a17a1 \
                            size    2333182
    git.branch              develop
    github.tarball_from     archive
    # 32-bit support added in: https://github.com/kokkos/kokkos/pull/5916
}

Change History (4)

comment:1 Changed 10 months ago by reneeotten (Renee Otten)

Cc: reneeotten removed

comment:2 Changed 10 months ago by jmroot (Joshua Root)

git.branch              develop

This line is the problem; you're fetching from a branch rather than a specific commit.

comment:3 in reply to:  2 Changed 10 months ago by barracuda156

Replying to jmroot:

git.branch              develop

This line is the problem; you're fetching from a branch rather than a specific commit.

Thank you, will remove it then.

comment:4 Changed 10 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 67fae9b8775d5d1cea92aecc1ee963193f47203d/macports-ports (master):

kokkos-devel: update to 2023.07.22, fix how checksums work

Fixes: #67818

Note: See TracTickets for help on using tickets.