Opened 9 months ago

Closed 8 months ago

#69398 closed defect (fixed)

stardict @3.0.6.2: checksum mismatch due to stealth update

Reported by: pallas42 (phasmid) Owned by: alexandernx@…
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc:
Port: stardict

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When trying to install stardict, sudo port install stardict returned error message indicating several checksum mismatches.

I followed the firstaid guide in wiki:FAQ#checksums, and it went through quite a list of mirrors until a successful download and install.

Upon referencing MisbehavingServers, I believe some of the download sites are no longer available. (e.g. http://jog.id.packages.macports.org/macports/packages/stardict returned 404). Maybe it would be nice to update them in the portfile.

The relevant lines displayed in the console during the installation process are as follows:

--->  Computing dependencies for stardict
--->  Fetching archive for stardict
--->  Attempting to fetch stardict-3.0.6.2_0.darwin_19.x86_64.tbz2 from http://fco.it.packages.macports.org/stardict
--->  Attempting to fetch stardict-3.0.6.2_0.darwin_19.x86_64.tbz2 from https://cph.dk.packages.macports.org/stardict
--->  Attempting to fetch stardict-3.0.6.2_0.darwin_19.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/stardict
--->  Fetching distfiles for stardict
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://deac-fra.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://jaist.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://jztkft.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://netcologne.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://razaoinfo.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://astuteinternet.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://nchc.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://gigenet.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://svwh.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://phoenixnap.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://deac-ams.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://ufpr.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://newcontinuum.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://tenet.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://versaweb.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://liquidtelecom.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from http://excellmedia.dl.sourceforge.net/project/stardict-4/3.0.6.2
--->  Attempting to fetch stardict-3.0.6.2-github-2.tar.xz from https://mse.uk.distfiles.macports.org/stardict
--->  Verifying checksums for stardict
--->  Extracting stardict
--->  Applying patches to stardict
--->  Configuring stardict
--->  Building stardict
--->  Staging stardict into destroot
--->  Installing stardict @3.0.6.2_0
--->  Activating stardict @3.0.6.2_0
--->  Cleaning stardict
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.

Attachments (1)

main.log (293.3 KB) - added by pallas42 (phasmid) 9 months ago.

Download all attachments as: .zip

Change History (5)

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

Description: modified (diff)

A file not being available on a packages server is not a bug. See #68869. Also, packages servers are used for all ports; they are not specified in individual ports. In the case of stardict, the packages are not on the server because we believe we are not legally allowed to distribute them:

$ macports-infrastructure/jobs/port_binary_distributable.tcl -v stardict
"stardict" is not distributable because its license "gpl" conflicts with license "EPL-1" of dependency "graphviz"

A file not being available on a distfiles server can be a problem. In this case, I don't know why you were not able to fetch from SourceForge; I am able to. If you want help diagnosing why you couldn't fetch, attach your main.log. Even though you couldn't fetch from SourceForge, it wasn't a problem since we mirror distfiles, so you were able to fetch it from the mirrors, and the build succeeded. So I don't see any bug here.

Changed 9 months ago by pallas42 (phasmid)

Attachment: main.log added

comment:2 Changed 9 months ago by pallas42 (phasmid)

Thanks for explaining! Good to know it is not a but. I tried several times and now I can fetch from SourceForge, yet the checksum mismatch error persists. Attached is the main.log

comment:3 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: alexandernx@… removed
Owner: set to alexandernx@…
Status: newassigned
Summary: stardict : some of the Fetching mirrors are no longer availablestardict @3.0.6.2: checksum mismatch due to stealth update

I agree, the file now on sourceforge was stealth updated. The difference between the file we mirrored in March 2022 and the one on sourceforge now is:

--- macports/stardict-3.0.6.2/dict/debian-upstream/control	2021-02-03 04:19:53.000000000 -0600
+++ sourceforge/stardict-3.0.6.2/dict/debian-upstream/control	2022-09-20 17:30:28.000000000 -0500
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Roy Hiu-yeung Chan <hychan@glink.net.hk>
 Uploaders: Anthony Fok <foka@debian.org>, Andrew Lee <andrew@linux.org.tw>
-Build-Depends: debhelper (>= 8), python-dev, libgtk2.0-dev, libgconf2-dev, zlib1g-dev, sharutils, libxml-parser-perl, libx11-dev, libsigc++-2.0-dev, libespeak-dev, libenchant-dev, flite1-dev
+Build-Depends: debhelper (>= 8), python-dev, libgtk2.0-dev, libgconf2-dev, zlib1g-dev, sharutils, libxml-parser-perl, libx11-dev, libsigc++-2.0-dev, libespeak-dev, libenchant-2-dev, flite1-dev
 Standards-Version: 3.9.2
 
 Package: stardict
--- macports/stardict-3.0.6.2/dict/debian-upstream/rules	2021-02-03 04:19:53.000000000 -0600
+++ sourceforge/stardict-3.0.6.2/dict/debian-upstream/rules	2022-09-20 17:30:57.000000000 -0500
@@ -33,6 +33,7 @@
 	dh_testdir
 
 	# Add here commands to compile the package with gnome support
+	./autogen.sh
 	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 		--prefix=/usr \
 		--mandir=\$${prefix}/share/man \

Since the changes are only in Debian files they are of no concern to MacPorts and we could ignore it (by adding the line master_sites macports_distfiles to the Portfile). Updating the port to the latest version would also fix it.

comment:4 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 769ddff86c2c00ab568ae2a443078c82e1eab2b0/macports-ports (master):

stardict: Ignore stealth update

Closes: #69398

Note: See TracTickets for help on using tickets.