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
pgpTlmMmjRgHd.pgp
Description: PGP signature