Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#64460 closed defect (fixed)

py-cwcwidth: checksum mismatch

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: judaew (Vadym-Valdis Yudaiev)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: py-cwcwidth

Description

$ port fetch --no-mirrors py310-cwcwidth
--->  Fetching distfiles for py310-cwcwidth
--->  Attempting to fetch cwcwidth-0.1.6.tar.gz from https://codeload.github.com/sebastinas/cwcwidth/legacy.tar.gz/v0.1.6?dummy=
$ port checksum py310-cwcwidth
--->  Verifying checksums for py310-cwcwidth
Error: Checksum (rmd160) mismatch for cwcwidth-0.1.6.tar.gz
Error: Checksum (sha256) mismatch for cwcwidth-0.1.6.tar.gz
Error: Checksum (size) mismatch for cwcwidth-0.1.6.tar.gz
Error: Failed to checksum py310-cwcwidth: Unable to verify file checksums

This was caused by [d5558057fc2aec6fa5605da00ef5f72dbd09b16c/macports-ports].

I don't understand the commit message

From GitHub the port is built with the correct library architecture.

at all, since the github portgroup has no influence on how a port builds (it only concerns itself with how it fetches and extracts), and the port is marked noarch.

Change History (5)

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

Replying to ryandesign:

the port is marked noarch.

Which it isn't:

$ port provides /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cwcwidth/_impl.cpython-310-darwin.so
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cwcwidth/_impl.cpython-310-darwin.so is provided by: py310-cwcwidth
$ file /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cwcwidth/_impl.cpython-310-darwin.so
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cwcwidth/_impl.cpython-310-darwin.so: Mach-O 64-bit x86_64 bundle, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL>
                                                                                                                                              ^^^^^^
$ port -qv installed py310-cwcwidth
  py310-cwcwidth @0.1.6_1 (active) requested_variants='' platform='darwin 19' archs='noarch' date='2022-01-16T20:44:17-0600'
                                                                                     ^^^^^^

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

So the thing to do seems to be to revert the switch to the github portgroup; remove supported_archs noarch; and increase revision.

comment:3 Changed 2 years ago by Vadim-Valdis Yudaev <judaew@…>

Resolution: fixed
Status: assignedclosed

In f27ac3fae2f7da1ead0cc4435f09cd39c2c0b60f/macports-ports (master):

py-cwcwidth: Remove supported_archs noarch

Closed: #64460

comment:4 Changed 2 years ago by judaew (Vadym-Valdis Yudaiev)

That's the problem. I caught a bug with the wrong architecture and thought there was some kind of bug in the PyPi package. I tried locally to rebuild port a few times. Didn't know supported_archs noarch could affect CPython like that.

Thank you!

comment:5 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Python modules can contain compiled code or not. If no compiled code, usually you would use supported_archs noarch, but if there is compiled code, then don't use that.

Note: See TracTickets for help on using tickets.