fonts-cache.1 "logic" in pkg-plist

Dejan Lesjak dejan.lesjak at ijs.si
Thu Apr 7 09:21:49 PDT 2005


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
-------------- next part --------------
--- 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
- at 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


More information about the freebsd-ports mailing list