FreeBSD: Ports: xkeyboard-config-2.12 configure error

Ports メンテナンスでエラーが発生しました。

portupgrade -a を行ったところ、 xkeyboard-config パッケージが以下のようにエラーになります。
xkeyboard-config は、パッケージ名から、おそらく X-Window を使うときに必要なプログラムでしょうから、Xをあまり使わない私の場合は放置していてもいいのですが、毎回エラーメッセージが表示されるというのも気分が悪いので対策することにします。

checking for perl >= 5.8.1... 5.16.3
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
===>  Script "configure" failed unexpectedly.
Please report the problem to x11@FreeBSD.org [maintainer] and attach the
"/usr/ports/x11/xkeyboard-config/work/xkeyboard-config-2.13/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop in /usr/ports/x11/xkeyboard-config.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20141108-5546-1hmfbxl env UPGRADE_TOOL=portupgrade UPGRADE_PORT=xkeyboard-config-2.12 UPGRADE_PORT_VER=2.12 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
	! x11/xkeyboard-config (xkeyboard-config-2.12)	(configure error)

xkeyboard-conf はカスタマイズもしないし、バイナリインストールでも十分なので、pkg install コマンドを使って上書きでバイナリ更新することにしました。

# pkg install xkeyboard-config
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 1 packages will be affected (of 0 checked):

Installed packages to be UPGRADED:
    xkeyboard-config: 2.12 -> 2.13

The process will require 73 kB more space.
587 kB to be downloaded.

Proceed with this action? [y/N]: y
Fetching xkeyboard-config-2.13.txz: 100%  587 kB 150.3k/s    00:04    
Checking integrity... done (0 conflicting)
[1/1] Upgrading xkeyboard-config from 2.12 to 2.13: 100%

幸い xkeyboard-config のバイナリーパッケージが更新されていましたので、コマンド一発で完了。

ソースからビルドする場合は、エラーメッセージから perl モジュールの XML::Parser を一旦削除してサインストールすればいけるんじゃないかと思いましたが、試しませんでした。

コメントを残す