Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 314953

Summary: dev-util/intltool must have sys-devel/gettext in RDEPEND
Product: Gentoo Linux Reporter: Jeremy Guitton <debotux>
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: galtgendo
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeremy Guitton 2010-04-13 09:52:09 UTC
The runtime dependancy on sys-devel/gettext is missing from the dev-util/intltool ebuild.

Like you can see here (extract from the intltool-update script):

my $XGETTEXT = $ENV{"XGETTEXT"} || "xgettext";
    my $XGETTEXT_ARGS = $ENV{"XGETTEXT_ARGS"} || '';
    chomp $XGETTEXT;

    if (! isGNUGettextTool ("$XGETTEXT"))
    {
	print STDERR " *** GNU xgettext is not found on this system!\n".
		     " *** Without it, intltool-update can not extract strings.\n";
	exit;
    }

--------

my $MSGMERGE = $ENV{"MSGMERGE"} || "msgmerge";
    my ($lang, $outfile) = @_;

    if (! isGNUGettextTool ("$MSGMERGE"))
    {
	print STDERR " *** GNU msgmerge is not found on this system!\n".
		     " *** Without it, intltool-update can not extract strings.\n";
	exit;
    }

--------

my $MSGFMT = $ENV{"MSGFMT"} || "msgfmt";

    if (! isGNUGettextTool ("$MSGFMT"))
    {
	print STDERR " *** GNU msgfmt is not found on this system!\n".
		     " *** Without it, intltool-update can not extract strings.\n";
	exit;
    }

--------

In this case, packages that use intltool for string translation must just have a DEPEND on dev-util/intltool, sys-devel/gettext is not needed, and should be fixed.

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-07-07 16:31:14 UTC
  07 Jul 2010; Samuli Suominen <ssuominen@gentoo.org>
  intltool-0.41.1.ebuild:
  Missing sys-devel/gettext RDEPEND wrt #314953 by Jeremy Guitton.