Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2006 14:41:06 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Rong-En Fan <rafan@FreeBSD.org>
Cc:        cvs-ports@FreeBSD.org, ports-committers@FreeBSD.org, cvs-all@FreeBSD.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: cvs commit: ports/chinese/big5width Makefile
Message-ID:  <20061111194106.GA8467@xor.obsecurity.org>
In-Reply-To: <20061111185430.GG20014@svm.csie.ntu.edu.tw>
References:  <200611111844.kABIiIUY022772@repoman.freebsd.org> <20061111184817.GA7300@xor.obsecurity.org> <20061111185430.GG20014@svm.csie.ntu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Nov 12, 2006 at 02:54:30AM +0800, Rong-En Fan wrote:

> > > |  PORTNAME=3D	big5width
> > > | @@ -48,8 +48,10 @@ do-install:
> > > |  	${INSTALL_DATA} ${WRKSRC}/LC_CTYPE ${LOCALEDIR}/${LANG}
> > > |  	${CP} -p ${BASELOCALEDIR}/${LANG}/LC_CTYPE \
> > > |  		${LOCALEDIR}/${LANG}/LC_CTYPE.old
> > > | +.if !defined(PACKAGE_BUILDING) # don't modify building environment
> > > |  	${LN} -sf ${LOCALEDIR}/${LANG}/LC_CTYPE \
> > > |  		${BASELOCALEDIR}/${LANG}/LC_CTYPE
> > > | +.endif
> >=20
> > I'd prefer not to hack around the issue by just hiding it from view.
> > The package should put things back the way they were when
> > deinstalling, to not leave the user system in a dirty state.
>=20
> I thought the line in pkg-plist
>=20
> @unexec rm -f %%BASELOCALEDIR%%/%%LANG%%/LC_CTYPE; mv -f %D/share/locale/=
%%LANG%%/LC_CTYPE.old %%%BASELOCALEDIR%%/%%LANG%%/LC_CTYPE
>=20
> should do the trick.
>=20
> The build error is due to /usr/share/locale/zh_TW.UTF-8/LC_CTYPE is a
> link, when mtree expects to see a file. OK, I can make it a file, and
> put back the old one when deinstall. Does this approach sound ok for
> you?

Actually the other way around: it used to be a link (so it expects it
to still be a link), and now it's a file.  This is what I mean by
putting things back the way they were.

Kris

--AhhlLboLdkugWU4S
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFVidSWry0BWjoQKURAmIXAKDvgMpy/unsu385sOfC27ADhQh86QCgv6DL
eG2iUvw3siBTT18cmdojiJM=
=6UHy
-----END PGP SIGNATURE-----

--AhhlLboLdkugWU4S--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061111194106.GA8467>