Bug 255423 - net/gitlab-agent 13.11.1 fails to build. Checksum error on cilium-cilium-v1.9.5_GH0.tar.gz
Summary: net/gitlab-agent 13.11.1 fails to build. Checksum error on cilium-cilium-v1.9...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Matthias Fechner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-26 15:04 UTC by lysfjord.daniel
Modified: 2021-04-27 06:24 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mfechner)


Attachments
gitlab-agent-13.11.1 build log (121.84 KB, text/plain)
2021-04-26 15:04 UTC, lysfjord.daniel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description lysfjord.daniel 2021-04-26 15:04:59 UTC
Created attachment 224447 [details]
gitlab-agent-13.11.1 build log

As title say, net/gitlab-agent fails to build due to SHA256 Checksum mismatch on cilium-cilium-v1.9.5_GH0.tar.gz (downloaded from https://codeload.github.com/cilium/cilium/tar.gz/v1.9.5?dummy=/cilium-cilium-v1.9.5_GH0.tar.gz).

SHA256 checksum from distinfo: SHA256 (cilium-cilium-v1.9.5_GH0.tar.gz) = 6fd19fc5273d0e8464bf9902c9a936b044f6f767dc728753913551d321a8c7fb

Build log attached.
Comment 1 Matthias Fechner freebsd_committer freebsd_triage 2021-04-26 15:18:22 UTC
It builds perfectly fine here:
https://pkg.fechner.net/build.html?mastername=130amd64-default&build=2021-04-23_21h07m41s

But it could be that you hit a rate limit of gihub while downloading many packages in short time frame.

If this is the case, you need a token from github and set it with before you download the distfiles:
export M2T_GITHUB=_user_:_token_
Comment 2 Matthias Fechner freebsd_committer freebsd_triage 2021-04-27 06:14:18 UTC
It seems that the files github delivers changed again.
This is not very trusty, I will update the distinfo once more.
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-04-27 06:23:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3691e1aae77dc8d6b3c65fa597ffc833cd5e2973

commit 3691e1aae77dc8d6b3c65fa597ffc833cd5e2973
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2021-04-27 06:14:54 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2021-04-27 06:22:03 +0000

    net/gitlab-agent: Update distinfo

    It seems that github again delivers different archives.
    Therefor the checksums changed.
    It is maybe required to download the files from
    github.com/.../release/...

    As reference I found many reported problems:
    https://github.com/spack/spack/issues/5411
    https://github.com/easybuilders/easybuild-easyconfigs/issues/5151
    https://github.com/libgit2/libgit2/issues/4343

    As the archives are generated on the fly, they can change at any time.
    PR:             255423
    Reported by:    lysfjord.daniel@smokepit.net, pkg-fallout

 net/gitlab-agent/distinfo | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)