Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#50444 closed defect (fixed)

base: "port log" does not show full line of new checksums

Reported by: dstrubbe (David Strubbe) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.4.0
Component: base Version: 2.3.4
Keywords: Cc:
Port:

Description

When a port checksum failure occurs, the debug info states what the actual checksums are in the format for the Portfile so you can substitute them in for an update to a new version of the port. However, the output of "port log" only shows the first line of this new checksum.

Contents of port logfile:

:debug:checksum Executing org.macports.checksum (libtcd)
:info:checksum --->  Checksumming libtcd-2.2.7-r2.tar.bz2
:debug:checksum Calculated (rmd160) is 0160b9af26aa22e2cbf74fc5ae05493238cd2eb6
:error:checksum Checksum (rmd160) mismatch for libtcd-2.2.7-r2.tar.bz2
:info:checksum Portfile checksum: libtcd-2.2.7-r2.tar.bz2 rmd160 b4f4de3c11c9f9c5e5fdc2bf0b5193655634629b
:info:checksum Distfile checksum: libtcd-2.2.7-r2.tar.bz2 rmd160 0160b9af26aa22e2cbf74fc5ae05493238cd2eb6
:debug:checksum Calculated (sha256) is aff1f218b84106c572d094912cd11c828e1ea212db5661cdcc0e2e6253020a94
:error:checksum Checksum (sha256) mismatch for libtcd-2.2.7-r2.tar.bz2
:info:checksum Portfile checksum: libtcd-2.2.7-r2.tar.bz2 sha256 063362d9d3574b3d9943d9b875bf91283514fdab7aba2ae3addb811ff77ef8a9
:info:checksum Distfile checksum: libtcd-2.2.7-r2.tar.bz2 sha256 aff1f218b84106c572d094912cd11c828e1ea212db5661cdcc0e2e6253020a94
:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  0160b9af26aa22e2cbf74fc5ae05493238cd2eb6 \
                    sha256  aff1f218b84106c572d094912cd11c828e1ea212db5661cdcc0e2e6253020a94
:error:checksum org.macports.checksum for port libtcd returned: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums

Output of "port log":

DEBUG: Executing org.macports.checksum (libtcd)
--->  Checksumming libtcd-2.2.7-r2.tar.bz2
DEBUG: Calculated (rmd160) is 0160b9af26aa22e2cbf74fc5ae05493238cd2eb6
Error: Checksum (rmd160) mismatch for libtcd-2.2.7-r2.tar.bz2
Portfile checksum: libtcd-2.2.7-r2.tar.bz2 rmd160 b4f4de3c11c9f9c5e5fdc2bf0b5193655634629b
Distfile checksum: libtcd-2.2.7-r2.tar.bz2 rmd160 0160b9af26aa22e2cbf74fc5ae05493238cd2eb6
DEBUG: Calculated (sha256) is aff1f218b84106c572d094912cd11c828e1ea212db5661cdcc0e2e6253020a94
Error: Checksum (sha256) mismatch for libtcd-2.2.7-r2.tar.bz2
Portfile checksum: libtcd-2.2.7-r2.tar.bz2 sha256 063362d9d3574b3d9943d9b875bf91283514fdab7aba2ae3addb811ff77ef8a9
Distfile checksum: libtcd-2.2.7-r2.tar.bz2 sha256 aff1f218b84106c572d094912cd11c828e1ea212db5661cdcc0e2e6253020a94
The correct checksum line may be:
checksums           rmd160  0160b9af26aa22e2cbf74fc5ae05493238cd2eb6 \
Error: org.macports.checksum for port libtcd returned: Unable to verify file checksums
DEBUG: Error code: NONE
DEBUG: Backtrace: Unable to verify file checksums

Change History (5)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

If this is with 2.3.4, check trunk, as some things were changed already.

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: MacPorts Future
Resolution: fixed
Status: newclosed

This should have been fixed by r138949.

comment:3 Changed 8 years ago by raimue (Rainer Müller)

Milestone: MacPorts FutureMacPorts 2.3.5

comment:4 Changed 8 years ago by raimue (Rainer Müller)

Milestone: MacPorts 2.3.5MacPorts Future

comment:5 Changed 8 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.4.0
Note: See TracTickets for help on using tickets.