Bug 547287

Summary: Both cache version -2 and -3 files exists
Product: [Fedora] Fedora Reporter: Parag Nemade <pnemade>
Component: fontconfigAssignee: Behdad Esfahbod <behdad>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: behdad, fonts-bugs, ghisha, i18n-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-15 04:38:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Parag Nemade 2009-12-14 09:07:16 UTC
Description of problem:
after upgrading fontconfig, I see new architecture definition is picked in cache dir but old cache with x86_64 arch and -2 version remains.

Shouldn't -2 cache be deleted? 

Version-Release number of selected component (if applicable):
fontconfig-2.8.0-1.fc12.x86_64
fontconfig-2.8.0-1.fc12.i686


How reproducible:
always

Steps to Reproduce:
1."ls -l /var/cache/fontconfig/"
2. See both versions cache files 
3.
  
Actual results:
Both cache versions -2 and -3 files exists.

Expected results:
should only -3 with new arch definition exists in /var/cache/fontcofig

Additional info:

Comment 1 Behdad Esfahbod 2009-12-15 04:38:57 UTC
We don't clear the older versions.  It's a legitimate scenario to use a home directory with multiple versions of fontconfig, see deleting the old caches would be problematic.

The issue of system caches only affects  F12 since we shipped with 2.7.x then updated to 2.8.0.  I checked the size of the caches and we are talking about 200k worth of stale caches.  Not a huge deal not deleting them IMO.

Comment 2 Behdad Esfahbod 2009-12-15 04:39:07 UTC
*** Bug 546706 has been marked as a duplicate of this bug. ***

Comment 3 Giandomenico De Tullio 2009-12-15 08:40:19 UTC
(In reply to comment #1)
> We don't clear the older versions.  It's a legitimate scenario to use a home
> directory with multiple versions of fontconfig, see deleting the old caches
> would be problematic.

Ok, then remove/comment the (useless) scriptlet lines: 

# Remove stale caches
rm -f /var/cache/fontconfig/????????????????????????????????.cache-2
rm -f /var/cache/fontconfig/stamp

کریسمس مبارک - (From wikipedia ;) )
:)

Comment 4 Behdad Esfahbod 2009-12-15 12:26:16 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > We don't clear the older versions.  It's a legitimate scenario to use a home
> > directory with multiple versions of fontconfig, see deleting the old caches
> > would be problematic.
> 
> Ok, then remove/comment the (useless) scriptlet lines: 
> 
> # Remove stale caches
> rm -f /var/cache/fontconfig/????????????????????????????????.cache-2
> rm -f /var/cache/fontconfig/stamp

I did in devel.  That was leftover from rawhide a few releases back when the filenames were changed during a development cycle.

> کریسمس مبارک - (From wikipedia ;) )
> :)  

Thanks :).