Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#62435 closed defect (fixed)

sloccount @2.26: fails checksum during install

Reported by: Smattr (Matthew Fernandez) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: sloccount

Description

I think sloccount has moved:

$ sudo port install sloccount
Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Computing dependencies for sloccount
--->  Fetching archive for sloccount
--->  Attempting to fetch sloccount-2.26_0.darwin_20.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/sloccount
--->  Attempting to fetch sloccount-2.26_0.darwin_20.x86_64.tbz2 from https://kmq.jp.packages.macports.org/sloccount
--->  Attempting to fetch sloccount-2.26_0.darwin_20.x86_64.tbz2 from https://lil.fr.packages.macports.org/sloccount
--->  Fetching distfiles for sloccount
--->  Attempting to fetch sloccount-2.26.tar.gz from http://www.dwheeler.com/sloccount/
--->  Verifying checksums for sloccount
Error: Checksum (md5) mismatch for sloccount-2.26.tar.gz
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<https://trac.macports.org/wiki/MisbehavingServers>
***
The file has been moved to: /opt/local/var/macports/distfiles/sloccount/sloccount-2.26.tar.gz.html
Error: Failed to checksum sloccount: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_sloccount/sloccount/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port sloccount failed

Attachments (2)

main.log (16.8 KB) - added by Smattr (Matthew Fernandez) 4 years ago.
installation log
sloccount-2.26.tar.gz.html (20.9 KB) - added by Smattr (Matthew Fernandez) 4 years ago.
file that was downloaded

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by Smattr (Matthew Fernandez)

Attachment: main.log added

installation log

Changed 4 years ago by Smattr (Matthew Fernandez)

Attachment: sloccount-2.26.tar.gz.html added

file that was downloaded

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

Owner: set to ryandesign
Priority: LowNormal
Status: newaccepted
Summary: sloccount 2.26: fails checksum during installsloccount @2.26: fails checksum during install

It hasn't moved but the web site now requires https and the way that it is configured to redirect http to https does not preserve the path:

$ curl -I http://www.dwheeler.com/sloccount/sloccount-2.26.tar.gz
HTTP/1.1 302 Found
Server: nginx
Date: Thu, 11 Mar 2021 16:13:20 GMT
Connection: keep-alive
Location: https://dwheeler.com
X-Served-By: Namecheap URL Forward

I'll report this to the author and I'll change the port to use https.

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

Resolution: fixed
Status: acceptedclosed

In 74cccfb27e7fe50e34f068f5c4498993ab0dcd53/macports-ports (master):

sloccount: Use https homepage

Also add modeline, add revision line, and modernize checksums.

Closes: #62435

comment:3 Changed 4 years ago by Smattr (Matthew Fernandez)

Thanks for the super speedy fix!

Note: See TracTickets for help on using tickets.