Bug 281145 - lang/cython3 conflicts with cython
Summary: lang/cython3 conflicts with cython
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-30 21:15 UTC by alt2600
Modified: 2024-10-07 15:47 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alt2600 2024-08-30 21:15:22 UTC
/usr/ports/lang/cython3]$ sudo make install
===>  Installing for py311-cython3-3.0.11

===>  py311-cython3-3.0.11 conflicts with installed package(s): 
      py310-cython-0.29.37_1
      py311-cython-0.29.37_1


amd64 14.1p3 live building, not sure why my system is now just bringing this in, but based on cython3 history in freshports and lack of CONFLICTS statement in the Makefile I am led to believe these should not be conflicting with each other. Don't know if this version just supercedes the other, but the fact it conflicts with py310 when it is built for py311 flavor says to me maybe its one of these files in the plist

bin/cythonize
bin/cygdb

that is the issue

pkg which /usr/local/bin/cython
/usr/local/bin/cython was installed by package py311-cython-0.29.37_1

pkg which /usr/local/bin/cygdb
/usr/local/bin/cygdb was installed by package py311-cython-0.29.37_1

not sure on the py310 conflict other then the sitepackages being prefixed into Cython which could be the problem too
Comment 1 alt2600 2024-08-30 21:55:53 UTC
tried rebuilding py311-cython, was able to completely remove python310 as blender seems to no longer require, tried cython3 again and this is a better error with the specific conflict

Registering installation for py311-cython3-3.0.11
Installing py311-cython3-3.0.11...
pkg-static: py311-cython3-3.0.11 conflicts with py311-cython-0.29.37_1 (installs files into the same place).  Problematic file: /usr/local/bin/cygdb-3.11
*** Error code 1
Comment 2 alt2600 2024-09-16 01:01:30 UTC
just as an update

graphics/py-scikit-image
cython

requires
math/py-pywavelets
cython3

which breaks live building qgis

math/vtk9

requires
net/py-mpi4py
cython3

which breaks live building of vtk9, and cad/freecad

which breaks the VTK option on opencv and everything that depends on it, but at least workarounds exist.

just would like some guidance if I can just replace cython with cython3 and go on my merry way. it certainly doesn't look that way from what I've read.
Comment 3 alt2600 2024-09-18 02:27:04 UTC
(In reply to alt2600 from comment #2)

for vtk9 toss in

cad/opencascade
cad/kicad
cad/PrusaSlicer

the live system ports building seems to be dead for me. or constantly swapping cythons out every other dependency maybe. just noticed it was marked CONFLICTS_INSTALL a little while back after double checking the Makefile, but it doesn't seemed to be honored until the install phase with pkg-static, its not enforced by the build system. but python packages as evidenced above require both to build. 

graphics/py-scikit-image:cython
requires
math/py-pywavelets:cython3
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-10-07 15:47:30 UTC
It is a known issue. I don't have a fix now. The best solution would be updating lang/cython to 3.x and removing lang/cython3. But it needs time for dependent ports 

On the live system, either:
- Build packages with poudriere
- Remove cython before using cython3, and vice versa