On May 6, 2010, at 9:13 AM, Benjamin Reed wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 5/6/10 3:03 PM, Max Horn wrote:
>> I wonder if this is really necessary; libgettext?-dev seems to depend on 
>> gettext-bin anyway.
> 
> Probably because many of us don't really know what is in each of the
> different gettext packages, and when it first got split up, bdeps were
> added to everything anyways.
> 
> I certainly don't really know what's needed for usual gettext support,
> and what are more esoteric things only needed by translators or something.

If a package links to libintl and/or uses the libintl headers, it needs to BDep 
on libgettext?-dev. If it also needs to generate .po files with msgfmt while 
building, it also needs to BDep on gettext-tools. Some packages don't have .po 
files or have pregenerated ones and those don't need gettext-tools. I don't 
think there is ever a need to BDep on gettext-bin as it is brought in by 
libgettext?-dev, as you pointed out. The tricky part is figuring out when you 
need gettext-tools, and I think some maintainers always throw it in just in 
case.

If configure looks for msgfmt, you probably need gettext-tools, otherwise it's 
usually safe to leave it out. Those are the rules I follow with my own 
packages, and it seems to work well. The safest way to know whether you need 
gettext-tools is to try building a package both with and without it and make 
sure they are identical.

The other stuff in gettext-tools and gettext-bin seems to be pretty esoteric 
indeed.

Daniel


------------------------------------------------------------------------------

_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to