From owner-freebsd-ports Sun Mar 10 15: 7:20 2002 Delivered-To: freebsd-ports@freebsd.org Received: from alcatraz.iptelecom.net.ua (alcatraz.iptelecom.net.ua [212.9.224.15]) by hub.freebsd.org (Postfix) with ESMTP id C48DC37B402 for ; Sun, 10 Mar 2002 15:07:07 -0800 (PST) Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by alcatraz.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id BAA36586; Mon, 11 Mar 2002 01:07:05 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from h12.228.dialup.iptcom.net (h12.228.dialup.iptcom.net [212.9.228.12]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id BAA36247; Mon, 11 Mar 2002 01:07:02 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Subject: Re: what to do with share/locale/*/LC_MESSAGES ? From: Maxim Sobolev To: Alexander Leidinger Cc: corecode@corecode.ath.cx, freebsd-ports@FreeBSD.org In-Reply-To: <200203101012.g2AAC0Io000570@Magelan.Leidinger.net> References: <200203101012.g2AAC0Io000570@Magelan.Leidinger.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-mp9Xu6qsNRR1r2XL7wAd" Message-Id: <1015801496.527.78.camel@notebook> Mime-Version: 1.0 X-Mailer: Evolution/1.0.2 Date: 11 Mar 2002 01:06:34 +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=-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