Bug#360100: /usr/share/aclocal/intltool.m4 bails out if no perl:xml available.

Wilfried Goesgens willi at goesgens.de
Thu Mar 30 16:12:14 UTC 2006


Package: intltool
Version: 0.34.2-1
Severity: normal

/usr/share/aclocal/intltool.m4 brings the following tests:

AC_PATH_PROG(INTLTOOL_PERL, perl)
if test -z "$INTLTOOL_PERL"; then
   AC_MSG_ERROR([perl not found; required for intltool])
fi
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
   AC_MSG_ERROR([perl 5.x required for intltool])
fi
if test "x$2" != "xno-xml"; then
   AC_MSG_CHECKING([for XML::Parser])
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
       AC_MSG_RESULT([ok])
   else
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
   fi
fi


which will fail on a flat bsd install, rather then trigger a build without
intl. AC_MSG_ERROR is definetlely not right here, or if, it should just
be checked if all the other libintl stuff is available (which in fact wasn't)

a freebsd build with the dist-tar (containing the results of autoreconf.sh of a debian box) looks like this:



checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... no, consider installing GNU libiconv
checking for GNU gettext in libintl... no
checking whether to use NLS... no
checking for perl... /usr/bin/perl
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

and aborts. as there is no intl, it should build without.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages intltool depends on:
ii  automake1.4 [automaken]       1:1.4-p6-9 A tool for generating GNU Standard
ii  automake1.7 [automaken]       1.7.9-7    A tool for generating GNU Standard
ii  automake1.8 [automaken]       1.8.5-3    A tool for generating GNU Standard
ii  automake1.9 [automaken]       1.9.6-4    A tool for generating GNU Standard
ii  file                          4.17-1     Determines file type using "magic"
ii  gettext                       0.14.5-2   GNU Internationalization utilities
ii  libxml-parser-perl            2.34-4     Perl module for parsing XML files
ii  patch                         2.5.9-4    Apply a diff file to an original
ii  perl                          5.8.8-3    Larry Wall's Practical Extraction 

intltool recommends no packages.

-- no debconf information





More information about the Pkg-gnome-maintainers mailing list