FreeBSD - メンテナンス・トラブルシュート - pkg・ports アップデート関連 - cmake automake - automake-1.15.1 → 1.16.1

 
1. 概要
2. 解決

1. 概要

 発生は 2018年6月15日。

> pkg version -vl "<"
automake-1.15.1                    <   needs updating (index has 1.16.1)
 とのことで

> portupgrade -rR automake
[Reading data from pkg(8) ... - 196 packages found - done]
[Gathering depends for devel/automake .................................... done]
[Exclude up-to-date packages ............ done]
--->  Upgrading 'automake-1.15.1' to 'automake-1.16.1' (devel/automake)
--->  Building '/usr/ports/devel/automake'
===>  Cleaning for automake-1.16.1
===>  License GPLv2+ GFDL accepted by the user
===>   automake-1.16.1 depends on file: /usr/local/sbin/pkg - found

・・・中略・・・

[Reading data from pkg(8) ... - 196 packages found - done]
--->  Deinstalling 'automake-1.15.1'
Updating database digests format: 100%
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:
        automake-1.15.1

Number of packages to be removed: 1

The operation will free 2 MiB.
[1/1] Deinstalling automake-1.15.1...
[1/1] Deleting files for automake-1.15.1: 100%
[Reading data from pkg(8) ... - 195 packages found - done]
--->  Installing the new version via the port
===>  Installing for automake-1.16.1
===>   Registering installation for automake-1.16.1 as automatic
Installing automake-1.16.1...
pkg-static: automake-1.16.1 conflicts with automake-wrapper-20131203 (installs files into the same place).  Problematic file: /usr/local/bin/aclocal
*** Error code 70

Stop.
make[1]: stopped in /usr/ports/devel/automake
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/automake
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20180615-26620-2v71ko env UPGRADE_TOOL=portupgrade UPGRADE_PORT=automake-1.15.1 UPGRADE_PORT_VER=1.15.1 make -DINSTALLS_DEPENDS reinstall
--->  Restoring the old version
Installing automake-1.15.1...
Extracting automake-1.15.1: 100%
** Fix the installation problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! devel/automake (automake-1.15.1)      (install error)

2. 解決

 メッセージを見れば、automake と automake-wrapper が競合を起こしているわけで。  何かのアップグレードかインストールの際に automake-wrapper というのはちらっと眼に入ったような記憶があります。  automake-wrapper をアンインストールすればいいのかしら

> pkg delete automake-wrapper
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        automake-wrapper-20131203
        automake-1.15.1

Number of packages to be removed: 2

The operation will free 2 MiB.

Proceed with deinstalling packages? [y/N]:
 おなんだかこのまま続行して、automake をインストールすればいけそうに見えます。  y Enter  あとはインストール

プロンプト略
cd /usr/ports/devel/automake
make
make install
 これで解決しました。