Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#13906 closed defect (fixed)

Remote timestamps corrupting distfiles

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc: afb@…
Port:

Description

$ sudo port install file
Password:
--->  Fetching file
--->  Attempting to fetch file-4.23.tar.gz from ftp://ftp.fu-berlin.de/unix/tools/file/
--->  Verifying checksum(s) for file
Error: Checksum (md5) mismatch for file-4.23.tar.gz
Error: Checksum (sha1) mismatch for file-4.23.tar.gz
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.
$

The problem is that the first download location, ftp.fu-berlin.de, is malfunctioning, and is including a header line "Last-Modified: Fri, 28 Dec 2007 19:37:24 GMT" at the beginning of the downloaded file's contents, thus corrupting it and changing its checksum.

The other two listed download locations, ftp.astron.com and ftp.gw.com, are delivering the correct file.

Change History (7)

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

Component: portsbase
Milestone: Port BugsMacPorts base bugs

I removed the ftp.fu-berlin.de mirror in r32797 but put it back in r32798 because I was mistaken. It doesn't matter which of the three mirrors is used. The file is fine if I download it via Camino, but is corrupted by the addition of the header line if fetched via MacPorts. I don't yet know why.

comment:2 Changed 17 years ago by afb@…

If running MacPorts from trunk, the most likely reason is related to r32801 ?

comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: afb@… added
Resolution: fixed
Status: newclosed

Anders found that this is a bug in curl 7.13.1, which is unfortunately the version of curl present on Mac OS X 10.4.11. r32722 caused the problem, and r32801 fixed it. See #12629.

comment:4 Changed 17 years ago by afb@…

hehe, Anders sorta introduced the bug himself when commiting that feature... :-)

But I guess it needs another pass at the drawing board, to work around Apple bugs.

comment:5 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Summary: file 4.23_0 checksum mismatchRemote timestamps corrupting distfiles

comment:6 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:7 Changed 15 years ago by jmroot (Joshua Root)

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