Subject: fc-cache force_rebuild [PSARC/2008/106 FastTrack timeout 02/19/2008] To: PSARC-ext@Sun.Com Cc: Alan.Coopersmith@Sun.COM Bcc: one-pager-list@sac.sfbay one-pager-log@sac.sfbay sac-bar@sac.sfbay I am sponsoring this fasttrack for myself and have set the timeout to next Tuesday, February 19, 2008. -Alan Coopersmith- alan.coopersmith@sun.com Sun Microsystems, Inc. - X Window System Engineering Template Version: @(#)sac_nextcase 1.64 07/13/07 SMI This information is Copyright 2008 Sun Microsystems 1. Introduction 1.1. Project/Component Working Name: fc-cache force_rebuild 1.2. Name of Document Author/Supplier: Author: Alan Coopersmith 1.3 Date of This Document: 12 February, 2008 4. Technical Description This case updates the fc-cache SMF service introduced in PSARC 2004/752 to add a new property and a method script to handle it. It requests a patch release binding. When fc-cache scans the font directories to determine if caches are up to date, it compares date stamps on the cache-files to the font files & directories. However, OS upgrades can install font files with time stamps older than the font caches, but which are not reflected in the font cache. This case changes the SMF service manifest for the fc-cache service to call a simple method script /lib/svc/method/fc-cache instead of /usr/bin/fc-cache directly. This script will check the value of the newly added service property application/force_rebuild, which will have a boolean value. If force_rebuild is true, the script will call fc-cache with the -f flag to force rebuilding all cache files, and then reset the force_rebuild property to false. The force_rebuild flag will be set to true in the postinstall scripts of X consolidation packages that install font files. If force_rebuild is false, the method script will simply call fc-cache with no flags as is currently done, which scans the directories and rebuilds cache files for directories in which changes are detected. Imported Interfaces: -------------------- svc:/application/font/fc-cache Unstable PSARC 2004/752 fc-cache -f External LSARC 2003/273 Exported Interfaces: -------------------- /lib/svc/method/fc-cache Project Private SMF property application/force_rebuild Uncommitted 6. Resources and Schedule 6.4. Steering Committee requested information 6.4.1. Consolidation C-team Name: X Consolidation / Desktop C-Team 6.5. ARC review type: FastTrack 6.6. ARC Exposure: open