Bug 155404 - FC: cache for /usr/lib/ooo-2.0/share/fonts/truetype is outdated after update of OpenOffice_org package
Summary: FC: cache for /usr/lib/ooo-2.0/share/fonts/truetype is outdated after update ...
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: OpenOffice.org (show other bugs)
Version: Beta 6
Hardware: All SuSE Linux 10.1
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Petr Mladek
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-06 14:25 UTC by Petr Mladek
Modified: 2006-03-08 10:12 UTC (History)
1 user (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.