Bug 155404

Summary: FC: cache for /usr/lib/ooo-2.0/share/fonts/truetype is outdated after update of OpenOffice_org package
Product: [openSUSE] SUSE Linux 10.1 Reporter: Petr Mladek <pmladek>
Component: OpenOffice.orgAssignee: Petr Mladek <pmladek>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: suse-beta
Version: Beta 6   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Petr Mladek 2006-03-06 14:25:06 UTC
Sometimes after an update of the package OpenOffice_org, the following messages are printed by the OOo application:

--- cut ---
$> ooffice
FC: cache for /usr/lib/ooo-2.0/share/fonts is outdated,
    consider running "fc-cache" as root!
FC: cache for /usr/lib/ooo-2.0/share/fonts is outdated,
    consider running "fc-cache" as root!
FC: cache for /usr/lib/ooo-2.0/share/fonts is outdated,
    consider running "fc-cache" as root!
FC: cache for /usr/lib/ooo-2.0/share/fonts is outdated,
    consider running "fc-cache" as root!
FC: cache for /usr/lib/ooo-2.0/share/fonts/truetype is outdated,
    consider running "fc-cache" as root!
FC: cache for /usr/lib/ooo-2.0/share/fonts/truetype is outdated,
    consider running "fc-cache" as root!
FC: cache for /usr/lib/ooo-2.0/share/fonts/truetype is outdated,
    consider running "fc-cache" as root!
FC: cache for /usr/lib/ooo-2.0/share/fonts/truetype is outdated,
    consider running "fc-cache" as root!
--- cut ---

They disappear after I run fc-cache as root.

Should we update the cache in the %post, %postun script of the package OpenOffice_org? What is the best way to do it?

Mike, could you help here?
Comment 1 Mike Fabian 2006-03-06 15:33:45 UTC
    %post
    %run_suseconfig_fonts

    %postun
    %run_suseconfig_fonts 

In the package/sub-package which owns the stuff in the
usr/lib/ooo-2.0/share/fonts/truetype directory.

All font-packages have "%run_suseconfig_fonts" in "%post" and "%postun".
If OpenOffice or a sub-package of OpenOffice changes something in a
font-directory, it should do the same.

If CJK-fonts are in that directory (not the case currently for OpenOffice),
the option -c should be added:

    %run_suseconfig_fonts -c

Comment 2 Petr Mladek 2006-03-08 10:12:18 UTC
Mike, thanks for help.

I have fixed it. The fixed package should beavailable on SL 10.1-beta8/NLD10-beta8.