Bug 254972

Summary: games/uqm - uqm-remix-disc4 checksum needs update in distfile
Product: Ports & Packages Reporter: tigersharke
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me CC: mail
Priority: --- Flags: mail: maintainer-feedback+
mail: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   

Description tigersharke 2021-04-11 06:28:53 UTC
===> Fetching all distfiles required by uqm-0.7.0_5 for building
===>  Extracting for uqm-0.7.0_5
=> SHA256 Checksum OK for uqm-0.7.0-source.tgz.
=> SHA256 Checksum OK for uqm-0.7.0-content.uqm.
=> SHA256 Checksum OK for uqm-0.7.0-3domusic.uqm.
=> SHA256 Checksum OK for uqm-0.7.0-voice.uqm.
=> SHA256 Checksum OK for uqm-remix-disc1.uqm.
=> SHA256 Checksum OK for uqm-remix-disc2.uqm.
=> SHA256 Checksum OK for uqm-remix-disc3.uqm.
=> SHA256 Checksum mismatch for uqm-remix-disc4.uqm.

The file is available and I did obtain it by ignoring the checksum (rename or remove distinfo file).

Although during the failure cycle caused by fetch trying to verify the checksum I noticed a bit of variation in file sizes for it from the various download sites.
Comment 1 Benjamin Lutz 2021-04-11 13:12:34 UTC
Thank you for your report. Unfortunately, I cannot reproduce this problem, the SHA256 checksum came out to what's in the distinfo after multiple separate downloads of uqm-remix-disc4.uqm. 

The only mirror that Sourceforge offers me for this file is kumisystems.dl.sourceforge.net. If there are other mirrors and they do host a different file, this would indicate a problem at SF. Can you tell me which SF mirror you used that resulted in a different file?

For now I cannot do anything here; if I don't get to see the new file, I couldn't update the SHA256 checksum even if I thought that was the right thing to do. However, thanks to this bug report, I noticed that after many years there's a new release of this game available (0.8.0) so I'm going to revisit this port soon.

Note as well that the uqm-remix-disc4.uqm is optional and the game can be played without it, so the simplest workaround might be to simply deselect it in the build configuration dialog (make config).
Comment 2 tigersharke 2021-04-11 14:10:37 UTC
(In reply to Benjamin Lutz from comment #1)

It may be some oddness with sourceforge though why only the one file. Below is my fetch attempt results:

# make fetch
===>  License GPLv2 accepted by the user
===>   uqm-0.7.0_5 depends on file: /usr/local/sbin/pkg - found
=> uqm-remix-disc4.uqm doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://downloads.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://downloads.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 215901
=> Attempting to fetch https://excellmedia.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://excellmedia.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 204579
=> Attempting to fetch https://freefr.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://freefr.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: Operation timed out
=> Attempting to fetch https://jaist.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://jaist.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 217430
=> Attempting to fetch https://nchc.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://nchc.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 214732
=> Attempting to fetch https://netcologne.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://netcologne.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 206204
=> Attempting to fetch https://netix.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://netix.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 214338
=> Attempting to fetch https://superb-dca2.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://superb-dca2.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: Operation timed out
=> Attempting to fetch https://superb-sea2.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://superb-sea2.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: Operation timed out
=> Attempting to fetch https://ufpr.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://ufpr.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 208464
=> Attempting to fetch https://vorboss.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: https://vorboss.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 214647
=> Attempting to fetch http://downloads.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://downloads.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 214552
=> Attempting to fetch http://excellmedia.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://excellmedia.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 204648
=> Attempting to fetch http://freefr.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://freefr.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 217249
=> Attempting to fetch http://jaist.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://jaist.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 214692
=> Attempting to fetch http://nchc.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://nchc.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 214525
=> Attempting to fetch http://netcologne.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://netcologne.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 208586
=> Attempting to fetch http://netix.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://netix.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 204645
=> Attempting to fetch http://superb-dca2.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://superb-dca2.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: Operation timed out
=> Attempting to fetch http://superb-sea2.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://superb-sea2.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: Operation timed out
=> Attempting to fetch http://ufpr.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://ufpr.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 217541
=> Attempting to fetch http://vorboss.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm
fetch: http://vorboss.dl.sourceforge.net/project/sc2/UQM%20Remix%20Packs/UQM%20Remix%20Pack%204/uqm-remix-disc4.uqm: size mismatch: expected 86545760, actual 215914
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/uqm-remix-disc4.uqm
fetch: http://distcache.FreeBSD.org/ports-distfiles/uqm-remix-disc4.uqm: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop.
make: stopped in /usr/ports/games/uqm

-- 
I realized the option change would solve it, as would ignoring the distfile and accepting what is fetched without verification.  Good to hear of a new version, I look forward to it.  Thank you for your time and efforts!
Comment 3 Benjamin Lutz 2021-04-11 21:28:06 UTC
Thank you for the additional information. It's very clear now that something goes wrong with the download. I don't know why the download is aborted each time after about 0.2 MiB when the file is 83 MiB, or why it only happens to you with this one and not the other files, but it's most likely an issue at Sourceforge, nothing I have control over. They'll most likely fix it in their own time. You could report the issue to them; I don't want to do it myself, since I can't reproduce it and thus can't tell whether it's fixed.

It's possible (but unlikely imo) that the problem is on your side, e.g. a virus scanner in a proxy that gives a false positive and aborts the download, something like that. 

Dear Comitter: I suggest closing this bug as invalid. While the issue described does exist, it's for Sourceforge to fix, not us.