#65443 closed defect (worksforme)

ghostscript @9.55.0: Checksum mismatch for a709991e67196a87af053e2c16d7a65108613a41.zip

Reported by: belmakier (Timothy Gray) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: ghostscript

Description (last modified by jmroot (Joshua Root))

ghostscript (ghostscript-9.55.0_0+x11.darwin_21.x86_64.tbz2) fails to install with a checksum mismatch error. I have tried:

sudo -E port selfupdate
sudo port clean --dist ghostscript
sudo port install ghostscript

and the output of the final command is

--->  Computing dependencies for ghostscript
--->  Fetching archive for ghostscript
--->  Attempting to fetch ghostscript-9.55.0_0+x11.darwin_21.x86_64.tbz2 from https://packages.macports.org/ghostscript
--->  Attempting to fetch ghostscript-9.55.0_0+x11.darwin_21.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/ghostscript
--->  Attempting to fetch ghostscript-9.55.0_0+x11.darwin_21.x86_64.tbz2 from https://nue.de.packages.macports.org/ghostscript
--->  Fetching distfiles for ghostscript
--->  Attempting to fetch ghostpdl-9.55.0.tar.gz from https://distfiles.macports.org/ghostscript
--->  Attempting to fetch ghostscript-fonts-other-6.0.tar.gz from https://distfiles.macports.org/ghostscript
--->  Attempting to fetch ghostscript-fonts-std-8.11.tar.gz from https://distfiles.macports.org/ghostscript
--->  Attempting to fetch a709991e67196a87af053e2c16d7a65108613a41.zip from https://distfiles.macports.org/ghostscript
--->  Verifying checksums for ghostscript
Error: Checksum (rmd160) mismatch for a709991e67196a87af053e2c16d7a65108613a41.zip
Error: Checksum (sha256) mismatch for a709991e67196a87af053e2c16d7a65108613a41.zip
Error: Checksum (size) mismatch for a709991e67196a87af053e2c16d7a65108613a41.zip
Error: Failed to checksum ghostscript: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port ghostscript failed

Here is /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/main.log:

