[MacPorts] #69058: kicad 7.0.9 fails install due to py311-wxpython-4.0 build failure
MacPorts
noreply at macports.org
Tue Jan 16 15:47:30 UTC 2024
#69058: kicad 7.0.9 fails install due to py311-wxpython-4.0 build failure
---------------------------------------+--------------------
Reporter: myart4ios | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: kicad py311-wxpython-4.0 |
---------------------------------------+--------------------
Comment (by JohnPritchard):
This is because of the recent upgrade of cython from 0.29.36 to 3.0.7 (and
then 3.0.8), see https://github.com/wxWidgets/Phoenix/issues/2514.
The solution is to apply the patch pointed to in that GitHub wxpython
issue ticket, e.g. do:
{{{
cd /tmp/
git clone https://github.com/wxWidgets/Phoenix.git
cd Phoenix
git diff aeb557d dac1e86 | sed -i '' -e 's@ ./wx/@ wx/@g' > 0001-Fix-
compatibility-with-Cython-3.0.0.diff
}}}
The patch file 0001-Fix-compatibility-with-Cython-3.0.0.diff can then be
applied (with -p0) to the wxpython-4.0 source, i.e. it can be added as a
patch to the file directory for the wxpython-4.0 Port and in the Portfile
and should result in a successful build.
To test/build in the meantime do:
{{{
pyVer=311 ## replace with desired python version...
cd /tmp/
git clone https://github.com/wxWidgets/Phoenix.git
cd Phoenix
git diff aeb557d dac1e86 | sed -i '' -e 's@ ./wx/@ wx/@g' > 0001-Fix-
compatibility-with-Cython-3.0.0.diff
sudo port patch py${pyVer}-wxpython-4.0
cd /opt/local/var/macports/build/
cd _opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-wxpython-4.0
cd py${pyVer}-wxpython-4.0/work/wxPython-4.2.1/
sudo -u macports patch -p0 < /tmp/Phoenix/0001-Fix-compatibility-with-
Cython-3.0.0.diff
sudo port install py${pyVer}-wxpython-4.0
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69058#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list