#67154 closed defect (fixed)

svt-av1 @1.4.1: wrong checksum

Reported by: cgilles (HumanDynamo) Owned by: i0ntempest
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: svt-av1

Description

--->  Computing dependencies for ffmpeg
--->  Dependencies to be installed: svt-av1 x264 zimg zvbi
--->  Verifying checksums for svt-av1
Error: Checksum (rmd160) mismatch for SVT-AV1-1.4.1.tar.bz2
Error: Checksum (sha256) mismatch for SVT-AV1-1.4.1.tar.bz2
Error: Checksum (size) mismatch for SVT-AV1-1.4.1.tar.bz2
Error: Failed to checksum svt-av1: Unable to verify file checksums
Error: See /opt/digikam.org.x86_64/var/macports/logs/_opt_digikam.org.x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port ffmpeg failed

Change History (6)

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to i0ntempest
Port: svt-av1 added
Status: newassigned
Summary: wrong checksumsvt-av1 @1.4.1: wrong checksum
% sudo port clean --all svt-av1
--->  Cleaning svt-av1
% sudo port fetch svt-av1      
--->  Fetching distfiles for svt-av1
--->  Attempting to fetch SVT-AV1-1.4.1.tar.bz2 from https://distfiles.macports.org/svt-av1
% sudo port checksum svt-av1
--->  Verifying checksums for svt-av1
% sudo port clean --all svt-av1
--->  Cleaning svt-av1
% sudo port fetch --no-mirrors svt-av1
--->  Fetching distfiles for svt-av1
--->  Attempting to fetch SVT-AV1-1.4.1.tar.bz2 from https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v1.4.1
% sudo port checksum svt-av1          
--->  Verifying checksums for svt-av1
Error: Checksum (rmd160) mismatch for SVT-AV1-1.4.1.tar.bz2
Error: Checksum (sha256) mismatch for SVT-AV1-1.4.1.tar.bz2
Error: Checksum (size) mismatch for SVT-AV1-1.4.1.tar.bz2
Error: Failed to checksum svt-av1: Unable to verify file checksums
% diff -ru macports gitlab
Only in gitlab: SVT-AV1-018276d714ce65d9b586f6205ee016cbd8d5425d
Only in macports: SVT-AV1-v1.4.1-018276d714ce65d9b586f6205ee016cbd8d5425d
% diff -ru macports/SVT-AV1-v1.4.1-018276d714ce65d9b586f6205ee016cbd8d5425d gitlab/SVT-AV1-018276d714ce65d9b586f6205ee016cbd8d5425d 

comment:2 Changed 13 months ago by cgilles (HumanDynamo)

I tried again today to install the svt-av1 port Without success and the same error. The log file is listed below. Sounds like the remote tarball is not the expected one.

