1. 概要
発生は、2022年3月26日です。
libxslt-1.1.34_2 < needs updating (index has 1.1.35)
の状態で
portupgrade -Rr libxslt
すると
Installing libxml2-2.9.13...
pkg-static: libxml2-2.9.13 conflicts with libxml2-reference-2.9.10 (installs files into the same place). Problematic file: /usr/local/share/doc/libxml2/DOM.gif
*** Error code 1
Stop.
make[3]: stopped in /usr/ports/textproc/libxml2
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/textproc/libxml2
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/textproc/libxslt
*** Error code 1
Stop.
make: stopped in /usr/ports/textproc/libxslt
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20220326-87539-h0bz33 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=libxslt-1.1.34_2 UPGRADE_PORT_VER=1.1.34_2 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! textproc/libxslt (libxslt-1.1.34_2) (unknown build error)
てなことになっちゃう。
これ、結局のところ、「libxml2-2.9.13」の問題のようなのですな・・・。
2. libxml2 インストール
でまぁ
portupgrade -Rr libxml2
しても、似たようなことになっちゃう・・・。
cd /usr/ports/textproc/libxml2
make
make reinstall
してもだめで・・・。
cd /usr/ports/textproc/libxml2
make
make deinstall
make install
すると、最後のところで
===> Installing for libxml2-2.9.13
===> Checking if libxml2 is already installed
===> Registering installation for libxml2-2.9.13
Installing libxml2-2.9.13...
pkg-static: libxml2-2.9.13 conflicts with libxml2-reference-2.9.10 (installs files into the same place). Problematic file: /usr/local/share/doc/libxml2/DOM.gif
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/textproc/libxml2
*** Error code 1
Stop.
make: stopped in /usr/ports/textproc/libxml2
どうも
/usr/local/share/doc/libxml2/DOM.gif
ちゅうのが、「reinstall」しても「deinstall」しても残っちゃって「conflicts」が発生しているようなんですな・・・。
「/usr/local/share/doc/」だし、まぁ、削除しちゃっても問題ないでしょう。
必要なものならば、再インストールで復活するだろうし・・・。
ディレクトリごと削除しちゃいます。
rm -R /usr/local/share/doc/libxml2
cd /usr/ports/textproc/libxml2
make deinstall clean
make
make install
すると
===> Installing for libxml2-2.9.13
===> Checking if libxml2 is already installed
===> Registering installation for libxml2-2.9.13
Installing libxml2-2.9.13...
pkg-static: libxml2-2.9.13 conflicts with libxml2-reference-2.9.10 (installs files into the same place). Problematic file: /usr/local/share/doc/libxml2/DOM.gif
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/textproc/libxml2
*** Error code 1
Stop.
make: stopped in /usr/ports/textproc/libxml2
あり?
よく見ると、「conflicts」が発生しているのは
libxml2-2.9.13
と
libxml2-reference-2.9.10
の間らしい・・・。
探してみると
$ locate libxml2-reference
/var/db/ports/textproc_libxml2-reference
/var/db/ports/textproc_libxml2-reference/options
はぁ、これであったか・・・。
と、これを消しても、やはりだめでした・・・。
3. 解決編
困り果てておったのですが、ここで、はたと思いつきました。
「conflicts」が発生しておるのは、「/usr/local/share/doc/libxml2/DOM.gif」ですわな。
「DOC」をインストールしなきゃいいわけです。
cd /usr/ports/textproc/libxml2
make config
これで、「DOCS」のチェックをはずせば、いいのではないか?