FreeBSD - メンテナンス・トラブルシュート - Python - py311-cython3 conflicts py311-cython


 クラウディア


1. 概要
2. 状況
3. 対策

1. 概要

 発生は、2025年8月5日。  「FreeBSD 14.3 RELEASE」で発生しました。

2. 状況


portversion -v | grep '<'

yelp-tools-42.1             <  needs updating (port has 42.1_1)
 という状況で。

env BATCH=yes portupgrade -rR yelp-tools
 すると、「py-cython」に依存しているようで。

[Reading data from pkg(8) ... - 459 packages found - done]
[Gathering depends for textproc/yelp-tools ........................................................................................................... done]
[Exclude up-to-date packages ............................. done]
--->  Upgrading 'yelp-tools-42.1' to 'yelp-tools-42.1_1' (textproc/yelp-tools)
--->  Building '/usr/ports/textproc/yelp-tools'
===>  Cleaning for py311-lxml5-5.4.0_2
===>  Cleaning for py311-cython3-3.1.2
===>  Cleaning for py312-cython3-3.1.2
===>  Cleaning for py310-cython3-3.1.2
===>  Cleaning for py39-cython3-3.1.2
===>  Cleaning for yelp-tools-42.1_1
===>  License GPLv2+ accepted by the user
===>   yelp-tools-42.1_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by yelp-tools-42.1_1 for building

・・・	略	・・・

Link: @bin/cythonize --> bin/cythonize-3.11
====> Compressing man pages (compress-man)
===>  Installing for py311-cython3-3.1.2

===>  py311-cython3-3.1.2 conflicts with installed package(s):
      py311-cython-0.29.37_2

      They install files into the same place.
      You may want to stop build with Ctrl + C.
===>  Checking if py311-cython3 is already installed
===>   Registering installation for py311-cython3-3.1.2 as automatic
Installing py311-cython3-3.1.2...
pkg-static: py311-cython3-3.1.2 conflicts with py311-cython-0.29.37_2 (installs files into the same place).  Problematic file: /usr/local/bin/cygdb-3.11
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/lang/cython3
*** Error code 1

・・・	以下略	・・・
 てなことになります。

3. 対策

 「/usr/ports」で。

make quicksearch name=cython
 してみると。

/usr/ports/lang/cython3
 と。

/usr/ports/lang/cython
 「cython」は、二人いるようです。  どっちが、本物かわかりませんが、ここは、「py311-cython」に遠慮願いましょうか。

pkg remove py311-cython

Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        py311-cython: 0.29.37_2

Number of packages to be removed: 1

The operation will free 13 MiB.

Proceed with deinstalling packages? [y/N]:
 依存する人は、いないようなので、安心して y で消せます。  その後。

env BATCH=yes portupgrade -rR yelp-tools
 したら・・・次のページへ続くのであった・・・。

AbemaTV 無料体験