Bug 915 - allow to put database cache in other place than /usr/share/mime
Summary: allow to put database cache in other place than /usr/share/mime
Status: RESOLVED INVALID
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-22 16:17 UTC by aris
Modified: 2006-07-10 01:59 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Quick hack to do it. (3.18 KB, patch)
2004-07-22 16:20 UTC, aris
Details | Splinter Review

Description aris 2004-07-22 16:17:48 UTC
Appropriate place for cached data is /var/cache/, We have database cache in
/var/cache/mime.
Comment 1 aris 2004-07-22 16:20:18 UTC
Created attachment 515 [details] [review]
Quick hack to do it.
Comment 2 Arioch 2005-03-12 10:45:16 UTC
I'd comment that AltLinux version introduced the 2nd argument to update-mime-
database and made it required (it is intended to be /var/cache/mime)!

I think for the sake of compatibility it is to be optional until freedesktop,org 
will approve it is required and put it into their downloads.
Let there will be warning if it is omitted, but the program is to work anyhow. 
But currently it breaks any scripts made for other u-m-d versions :-(
Comment 3 Thomas Leonard 2005-03-12 11:46:37 UTC
Perhaps you could make some symlinks instead, eg:

/usr/share/mime -> /var/cache/mime
/var/cache/mime/packages -> /use/share/mime-packages

That would get the same effect, without breaking other applications.

However, although it's a cache, it's only updated at install time, not runtime.
So it's more like Python .pyc files, or the library symlinks like:

/usr/lib/libpng12.so -> libpng.so.0

Do you also put these under /var/cache? It seems strange...
Comment 4 Bastien Nocera 2006-07-09 03:12:48 UTC
Matthias, what do you think of this request?
Comment 5 Matthias Clasen 2006-07-09 06:23:55 UTC
I agree with Thomas that there is no particularly convincing reason why
intall time caches like the mime cache or the icon caches need to live
under /var/cache. If you can install something under /usr/share, you
can also update the caches there...

If altlinux is serious about this, they should discuss changes to the
mime spec, since it explicitly specifies that the cache files are
created in the directory specified as the first argument to
update-mime-database.
Comment 6 Bastien Nocera 2006-07-10 01:59:49 UTC
As per Matthias' comments.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.