Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Oct 2000 16:35:00 +0300
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        Satoshi - Ports Wraith - Asami <asami@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: Extending BSD.[local,x11].dist to include GNU gettext locale dirs
Message-ID:  <39D9E084.50EE262A@FreeBSD.org>
References:  <39C65823.42396A80@FreeBSD.org> <vqcpum04yge.fsf@silvia.hip.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Satoshi - Ports Wraith - Asami wrote:

>  * From: Maxim Sobolev <sobomax@FreeBSD.org>
>
>  * We have a large number (~200) of ports that use GNU gettext, which implies that
>  * they are sharing some common directories. Currently this behaviour is
>  * unhandled, so maintainer  of each particular port is free to deal with it
>  * whatever he likes. The better solution of course is to add those dirs into our
>  * mtree files, so the wheel will not have to be reinvented each time. The only
>  * problem, though, is  a lack of complete list of those dirs, which means that
>  * potentially each softwar author can name his favorite locale whatever he likes,
>  * however most of them are smart enough to choose common 2-letter names
>  * optionally followed by encoding name. Following patch was prepared by greeping
>  * all PLISTs, so it should be fairly complete. I would like to know what do
>  * people think about it.
>
>  * +        locale
>  * +            af
>  * +                LC_MESSAGES
>
> Thanks for doing all the work, but I have one question: what's the
> difference between "nls" and "locale" dirs?  We already have a whole
> bunch of subdirectories under "nls" already, can't those be used?

It seems that they serve similar purpose, however I feel that it would be a Big Pain
in Ass[tm] to teach all those gettext-using ports to install/look into right
directory.

> Also, are these "locale" directories only used by gettext (and
> gettext-using ports)?  If so, maybe we should implement something to
> let gettext supply an additional mtree file (I can work out a
> bsd.port.mk patch for this) so they don't have to be on everyone's
> system.

This would be the best solution. In general we need some generic approach to let
ports, especially those which make heavy use of shared directories like
GNOME/KDE/PUT_YOUR_FAVOURITE_HERE, to supply custom mtree files, so the hacks like
ports/Tools/gnomedepends.py will not be necessary anymore and the problem of making a
port bento-clean would be greatly simplified.

-Maxim




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39D9E084.50EE262A>