Opened 3 years ago

Closed 3 years ago

#64078 closed defect (worksforme)

py38-tomli @1.2.2 cannot be built on PPC Mac OS X 10.5.8, Leopard, because of checksum mismatches for tomli-1.2.2.tar.gz

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: leopard Cc:
Port: py-tomli

Description

DEBUG: Calculated (rmd160) is 16bea53758e5757a8daa0f68e7da6f159ae2b513
Error: Checksum (rmd160) mismatch for tomli-1.2.2.tar.gz
Portfile checksum: tomli-1.2.2.tar.gz rmd160 e37cff10eb7e7f050049585b3d7224dd907b463c
Distfile checksum: tomli-1.2.2.tar.gz rmd160 16bea53758e5757a8daa0f68e7da6f159ae2b513
DEBUG: Calculated (sha256) is 4d38d1f01cdeebd9f54c796025a180f60c79a912f637fa8e28dfc3bff366f21b
Error: Checksum (sha256) mismatch for tomli-1.2.2.tar.gz
Portfile checksum: tomli-1.2.2.tar.gz sha256 c6ce0015eb38820eaf32b5db832dbc26deb3dd427bd5f6556cf0acac2c214fee
Distfile checksum: tomli-1.2.2.tar.gz sha256 4d38d1f01cdeebd9f54c796025a180f60c79a912f637fa8e28dfc3bff366f21b
DEBUG: Calculated (size) is 15182
Error: Checksum (size) mismatch for tomli-1.2.2.tar.gz
Portfile checksum: tomli-1.2.2.tar.gz size 15091
Distfile checksum: tomli-1.2.2.tar.gz size 15182
The correct checksum line may be:
checksums           rmd160  16bea53758e5757a8daa0f68e7da6f159ae2b513 \
                    sha256  4d38d1f01cdeebd9f54c796025a180f60c79a912f637fa8e28dfc3bff366f21b \
                    size    15182
Error: Failed to checksum py38-tomli: Unable to verify file checksums

Change History (9)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Cc: toby@… removed
Owner: set to tobypeterson
Port: py-tomli added; py38-tomli removed
Status: newassigned

Works for me. The distfile fetched from both distfiles.macports.org and files.pythonhosted.org is size 15091 and passes port checksum. As mentioned in the FAQ, it's essential to show where your distfile was downloaded from when there's a checksum mismatch.

comment:2 Changed 3 years ago by tobypeterson

Suggestion: run port clean --all py-tomli and try again

comment:3 in reply to:  1 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jmroot:

Works for me. The distfile fetched from both distfiles.macports.org and files.pythonhosted.org is size 15091 and passes port checksum. As mentioned in the FAQ, it's essential to show where your distfile was downloaded from when there's a checksum mismatch.

This was happening before:

--->  Fetching archive for py38-tomli
DEBUG: Executing org.macports.archivefetch (py38-tomli)
DEBUG: euid/egid changed to: 0/0
DEBUG: chowned /opt/local/var/macports/incoming to macports
DEBUG: euid/egid changed to: 502/502
--->  py38-tomli-1.2.2_0.darwin_9.noarch.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch py38-tomli-1.2.2_0.darwin_9.noarch.tbz2 from http://fra.de.packages.macports.org/py38-tomli
DEBUG: Fetching archive failed: Connection time-out after 30253 ms
--->  Attempting to fetch py38-tomli-1.2.2_0.darwin_9.noarch.tbz2 from http://packages.macports.org/py38-tomli

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0DEBUG: Fetching archive failed: The requested URL returned error: 404
--->  Attempting to fetch py38-tomli-1.2.2_0.darwin_9.noarch.tbz2 from http://nue.de.packages.macports.org/py38-tomli
DEBUG: Fetching archive failed: Connection time-out after 30260 ms
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: fetch phase started at Sun Nov 28 21:04:59 CET 2021
--->  Fetching distfiles for py38-tomli
DEBUG: Executing org.macports.fetch (py38-tomli)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: checksum phase started at Sun Nov 28 21:04:59 CET 2021
--->  Verifying checksums for py38-tomli
DEBUG: Executing org.macports.checksum (py38-tomli)
--->  Checksumming tomli-1.2.2.tar.gz

comment:4 in reply to:  2 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to tobypeterson:

Suggestion: run port clean --all py-tomli and try again

The result is rather bad:

--->  Fetching archive for py38-tomli
DEBUG: Executing org.macports.archivefetch (py38-tomli)
DEBUG: euid/egid changed to: 0/0
DEBUG: chowned /opt/local/var/macports/incoming to macports
DEBUG: euid/egid changed to: 502/502
--->  py38-tomli-1.2.2_0.darwin_9.noarch.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch py38-tomli-1.2.2_0.darwin_9.noarch.tbz2 from http://packages.macports.org/py38-tomli

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0DEBUG: Fetching archive failed: The requested URL returned error: 404
--->  Attempting to fetch py38-tomli-1.2.2_0.darwin_9.noarch.tbz2 from http://nue.de.packages.macports.org/py38-tomli
DEBUG: Fetching archive failed: Connection time-out after 30032 ms
--->  Attempting to fetch py38-tomli-1.2.2_0.darwin_9.noarch.tbz2 from http://fra.de.packages.macports.org/py38-tomli
DEBUG: Fetching archive failed: Connection time-out after 30227 ms
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: Skipping completed org.macports.fetch (py38-tomli)
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: checksum phase started at Mon Nov 29 17:15:21 CET 2021
--->  Verifying checksums for py38-tomli
DEBUG: Executing org.macports.checksum (py38-tomli)
--->  Checksumming tomli-1.2.2.tar.gz
Error: Failed to checksum py38-tomli: tomli-1.2.2.tar.gz does not exist in /opt/local/var/macports/distfiles/py-tomli

port does not create the directory mentioned above although it has all permissions:

drwxr-xr-x  492 macports  admin  17748 29 Nov 17:10 /opt/local/var/macports/distfiles

comment:5 Changed 3 years ago by jmroot (Joshua Root)

DEBUG: Skipping completed org.macports.fetch (py38-tomli) implies that you didn't clean correctly or it somehow didn't work.

comment:6 Changed 3 years ago by tobypeterson

you might need to clean py-tomli and py38-tomli, I don't recall

comment:7 Changed 3 years ago by tobypeterson

Did some testing; yes, you actually need to clean py38-tomli. I thought that cleaning the base port would clean its subports, but that doesn't appear to be true.

comment:8 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Using py38-tomli indeed allowed to fetch valid sources and the port built.

comment:9 Changed 3 years ago by tobypeterson

Resolution: worksforme
Status: assignedclosed

ok, closing

Note: See TracTickets for help on using tickets.