Bug 547287 - Both cache version -2 and -3 files exists
Summary: Both cache version -2 and -3 files exists
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: fontconfig
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Behdad Esfahbod
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 546706 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-14 09:07 UTC by Parag Nemade
Modified: 2009-12-15 12:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-15 04:38:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 :).


Note You need to log in before you can comment on or make changes to this bug.