:notice:fetch --->  Fetching distfiles for ghostscript
:debug:fetch elevating privileges for fetch: euid changed to 0, egid changed to 0.
:debug:fetch dropping privileges: euid changed to 502, egid changed to 501.
:debug:fetch Executing org.macports.fetch (ghostscript)
:info:fetch --->  ghostpdl-9.55.0.tar.gz does not exist in /opt/local/var/macports/distfiles/ghostscript
:notice:fetch --->  Attempting to fetch ghostpdl-9.55.0.tar.gz from https://distfiles.macports.org/ghostscript
:info:fetch --->  ghostscript-fonts-other-6.0.tar.gz does not exist in /opt/local/var/macports/distfiles/ghostscript
:notice:fetch --->  Attempting to fetch ghostscript-fonts-other-6.0.tar.gz from https://distfiles.macports.org/ghostscript
:info:fetch --->  ghostscript-fonts-std-8.11.tar.gz does not exist in /opt/local/var/macports/distfiles/ghostscript
:notice:fetch --->  Attempting to fetch ghostscript-fonts-std-8.11.tar.gz from https://distfiles.macports.org/ghostscript
:info:fetch --->  a709991e67196a87af053e2c16d7a65108613a41.zip does not exist in /opt/local/var/macports/distfiles/ghostscript
:notice:fetch --->  Attempting to fetch a709991e67196a87af053e2c16d7a65108613a41.zip from https://distfiles.macports.org/ghostscript
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Tue Jul  5 10:46:57 EDT 2022
:notice:checksum --->  Verifying checksums for ghostscript
:debug:checksum Executing org.macports.checksum (ghostscript)
:info:checksum --->  Checksumming ghostpdl-9.55.0.tar.gz
:debug:checksum Calculated (rmd160) is ad4d642da9d42f50d7cacdd3deb38548e666653f
:debug:checksum Correct (rmd160) checksum for ghostpdl-9.55.0.tar.gz
:debug:checksum Calculated (sha256) is b73cdfcb7b1c2a305748d23b00a765bcba48310564940b1eff1457f19f898172
:debug:checksum Correct (sha256) checksum for ghostpdl-9.55.0.tar.gz
:debug:checksum Calculated (size) is 90933732
:debug:checksum Correct (size) checksum for ghostpdl-9.55.0.tar.gz
:info:checksum --->  Checksumming ghostscript-fonts-other-6.0.tar.gz
:debug:checksum Calculated (rmd160) is ab60dbf71e7d91283a106c3df381cadfe173082f
:debug:checksum Correct (rmd160) checksum for ghostscript-fonts-other-6.0.tar.gz
:debug:checksum Calculated (sha256) is 4fa051e341167008d37fe34c19d241060cd17b13909932cd7ca7fe759243c2de
:debug:checksum Correct (sha256) checksum for ghostscript-fonts-other-6.0.tar.gz
:debug:checksum Calculated (size) is 796086
:debug:checksum Correct (size) checksum for ghostscript-fonts-other-6.0.tar.gz
:info:checksum --->  Checksumming ghostscript-fonts-std-8.11.tar.gz
:debug:checksum Calculated (rmd160) is 10a19a10d0388bc084a7c1d3da845068d7169054
:debug:checksum Correct (rmd160) checksum for ghostscript-fonts-std-8.11.tar.gz
:debug:checksum Calculated (sha256) is 0eb6f356119f2e49b2563210852e17f57f9dcc5755f350a69a46a0d641a0c401
:debug:checksum Correct (sha256) checksum for ghostscript-fonts-std-8.11.tar.gz
:debug:checksum Calculated (size) is 3752871
:debug:checksum Correct (size) checksum for ghostscript-fonts-std-8.11.tar.gz
:info:checksum --->  Checksumming a709991e67196a87af053e2c16d7a65108613a41.zip
:debug:checksum Calculated (rmd160) is 318d68fcbd34b77a79ca9a1047f3c794bab9d575
:error:checksum Checksum (rmd160) mismatch for a709991e67196a87af053e2c16d7a65108613a41.zip
:info:checksum Portfile checksum: a709991e67196a87af053e2c16d7a65108613a41.zip rmd160 6f327e09590d517760dafd99cc7a197e68d85c6e
:info:checksum Distfile checksum: a709991e67196a87af053e2c16d7a65108613a41.zip rmd160 318d68fcbd34b77a79ca9a1047f3c794bab9d575
:debug:checksum Calculated (sha256) is 995b7e538dc000ad51cc0213441c0947fe28b647b8d0844c0d23aa66b33254e8
:error:checksum Checksum (sha256) mismatch for a709991e67196a87af053e2c16d7a65108613a41.zip
:info:checksum Portfile checksum: a709991e67196a87af053e2c16d7a65108613a41.zip sha256 03bb11a4db4b01f8509e93db469a24f904934fece3b5b9b8be932267ed7173f4
:info:checksum Distfile checksum: a709991e67196a87af053e2c16d7a65108613a41.zip sha256 995b7e538dc000ad51cc0213441c0947fe28b647b8d0844c0d23aa66b33254e8
:debug:checksum Calculated (size) is 1601271
:error:checksum Checksum (size) mismatch for a709991e67196a87af053e2c16d7a65108613a41.zip
:info:checksum Portfile checksum: a709991e67196a87af053e2c16d7a65108613a41.zip size 1600471
:info:checksum Distfile checksum: a709991e67196a87af053e2c16d7a65108613a41.zip size 1601271
:info:checksum The correct checksum line may be:
:info:checksum checksums           ghostpdl-9.55.0.tar.gz \
:info:checksum                     rmd160  ad4d642da9d42f50d7cacdd3deb38548e666653f \
:info:checksum                     sha256  b73cdfcb7b1c2a305748d23b00a765bcba48310564940b1eff1457f19f898172 \
:info:checksum                     size    90933732 \
:info:checksum                     ghostscript-fonts-other-6.0.tar.gz \
:info:checksum                     rmd160  ab60dbf71e7d91283a106c3df381cadfe173082f \
:info:checksum                     sha256  4fa051e341167008d37fe34c19d241060cd17b13909932cd7ca7fe759243c2de \
:info:checksum                     size    796086 \
:info:checksum                     ghostscript-fonts-std-8.11.tar.gz \
:info:checksum                     rmd160  10a19a10d0388bc084a7c1d3da845068d7169054 \
:info:checksum                     sha256  0eb6f356119f2e49b2563210852e17f57f9dcc5755f350a69a46a0d641a0c401 \
:info:checksum                     size    3752871 \
:info:checksum                     a709991e67196a87af053e2c16d7a65108613a41.zip \
:info:checksum                     rmd160  318d68fcbd34b77a79ca9a1047f3c794bab9d575 \
:info:checksum                     sha256  995b7e538dc000ad51cc0213441c0947fe28b647b8d0844c0d23aa66b33254e8 \
:info:checksum                     size    1601271
:error:checksum Failed to checksum ghostscript: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"
:error:checksum See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/main.log for details.

I'm guessing the 404 errors in this section

:info:archivefetch --->  ghostscript-9.55.0_0+x11.darwin_21.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch ghostscript-9.55.0_0+x11.darwin_21.x86_64.tbz2 from https://packages.macports.org/ghostscript
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch ghostscript-9.55.0_0+x11.darwin_21.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/ghostscript
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch ghostscript-9.55.0_0+x11.darwin_21.x86_64.tbz2 from https://nue.de.packages.macports.org/ghostscript
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404

