FreeBSD: x11/xkeyboard-config, error: XML::Parser perl module is required for intltool

またまた、 portupgrade でエラーが発生しました。

複数の xorg 関係のパッケージに更新が発生していたため portupgrade を行ったところ、xkeyboard-config でまたまたビルド関係のエラーが発生しました。

xf86-input-keyboard-1.7.0   <  needs updating (port has 1.8.0)
xf86-input-mouse-1.9.0      <  needs updating (port has 1.9.0_1)
xf86-video-ati-6.14.6       <  needs updating (port has 6.14.6_1)
xf86-video-intel-2.7.1_5    <  needs updating (port has 2.7.1_6)
xf86-video-mach64-6.9.4     <  needs updating (port has 6.9.4_1)
xf86-video-nv-2.1.20_1      <  needs updating (port has 2.1.20_2)
xf86-video-openchrome-0.3.3  <  needs updating (port has 0.3.3_1)
xf86-video-r128-6.9.2       <  needs updating (port has 6.9.2_1)
xf86-video-radeonhd-1.3.0_5  <  needs updating (port has 1.3.0_6)
xf86-video-s3-0.6.5         <  needs updating (port has 0.6.5_1)
xf86-video-s3virge-1.10.6   <  needs updating (port has 1.10.6_1)
xf86-video-savage-2.3.7     <  needs updating (port has 2.3.7_1)
xf86-video-vesa-2.3.3       <  needs updating (port has 2.3.3_1)
xkeyboard-config-2.9_1      <  needs updating (port has 2.10.1)
# portupgrade xkeyboard-config-2.9_1
---> Upgrading 'xkeyboard-config-2.9_1' to 'xkeyboard-config-2.10.1' (x11/xkeyboard-config)
---> Building '/usr/ports/x11/xkeyboard-config'
===> Cleaning for xkeyboard-config-2.10.1
===> License MIT accepted by the user
===> Fetching all distfiles required by xkeyboard-config-2.10.1 for building
===> Extracting for xkeyboard-config-2.10.1
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.12.5
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
===>  Script "configure" failed unexpectedly.
Please report the problem to [maintainer] and attach the
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/sbin/pkg_info -Ea).
*** Error code 1

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

本当に、XM::Parser が入っていないのか確認したところ、入っています。

p5-XML-Parser-2.41_1 Perl extension interface to James Clark's XML parser, expat

またまた Perl のディレクトリ構成変更によるものかも、、、、ということで、前回のエラー発生時と同様に、XML Parser を削除して再インストールした後に、再度 portupgrade を試みることにしました。

# cd /usr/ports/textproc/p5-XML-Parser
# make deinstall reinstall clean


===> Building package for xkeyboard-config-2.10.1
Creating package /usr/ports/x11/xkeyboard-config/work/xkeyboard-config-2.10.1.tbz
Registering depends: libxml2-2.8.0_3 libiconv-1.14_1.
Creating bzip'd tar ball in '/usr/ports/x11/xkeyboard-config/work/xkeyboard-config-2.10.1.tbz'
===> Installing for xkeyboard-config-2.10.1
===> Cleaning for xkeyboard-config-2.10.1
---> Cleaning out obsolete shared libraries