Opened 2 years ago

Last modified 2 years ago

#65443 closed defect

Ghostscript checksum mismatch — at Version 1

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

Change History (2)

Changed 2 years ago by belmakier (Timothy Gray)

Attachment: main.log added

main.log

comment:1 Changed 2 years 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?

Note: See TracTickets for help on using tickets.