are the most relevant part, but I'm not sure how to proceed or why the relevant files don't exist.

Thanks

Attachments (1)

main.log (84.5 KB) - added by belmakier (Timothy Gray) 22 months ago.
main.log

Download all attachments as: .zip

Change History (6)

Changed 22 months ago by belmakier (Timothy Gray)

Attachment: main.log added

main.log

comment:1 Changed 22 months ago by jmroot (Joshua Root)

Description: modified (diff)

I can't reproduce this. The affected file is of size 1600471 for me whether I download it from distfiles.macports.org or from the original GitHub location. Obviously you're getting a different file of size 1601271, but I don't know how or why that would be happening.

Do you get an identical file to the one download by port if you download from https://github.com/adobe-type-tools/mapping-resources-pdf/archive/a709991e67196a87af053e2c16d7a65108613a41.zip and https://distfiles.macports.org/ghostscript/a709991e67196a87af053e2c16d7a65108613a41.zip using a browser? If not, can you see what the difference is?

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

Summary: Ghostscript checksum mismatchghostscript @9.55.0: Checksum mismatch for a709991e67196a87af053e2c16d7a65108613a41.zip

Replying to belmakier:

I'm guessing the 404 errors in this section [...] are the most relevant part, but I'm not sure [...] why the relevant files don't exist.

The 404 errors are not relevant. The packages for ghostscript don't exist on the servers because we're not legally allowed to distribute them due to the combination of licenses:

"ghostscript" is not distributable because its license "agpl" conflicts with license "GPL-2" of dependency "libpaper"

Therefore MacPorts tries to download the distfile and build from source, but this is failing due to the distfile checksum mismatch.

Replying to jmroot:

I can't reproduce this. The affected file is of size 1600471 for me whether I download it from distfiles.macports.org or from the original GitHub location.

Same here. And the file was last changed on our server over three years ago.

comment:3 Changed 22 months ago by belmakier (Timothy Gray)

I get identical contents from all three downloads, at least in terms of files and file sizes:

ls -l * | awk '{print $6, $10}' | column -t
1453    LICENSE.txt
2350    Makefile
2133    README.md
1063    summary.txt
106193  90ms-RKSJ-UCS2
3254    90pv-RKSJ-UCS2
97291   90pv-RKSJ-UCS2C
9061    Adobe-CNS1-B5pc
9462    Adobe-CNS1-ETen-B5
3355    Adobe-CNS1-H-CID
9570    Adobe-CNS1-H-Host
9126    Adobe-CNS1-H-Mac
90971   Adobe-GB1-GBK-EUC
5503    Adobe-GB1-GBpc-EUC
3470    Adobe-GB1-H-CID
91549   Adobe-GB1-H-Host
5484    Adobe-GB1-H-Mac
7536    Adobe-Japan1-90ms-RKSJ
9527    Adobe-Japan1-90pv-RKSJ
3654    Adobe-Japan1-H-CID
7786    Adobe-Japan1-H-Host
6713    Adobe-Japan1-H-Mac
23434   Adobe-Japan1-PS-H
14214   Adobe-Japan1-PS-V
3039    Adobe-Korea1-H-CID
16800   Adobe-Korea1-H-Host
12368   Adobe-Korea1-H-Mac
16605   Adobe-Korea1-KSCms-UHC
12452   Adobe-Korea1-KSCpc-EUC
2647    B5pc-UCS2
272945  B5pc-UCS2C
276625  ETen-B5-UCS2
224247  GBK-EUC-UCS2
2729    GBpc-EUC-UCS2
142756  GBpc-EUC-UCS2C
182560  KSCms-UHC-UCS2
17200   KSCpc-EUC-UCS2
151061  KSCpc-EUC-UCS2C
149695  UCS2-90ms-RKSJ
142968  UCS2-90pv-RKSJ
273255  UCS2-B5pc
286940  UCS2-ETen-B5
234056  UCS2-GBK-EUC
189539  UCS2-GBpc-EUC
188853  UCS2-KSCms-UHC
147723  UCS2-KSCpc-EUC
266505  Adobe-CNS1-UCS2
231844  Adobe-GB1-UCS2
284083  Adobe-Japan1-UCS2
203260  Adobe-KR-UCS2
146807  Adobe-Korea1-UCS2

comment:4 Changed 22 months ago by belmakier (Timothy Gray)

This seems to have been a network issue. When I tried the install on a different network there were no checksum issues. Not sure exactly what went wrong, but this can probably be closed now.

comment:5 in reply to:  4 Changed 22 months ago by mascguy (Christopher Nielsen)

Resolution: worksforme
Status: newclosed

Replying to belmakier:

This seems to have been a network issue. When I tried the install on a different network there were no checksum issues. Not sure exactly what went wrong, but this can probably be closed now.

Great, glad the issue is resolved!

Note: See TracTickets for help on using tickets.