#66924 closed defect (worksforme)

python310 breaks and breaks installing mercurial on arm64 based macs.

Reported by: sjmudd (Simon J Mudd) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: python310

Description

This may be partly known. I see other issues with python310, and was able to install python39. However, when trying to install mercurial it pulls in python310 again and fails. The python build error is while patching. That didn't seem to match other python310 reports I saw.

Kernel:

Darwin XXXXXXXXXX 21.6.0 Darwin Kernel Version 21.6.0: Thu Sep 29 20:13:56 PDT 2022; root:xnu-8020.240.7~1/RELEASE_ARM64_T6000 arm64

Hardware: Macbook Pro 14" 2021, running Monterey (12.6.1)

$ sudo port install mercurial
--->  Computing dependencies for mercurial
The following dependencies will be installed:
 py310-gnureadline
 py310-re2
 python310
 re2
Continue? [Y/n]: y
--->  Fetching archive for python310
--->  Attempting to fetch python310-3.10.10_0+lto+optimizations.darwin_21.arm64.tbz2 from https://packages.macports.org/python310
--->  Attempting to fetch python310-3.10.10_0+lto+optimizations.darwin_21.arm64.tbz2 from https://mse.uk.packages.macports.org/python310
--->  Attempting to fetch python310-3.10.10_0+lto+optimizations.darwin_21.arm64.tbz2 from https://fra.de.packages.macports.org/python310
--->  Applying patches to python310
Error: Failed to patch python310: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port mercurial failed
$

I could not see any obvious way of staying on python39 (I removed python completely and reinstalled python39 but mercurial insists on python310 which does not work for me.)

Change History (2)

comment:1 Changed 15 months ago by sjmudd (Simon J Mudd)

This may have been self-inflicted. My mac was "imported" from an x86_64 mac and it looks like there might have been some x86_64 libraries around, though I thought I'd cleaned them. I removed macports completely and the build process now seems to complete so I can only assume this was user error.

Logging showed incompatible architecture libraries. (I should have saved this but didn't). So apologies for the noise.

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

Keywords: python310 mercurial removed
Port: python310 added
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.