Bug 180522

Summary: databases/mysql55-server downloads do not pass checksum
Product: Ports & Packages Reporter: Dave Hayes <dave>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dave Hayes 2013-07-12 22:00:00 UTC
For some reason the distinfo file was changed relative to what is out there to download. I see the commit, but the comment doesn't make sense. Is he trying to tell us we can't download a GPLv2 version? I'm sure many users are confused here (see thread in freebsd-questions). Here's what happens on a stock system:

# cd /usr/ports/databases/mysql55-server
# make checksum
===>  License GPLv2 accepted by the user
===> Fetching all distfiles required by mysql-server-5.5.32 for building
=> SHA256 Checksum mismatch for mysql-5.5.32.tar.gz.
===>  License GPLv2 accepted by the user
=> mysql-5.5.32.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://ftp.fi.muni.cz/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: Unknown FTP error
=> Attempting to fetch http://mysql.mirrors.cybercity.dk/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: http://mysql.mirrors.cybercity.dk/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: No route to host
=> Attempting to fetch ftp://ftp.fh-wolfenbuettel.de/pub/database/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://ftp.fh-wolfenbuettel.de/pub/database/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: Unknown FTP error
=> Attempting to fetch ftp://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: mysql-5.5.32.tar.gz: local file (24625029 bytes) is longer than remote file (24589274 bytes)
=> Attempting to fetch http://netmirror.org/mirror/mysql.com/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: http://netmirror.org/mirror/mysql.com/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: Not Found
=> Attempting to fetch ftp://netmirror.org/mysql.com/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://netmirror.org/mysql.com/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: Protocol error
=> Attempting to fetch http://mirrors.ntua.gr/MySQL/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: http://mirrors.ntua.gr/MySQL/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: Requested Range Not Satisfiable
=> Attempting to fetch ftp://ftp.ntua.gr/pub/databases/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: mysql-5.5.32.tar.gz: local file (24625029 bytes) is longer than remote file (24589274 bytes)
=> Attempting to fetch http://mysql.sote.hu/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: http://mysql.sote.hu/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: No address record
=> Attempting to fetch ftp://ftp.rhnet.is/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://ftp.rhnet.is/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch ftp://mirror.widexs.nl/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://mirror.widexs.nl/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: mysql-5.5.32.tar.gz: local file (24625029 bytes) is longer than remote file (24589274 bytes)
=> Attempting to fetch http://mysql.dp.ua/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: http://mysql.dp.ua/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: Not Found
=> Attempting to fetch http://mysql.mirrored.ca/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: http://mysql.mirrored.ca/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: size mismatch: expected 24589274, actual 51
=> Attempting to fetch ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: No address record
=> Attempting to fetch http://mysql.mirrors.pair.com/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: http://mysql.mirrors.pair.com/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: Requested Range Not Satisfiable
=> Attempting to fetch ftp://ftp.linorg.usp.br/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://ftp.linorg.usp.br/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: No address record
=> Attempting to fetch ftp://ftp.cbn.net.id/mirror/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://ftp.cbn.net.id/mirror/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: File unavailable (e.g., file not found, no access)
=> Attempting to fetch ftp://ftp.easynet.be/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: ftp://ftp.easynet.be/mysql/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz: Unknown FTP error
=> Attempting to fetch http://download.softagency.net/MySQL/Downloads/MySQL-5.5/mysql-5.5.32.tar.gz
fetch: mysql-5.5.32.tar.gz: local file (24625029 bytes) is longer than remote file (24589274 bytes)
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/mysql-5.5.32.tar.gz
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/mysql-5.5.32.tar.gz: size mismatch: expected 24589274, actual 24625029
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** [do-fetch] Error code 1

Fix: 

Normally I would just do make NO_CHECKSUM=1 but I don't want to advise any user to do that and I really would like to know why this was done. No response yet via direct email to maintainer.
How-To-Repeat: Try to build databases/mysql55-server
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-12 22:00:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2013-07-13 10:01:36 UTC
State Changed
From-To: open->closed

Delete the distfile and retry.