Bug 279017 - multimedia/x265-3.5_1 fails to build. Checksum mismatch
Summary: multimedia/x265-3.5_1 fails to build. Checksum mismatch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Daniel Engberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-16 05:19 UTC by makoto90
Modified: 2024-08-08 17:37 UTC (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description makoto90 2024-05-16 05:19:44 UTC
I am trying to update, using poudriere, in FreeBSD 14.0, but if fails, because of checksum mismatch.
=======================<phase: checksum       >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===> Fetching all distfiles required by x265-3.5_1 for building
=> SHA256 Checksum OK for x265-3.5.tar.gz.
=> SHA256 Checksum mismatch for x265-asm-warnings.patch.
===>  Refetch for 1 more times files:  x265-asm-warnings.patch 
=> x265-asm-warnings.patch doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://bitbucket.org/multicoreware/x265_git/commits/8f18e3ad32684eee95e885e718655f93951128c3/raw/x265-asm-warnings.patch
x265-asm-warnings.patch                               4526  B   56 MBps    00s
===> Fetching all distfiles required by x265-3.5_1 for building
===> Fetching all distfiles required by x265-3.5_1 for building
=> SHA256 Checksum OK for x265-3.5.tar.gz.
=> SHA256 Checksum mismatch for x265-asm-warnings.patch.
===>  Giving up on fetching files:  x265-asm-warnings.patch 
Make sure the Makefile and distinfo file (/usr/ports/multimedia/x265/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/multimedia/x265
*** Error code 1

Stop.
make: stopped in /usr/ports/multimedia/x265
=>> Cleaning up wrkdir
===>  Cleaning for x265-3.5_1
build of multimedia/x265 | x265-3.5_1 ended at Wed May 15 23:55:23 -04 2024
build time: 00:00:13
!!! build failure encountered !!!
Comment 1 Charlie Li freebsd_committer freebsd_triage 2024-05-17 01:10:08 UTC
The patch contents are identical; Bitbucket may have updated their git instance so the footer would have changed.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-05-18 05:35:27 UTC
A commit in branch main references this bug:

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

commit eceefb231d28830d4ae927f722d6a8d650f5bd92
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-05-18 05:31:59 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-05-18 05:32:03 +0000

    multimedia/x265: Refresh distfile

    Footer in patch file now reports 2.45.0 instead of 2.42.0 which causes
    a checksum mismatch

    PR:             279017
    Reported by:    makoto90@pm.me
    Approved by:    portmgr (blanket, build fix)

 multimedia/x265/distinfo | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2024-05-18 05:37:24 UTC
Fix committed, thanks for reporting!
Comment 4 Garry 2024-06-03 15:45:50 UTC
This is still a bug as of Jun 3, 2024.  Today trying to build ports with poudriere on FreeBSD 14.1.  Quarterly ports r2024Q2.  x265 fails with 
===> Fetching all distfiles required by x265-3.5_1 for building
=> SHA256 Checksum OK for x265-3.5.tar.gz.
=> SHA256 Checksum mismatch for x265-asm-warnings.patch.
===>  Giving up on fetching files:  x265-asm-warnings.patch 

I notice that latest ports has x265-3.5_2 but the commit only says that the maintainer field was changed.

It appears that there is recurring problem with the checksum on this patch.
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-06-05 13:56:12 UTC
A commit in branch 2024Q2 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=240deb00e908ef567cc319e3ddfe1ca0e2e68931

commit 240deb00e908ef567cc319e3ddfe1ca0e2e68931
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-05-18 05:31:59 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2024-06-05 13:52:46 +0000

    multimedia/x265: Refresh distfile

    Footer in patch file now reports 2.45.0 instead of 2.42.0 which causes
    a checksum mismatch

    PR:             279017
    PR:             279507
    Reported by:    makoto90@pm.me
    Approved by:    portmgr (blanket, build fix)

    (cherry picked from commit eceefb231d28830d4ae927f722d6a8d650f5bd92)

 multimedia/x265/distinfo | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 6 Mikhail T. 2024-06-06 03:10:42 UTC
Thanks, diizzy@. I didn't even know about this PR until now.

Perhaps, you can also take care of the Bug #279341, Bug #279342, and Bug #278263 for me?
Comment 7 wcarson.bugzilla 2024-08-07 17:34:48 UTC
BitBucket now has '2.45.2', breaking the checksum again.
Comment 8 Craig Leres freebsd_committer freebsd_triage 2024-08-08 17:37:22 UTC
(In reply to wcarson.bugzilla from comment #7)
PR 280674 covers this.