devel/cmake-core のコンフリクトエラー

 備忘録   2022-09-15

ports devel/cmake-core のインストール時にコンフリクトエラーが発生。

最近、devel/cmake が cmake-core と cmake-doc に分かれたらしく、既に devel/cmake がインストールされている環境にも devel/cmake-core を入れようとするのでコンフリクトを起こす。
portmaster -o で置き換えて対処。


In the FreeBSD ports collection, CMake, which has long lived at devel/cmake, has apparently just been split into multiple different ports: devel/cmake-core, devel/cmake-doc, and so on.

Installing cmake-core-3.23.3...
pkg-static: cmake-core-3.23.3 conflicts with cmake-3.23.3 (installs files into the same place).  Problematic file: /usr/local/bin/ccmake
*** Error code 1

The fix: repointing the origin
When a port is moved or renamed, as happened with CMake here, the build can often be fixed by telling portmaster about the new origin directory for the port. Use the -o argument to portmaster and supply the new name of the port (relative to the ports tree), followed by its current name (again, relative to the ports tree).

[root@host /usr/ports]# portmaster -o devel/cmake-core devel/cmake

Resolving portmaster error "pkg-static: cmake-core-3.23.3 conflicts with cmake-3.23.3" - Shaun's Blog