Date: 11 Mar 2002 01:06:34 +0200 From: Maxim Sobolev <sobomax@FreeBSD.org> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: corecode@corecode.ath.cx, freebsd-ports@FreeBSD.org Subject: Re: what to do with share/locale/*/LC_MESSAGES ? Message-ID: <1015801496.527.78.camel@notebook> In-Reply-To: <200203101012.g2AAC0Io000570@Magelan.Leidinger.net> References: <200203101012.g2AAC0Io000570@Magelan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-mp9Xu6qsNRR1r2XL7wAd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, 2002-03-10 at 12:12, Alexander Leidinger wrote: > On 9 M=E4r, Simon 'corecode' Schubert wrote: >=20 > >> > the makefile creates share/locale/*/LC_MESSAGES. now these dirs don'= t > >> > appear in /etc/mtree/*. > >> > i suppose these dirs should not be removed, but: where is this writt= en > >> > down? if not, please do so (porter's handbook?). > >>=20 > >> The common practice for those dirs is to put something like this into > >> pkg-plist: > >> ---snip--- > >> @unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true > >> @unexec rmdir %D/share/locale/cs 2>/dev/null || true > >> ---snip--- > >=20 > > uhm, looks like this practise is somehow uncommon... > >=20 > > $ locate pkg-plist | xargs grep -l '^@.*rm.*LC_MESSAGES$' | wc -l > > 36 > > $ locate pkg-plist | xargs grep -l '^[^@].*LC_MESSAGES.\+$' | wc -l > > 349 >=20 > Ok, I haven't verified if it really is common or not, but I was told to > do it this way. And from the wording of this advise I had the impression > it is common practice to do it this way. It is incorrect practice. The correct way is to make port linking with libintl and put devel/gettext into LIB_DEPENDS. Then gettext package will automagically delete all leftover xx/LC_MESSAGES dirs upon its deinstall, therefore you only need to place package-specific .po files into pkg-plist. See ports/devel/gettext/pkg-plist for details. -Maxim --=-mp9Xu6qsNRR1r2XL7wAd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQA8i+aYoNu5t4iCBa8RApXpAJ0e6wt88fII4fkFPJs5GimVuR7vHQCfUcTA akYowJOOIpcXc5ZG/KPGYhI= =F0x7 -----END PGP SIGNATURE----- --=-mp9Xu6qsNRR1r2XL7wAd-- 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?1015801496.527.78.camel>