Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#71079 closed defect (fixed)

p5.34-encode @3.210.0: incorrect distfile fetched from cpan.org.ua

Reported by: suhailskhan (Suhail Khan) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.10.2
Keywords: Cc:
Port: p5.34-encode

Description

--->  Computing dependencies for p5.34-encode.
--->  Fetching archive for p5.34-encode
--->  p5.34-encode-3.210.0_0.darwin_24.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch p5.34-encode-3.210.0_0.darwin_24.arm64.tbz2 from https://packages.macports.org/p5.34-encode
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   126    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch p5.34-encode-3.210.0_0.darwin_24.arm64.tbz2 from http://mirror.fcix.net/macports/packages/p5.34-encode
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch p5.34-encode-3.210.0_0.darwin_24.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/p5.34-encode
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Fetching distfiles for p5.34-encode
--->  Encode-3.21.tar.gz does not exist in /opt/local/var/macports/distfiles/perl5
--->  Attempting to fetch Encode-3.21.tar.gz from http://www.cpan.org.ua/modules/by-module/../../authors/id/D/DA/DANKOGAI
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0   1561      0 --:--:-- --:--:-- --:--:--  1575
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  8014    0  8014    0     0  11392      0 --:--:-- --:--:-- --:--:--     0
--->  Verifying checksums for p5.34-encode
--->  Checksumming Encode-3.21.tar.gz
Error: Checksum (rmd160) mismatch for Encode-3.21.tar.gz
Portfile checksum: Encode-3.21.tar.gz rmd160 c893de124dc04750d7618642ba199b490e8461b2
Distfile checksum: Encode-3.21.tar.gz rmd160 bb160e20996dc71576484d0a31d52fec7b8ad49e
Error: Checksum (sha256) mismatch for Encode-3.21.tar.gz
Portfile checksum: Encode-3.21.tar.gz sha256 eacf71c5eb49e0e590de797f1982d7fb95d8481e4d13c3ce79eb32ef9373b3db
Distfile checksum: Encode-3.21.tar.gz sha256 5bfb605888d322b25a3102dd4db07934da2f6167641b8450f5d08448bc2cec9d
Error: Checksum (size) mismatch for Encode-3.21.tar.gz
Portfile checksum: Encode-3.21.tar.gz size 2086738
Distfile checksum: Encode-3.21.tar.gz size 8014
***
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/perl5/Encode-3.21.tar.gz.html
Error: Failed to checksum p5.34-encode: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5-encode/p5.34-encode/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port p5.34-encode failed

Attachments (1)

main.log (16.2 KB) - added by suhailskhan (Suhail Khan) 21 months ago.

Download all attachments as: .zip

Change History (6)

Changed 21 months ago by suhailskhan (Suhail Khan)

Attachment: main.log added

comment:1 in reply to:  description Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to suhailskhan:

--->  Computing dependencies for p5.34-encode.
--->  Fetching archive for p5.34-encode
--->  p5.34-encode-3.210.0_0.darwin_24.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch p5.34-encode-3.210.0_0.darwin_24.arm64.tbz2 from https://packages.macports.org/p5.34-encode
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   126    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch p5.34-encode-3.210.0_0.darwin_24.arm64.tbz2 from http://mirror.fcix.net/macports/packages/p5.34-encode
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch p5.34-encode-3.210.0_0.darwin_24.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/p5.34-encode
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

The Darwin 24 arm64 files you notice not existing are not distfiles; they are precompiled archives. We don't have any precompiled archives for Darwin 24 arm64 yet because I have not set up that build machine yet. Lack of precompiled archives is not a bug. See #60756.

When a precompiled archive does not exist, MacPorts fetches a distfile and tries to build from source:

--->  Fetching distfiles for p5.34-encode
--->  Encode-3.21.tar.gz does not exist in /opt/local/var/macports/distfiles/perl5
--->  Attempting to fetch Encode-3.21.tar.gz from http://www.cpan.org.ua/modules/by-module/../../authors/id/D/DA/DANKOGAI
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0   1561      0 --:--:-- --:--:-- --:--:--  1575
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  8014    0  8014    0     0  11392      0 --:--:-- --:--:-- --:--:--     0

That failed on your system because it fetched an invalid file:

--->  Verifying checksums for p5.34-encode
--->  Checksumming Encode-3.21.tar.gz
Error: Checksum (rmd160) mismatch for Encode-3.21.tar.gz
Portfile checksum: Encode-3.21.tar.gz rmd160 c893de124dc04750d7618642ba199b490e8461b2
Distfile checksum: Encode-3.21.tar.gz rmd160 bb160e20996dc71576484d0a31d52fec7b8ad49e
Error: Checksum (sha256) mismatch for Encode-3.21.tar.gz
Portfile checksum: Encode-3.21.tar.gz sha256 eacf71c5eb49e0e590de797f1982d7fb95d8481e4d13c3ce79eb32ef9373b3db
Distfile checksum: Encode-3.21.tar.gz sha256 5bfb605888d322b25a3102dd4db07934da2f6167641b8450f5d08448bc2cec9d
Error: Checksum (size) mismatch for Encode-3.21.tar.gz
Portfile checksum: Encode-3.21.tar.gz size 2086738
Distfile checksum: Encode-3.21.tar.gz size 8014
***
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/perl5/Encode-3.21.tar.gz.html

Please attach that invalid file so that we can see why it is invalid.

comment:2 Changed 21 months ago by jmroot (Joshua Root)

It's the cpan.org.ua homepage, you can reproduce by loading the fetch URL in a browser.

comment:3 Changed 21 months ago by jmroot (Joshua Root)

Summary: p5.34-encode @3.210.0: distfiles do not exist on server for Darwin 24 arm64p5.34-encode @3.210.0: incorrect distfile fetched from cpan.org.ua

comment:4 Changed 21 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In b322e9d0570934f2a30a5d772529e3d8117388e7/macports-ports (master):

Remove cpan.org.ua mirror

Seems to be outdated and serves HTML with a 200 response for missing
files.

Closes: #71079

comment:5 Changed 21 months ago by jmroot (Joshua Root)

Wait an hour or two for the change to propagate, run sudo port selfupdate to get the change, then run sudo port clean --dist p5.34-encode and try the installation again.

Note: See TracTickets for help on using tickets.