Bug 269886 - x11/grim: hash mismatch for 89e02e663fab.patch
Summary: x11/grim: hash mismatch for 89e02e663fab.patch
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: Jan Beich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-28 22:54 UTC by Dan Kotowski
Modified: 2023-02-28 23:01 UTC (History)
0 users

See Also:
jbeich: maintainer-feedback+
jbeich: merge-quarterly+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Kotowski 2023-02-28 22:54:58 UTC
Not really sure what's going on here, but maybe another weird recent git change?



# make checksum
===>  License MIT accepted by the user
===>   grim-1.4.0 depends on file: /usr/local/sbin/pkg - found
=> 89e02e663fab.patch doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://git.sr.ht/~emersion/grim/commit/89e02e663fab.patch
89e02e663fab.patch                                     761  B 8246 kBps    00s
===> Fetching all distfiles required by grim-1.4.0 for building
=> SHA256 Checksum OK for grim-v1.4.0.tar.gz.
=> SHA256 Checksum mismatch for 89e02e663fab.patch.
===>  Refetch for 1 more times files:  89e02e663fab.patch
===>  License MIT accepted by the user
===>   grim-1.4.0 depends on file: /usr/local/sbin/pkg - found
=> 89e02e663fab.patch doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://git.sr.ht/~emersion/grim/commit/89e02e663fab.patch
89e02e663fab.patch                                     761  B 9276 kBps    00s
===> Fetching all distfiles required by grim-1.4.0 for building
===>  License MIT accepted by the user
===>   grim-1.4.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by grim-1.4.0 for building
=> SHA256 Checksum OK for grim-v1.4.0.tar.gz.
=> SHA256 Checksum mismatch for 89e02e663fab.patch.
===>  Giving up on fetching files:  89e02e663fab.patch
Make sure the Makefile and distinfo file (/usr/ports/x11/grim/distinfo)
are up to date.  If you are absolutely sure you want to override this
check, type "make NO_CHECKSUM=yes [other args]".
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/x11/grim
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/grim

# shasum -a256 /usr/ports/distfiles/89e02e663fab.patch
5d0e0ac2eca89eb3b1f2723aba5d2bbe617a3dd6805ed349457b3e0f08e46bfd  /usr/ports/distfiles/89e02e663fab.patch

# grep 89e02e663fab.patch distinfo
SHA256 (89e02e663fab.patch) = 984a60fb5704bc70e477d1f1169f1c4d833cbb80c320888820449336e88fee33
SIZE (89e02e663fab.patch) = 761

# cat /usr/ports/distfiles/89e02e663fab.patch
From 89e02e663fabc534b7e7039514f60a8c5d70070d Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Wed, 9 Feb 2022 01:24:11 +0100
Subject: [PATCH] write_jpg: fix printf format specifier

---
 write_jpg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/write_jpg.c b/write_jpg.c
index 4476f5f..0cb57d3 100644
--- a/write_jpg.c
+++ b/write_jpg.c
@@ -54,7 +54,7 @@ int write_to_jpeg_stream(pixman_image_t *image, FILE *stream, int quality) {
        size_t written = fwrite(data, 1, len, stream);
        if (written < len) {
                free(data);
-               fprintf(stderr, "Failed to write jpg; only %zu of %zu bytes written\n",
+               fprintf(stderr, "Failed to write jpg; only %zu of %lu bytes written\n",
                        written, len);
                return -1;
        }
--
2.34.7
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-02-28 22:58:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1c2e1bbb39fbe4ce307ee204be28c324afcf1cf5

commit 1c2e1bbb39fbe4ce307ee204be28c324afcf1cf5
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-02-28 22:57:27 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-02-28 22:57:29 +0000

    x11/grim: unbreak fetch due to Git upgrade

    => SHA256 Checksum mismatch for 89e02e663fab.patch.

    -2.34.5
    +2.34.7

    PR:             269886
    Reported by:    Dan Kotowski

 x11/grim/distinfo | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-02-28 22:59:47 UTC
A commit in branch 2023Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=01695eff67dead827b7fdb27754ec7f64b6c9318

commit 01695eff67dead827b7fdb27754ec7f64b6c9318
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-02-28 22:57:27 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-02-28 22:58:39 +0000

    x11/grim: unbreak fetch due to Git upgrade

    => SHA256 Checksum mismatch for 89e02e663fab.patch.

    -2.34.5
    +2.34.7

    PR:             269886
    Reported by:    Dan Kotowski

    (cherry picked from commit 1c2e1bbb39fbe4ce307ee204be28c324afcf1cf5)

 x11/grim/distinfo | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Jan Beich freebsd_committer freebsd_triage 2023-02-28 23:01:32 UTC
Thanks for reporting. See also https://todo.sr.ht/~sircmpwn/git.sr.ht/368