cat /opt/digikam.org.x86_64/var/macports/logs/_opt_digikam.org.x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/main.log
version:1
:debug:clean Starting logging for svt-av1 @1.4.1_0
:debug:sysinfo macOS 12.6.3 (darwin/21.6.0) arch i386
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode 13.4.1, CLT 14.2.0.0.1.1668646533
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.15
:msg:clean --->  Computing dependencies for svt-av1:info:clean .:debug:clean svt-av1 has no conflicts
:debug:clean Searching for dependency: cmake
:debug:clean Found Dependency: receipt exists for cmake
:debug:clean Searching for dependency: yasm
:debug:clean Found Dependency: receipt exists for yasm
:debug:main Executing org.macports.main (svt-av1)
:debug:archivefetch archivefetch phase started at Tue Mar 28 14:38:19 CEST 2023
:debug:archivefetch Executing org.macports.archivefetch (svt-av1)
:debug:fetch fetch phase started at Tue Mar 28 14:38:19 CEST 2023
:notice:fetch --->  Fetching distfiles for svt-av1
:debug:fetch Executing org.macports.fetch (svt-av1)
:debug:checksum checksum phase started at Tue Mar 28 14:38:19 CEST 2023
:notice:checksum --->  Verifying checksums for svt-av1
:debug:checksum Executing org.macports.checksum (svt-av1)
:info:checksum --->  Checksumming SVT-AV1-1.4.1.tar.bz2
:debug:checksum Calculated (rmd160) is 615a67bfd060379c68fe643cdfe40368d448dec6
:error:checksum Checksum (rmd160) mismatch for SVT-AV1-1.4.1.tar.bz2
:info:checksum Portfile checksum: SVT-AV1-1.4.1.tar.bz2 rmd160 a96687f2b1dab1f94836757601d191f2626185a3
:info:checksum Distfile checksum: SVT-AV1-1.4.1.tar.bz2 rmd160 615a67bfd060379c68fe643cdfe40368d448dec6
:debug:checksum Calculated (sha256) is 2ddef549e1eaeecc1fc48f0d8332ea3545809e46509db69beb3a0a4bf19ef906
:error:checksum Checksum (sha256) mismatch for SVT-AV1-1.4.1.tar.bz2
:info:checksum Portfile checksum: SVT-AV1-1.4.1.tar.bz2 sha256 b86c066f2f9b70cc1db55c0ed0c093647833720e691a1eb55a72b2d8c8ea95e4
:info:checksum Distfile checksum: SVT-AV1-1.4.1.tar.bz2 sha256 2ddef549e1eaeecc1fc48f0d8332ea3545809e46509db69beb3a0a4bf19ef906
:debug:checksum Calculated (size) is 9443760
:error:checksum Checksum (size) mismatch for SVT-AV1-1.4.1.tar.bz2
:info:checksum Portfile checksum: SVT-AV1-1.4.1.tar.bz2 size 9443972
:info:checksum Distfile checksum: SVT-AV1-1.4.1.tar.bz2 size 9443760
:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  615a67bfd060379c68fe643cdfe40368d448dec6 \
:info:checksum                     sha256  2ddef549e1eaeecc1fc48f0d8332ea3545809e46509db69beb3a0a4bf19ef906 \
:info:checksum                     size    9443760
:error:checksum Failed to checksum svt-av1: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"
:error:checksum See /opt/digikam.org.x86_64/var/macports/logs/_opt_digikam.org.x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/main.log for details.
version:1
:debug:clean Starting logging for svt-av1 @1.4.1_0
:debug:sysinfo macOS 12.6.3 (darwin/21.6.0) arch i386
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode 13.4.1, CLT 14.2.0.0.1.1668646533
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.15
:msg:clean --->  Computing dependencies for svt-av1:info:clean .:debug:clean svt-av1 has no conflicts
:debug:clean Searching for dependency: cmake
:debug:clean Found Dependency: receipt exists for cmake
:debug:clean Searching for dependency: yasm
:debug:clean Found Dependency: receipt exists for yasm
:debug:main Executing org.macports.main (svt-av1)
:debug:archivefetch archivefetch phase started at Tue Mar 28 17:09:17 CEST 2023
:debug:archivefetch Executing org.macports.archivefetch (svt-av1)
:debug:archivefetch Skipping completed org.macports.fetch (svt-av1)
:debug:checksum checksum phase started at Tue Mar 28 17:09:17 CEST 2023
:notice:checksum --->  Verifying checksums for svt-av1
:debug:checksum Executing org.macports.checksum (svt-av1)
:info:checksum --->  Checksumming SVT-AV1-1.4.1.tar.bz2
:debug:checksum Calculated (rmd160) is 615a67bfd060379c68fe643cdfe40368d448dec6
:error:checksum Checksum (rmd160) mismatch for SVT-AV1-1.4.1.tar.bz2
:info:checksum Portfile checksum: SVT-AV1-1.4.1.tar.bz2 rmd160 a96687f2b1dab1f94836757601d191f2626185a3
:info:checksum Distfile checksum: SVT-AV1-1.4.1.tar.bz2 rmd160 615a67bfd060379c68fe643cdfe40368d448dec6
:debug:checksum Calculated (sha256) is 2ddef549e1eaeecc1fc48f0d8332ea3545809e46509db69beb3a0a4bf19ef906
:error:checksum Checksum (sha256) mismatch for SVT-AV1-1.4.1.tar.bz2
:info:checksum Portfile checksum: SVT-AV1-1.4.1.tar.bz2 sha256 b86c066f2f9b70cc1db55c0ed0c093647833720e691a1eb55a72b2d8c8ea95e4
:info:checksum Distfile checksum: SVT-AV1-1.4.1.tar.bz2 sha256 2ddef549e1eaeecc1fc48f0d8332ea3545809e46509db69beb3a0a4bf19ef906
:debug:checksum Calculated (size) is 9443760
:error:checksum Checksum (size) mismatch for SVT-AV1-1.4.1.tar.bz2
:info:checksum Portfile checksum: SVT-AV1-1.4.1.tar.bz2 size 9443972
:info:checksum Distfile checksum: SVT-AV1-1.4.1.tar.bz2 size 9443760
:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  615a67bfd060379c68fe643cdfe40368d448dec6 \
:info:checksum                     sha256  2ddef549e1eaeecc1fc48f0d8332ea3545809e46509db69beb3a0a4bf19ef906 \
:info:checksum                     size    9443760
:error:checksum Failed to checksum svt-av1: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"

comment:3 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Right. Some kind of stealth update has occurred, possibly due to a change in how gitlab packages automatically-generated tarballs? This is one of the reasons why software projects should provide manually-generated tarballs and ports should use those. But as far as I can tell the developers of svt-av1 have not provided this so we are at the mercy of the volatility of the automatically-generated tarballs.

comment:4 Changed 13 months ago by i0ntempest

I can't reproduce this. I added ${name}/${version}_1 and made sure the tarball is from https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v1.4.1, and all checksums seems fine.

comment:5 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

I also can't reproduce it now. Maybe there was a temporary error in how GitLab was serving the automatically-generated tarballs.

comment:6 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Yes, there was a gitlab issue, and it was corrected.

https://gitlab.com/gitlab-org/gitlab/-/issues/402616#note_1335420072

Note: See TracTickets for help on using tickets.