cvs commit: ports/chinese/big5width Makefile

Kris Kennaway kris at obsecurity.org
Sat Nov 11 19:41:22 UTC 2006


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

> > > |  PORTNAME=	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
> > 
> > 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.
> 
> I thought the line in pkg-plist
> 
> @unexec rm -f %%BASELOCALEDIR%%/%%LANG%%/LC_CTYPE; mv -f %D/share/locale/%%LANG%%/LC_CTYPE.old %%%BASELOCALEDIR%%/%%LANG%%/LC_CTYPE
> 
> should do the trick.
> 
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20061111/40b050a7/attachment-0001.pgp


More information about the cvs-all mailing list