From owner-freebsd-ports@FreeBSD.ORG Thu Apr 7 16:21:49 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C3ED16A4CE for ; Thu, 7 Apr 2005 16:21:49 +0000 (GMT) Received: from mail.ijs.si (mail.ijs.si [193.2.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 142E843D49 for ; Thu, 7 Apr 2005 16:21:48 +0000 (GMT) (envelope-from dejan.lesjak@ijs.si) Received: from localhost (mail.ijs.si [193.2.4.66]) by patsy.ijs.si (Postfix) with ESMTP id 4A00A1F4456; Thu, 7 Apr 2005 18:21:47 +0200 (CEST) Received: from patsy.ijs.si ([127.0.0.1]) by localhost (patsy.ijs.si [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17181-01-9; Thu, 7 Apr 2005 18:21:45 +0200 (CEST) Received: from idefix.ijs.si (idefix.ijs.si [193.2.4.33]) by patsy.ijs.si (Postfix) with ESMTP id 5BA701F4463; Thu, 7 Apr 2005 18:21:45 +0200 (CEST) Received: from localhost.ijs.si (localhost.ijs.si [127.0.0.1]) by idefix.ijs.si (Postfix) with ESMTP id D990D5C0A; Thu, 7 Apr 2005 18:21:44 +0200 (CEST) From: Dejan Lesjak To: Oliver Lehmann Date: Thu, 7 Apr 2005 18:21:43 +0200 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_Y4VVCeN5t5s3BLD" Message-Id: <200504071821.44237.dejan.lesjak@ijs.si> X-Virus-Scanned: amavisd-new at ijs.si cc: freebsd-ports@freebsd.org Subject: Re: fonts-cache.1 "logic" in pkg-plist X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 16:21:49 -0000 --Boundary-00=_Y4VVCeN5t5s3BLD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Oliver Lehmann wrote: > Hi, > > i've that in my tv-fonts/pkg-plist: > > @unexec rm %D/lib/X11/fonts/misc/fonts.cache-1 || true > @unexec fc-cache -f -v %D/lib/X11/fonts/misc || true > @unexec if [ ! -s %D/lib/X11/fonts/misc/fonts.cache-1 ]; then rm %D/lib/ > X11/fonts/misc/fonts.cache-1; fi > > but pointyhat complains: > > === Checking filesystem state > list of files present before this port was installed but missing after it > was deinstalled) > ./usr/X11R6/lib/X11/fonts/misc/fonts.cache-1 missing > > So... what should I do? Just remove the last rm if the cache file has a > size of 0? Auh, my fault entirely :-/ This happens on 4.X because fonts/misc directory is in mtree file that is used there and is therefore present when fontconfig runs fc-cache (before tv-fonts installs). This then puts fonts.cache-1 file in that directory and since it is there before tv-fonts are installed pointyhat errors. Putting %%NEWMTREE%% before line @unexec if [ ! -s %D/lib... (just as is with the last line) fixes things. Patch also attached. I apologise and humbly await my pointy hat. Dejan --Boundary-00=_Y4VVCeN5t5s3BLD Content-Type: text/plain; charset="us-ascii"; name="tv-fonts.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tv-fonts.diff" --- pkg-plist.orig Thu Apr 7 18:17:02 2005 +++ pkg-plist Thu Apr 7 18:17:29 2005 @@ -22,5 +22,5 @@ lib/X11/fonts/misc/teletext4i.pcf.gz @unexec rm %D/lib/X11/fonts/misc/fonts.cache-1 || true @unexec fc-cache -f -v %D/lib/X11/fonts/misc || true -@unexec if [ ! -s %D/lib/X11/fonts/misc/fonts.cache-1 ]; then rm %D/lib/X11/fonts/misc/fonts.cache-1; fi +%%NEWMTREE%%@unexec if [ ! -s %D/lib/X11/fonts/misc/fonts.cache-1 ]; then rm %D/lib/X11/fonts/misc/fonts.cache-1; fi %%NEWMTREE%%@unexec rmdir %D/lib/X11/fonts/misc 2>/dev/null || true --Boundary-00=_Y4VVCeN5t5s3BLD--