Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Apr 2005 18:21:43 +0200
From:      Dejan Lesjak <dejan.lesjak@ijs.si>
To:        Oliver Lehmann <lehmann@ans-netz.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: fonts-cache.1 "logic" in pkg-plist
Message-ID:  <200504071821.44237.dejan.lesjak@ijs.si>

next in thread | raw e-mail | index | archive | help
--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--



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