All of lore.kernel.org
 help / color / mirror / Atom feed
* broken shared-mime-info and MIME typing
@ 2008-12-04  9:51 Stanislav Brabec
  2008-12-04 11:18 ` Koen Kooi
  2008-12-04 11:54 ` Koen Kooi
  0 siblings, 2 replies; 8+ messages in thread
From: Stanislav Brabec @ 2008-12-04  9:51 UTC (permalink / raw)
  To: openembedded-devel

Looking at MIME binding, I found that it is now completely broken.

We have mime.class, that provides install-time generating of the
database.

shared-mime-info attempts to provide compile-time generating of the
database. As it does not contain freedesktop.org.xml, any package using
mime.class calling update-mime-database will remove 99% of entries in
the MIME database.

Creating database during the build time is not possible yet and would
require significant changes in update-mime-database (or writing a
different tool):
There is no way to create /usr/share/mime/magic, subclasses, mime.cache
during the build time => it must be done during installation. Note that
mime.cache is a binary file.


Proposal:

- Install freedesktop.org.xml again.
- Change mime.class:
  - Change scripts: First test, whether update-mime-database is
    installed, if yes, then call it.
  - mime class should not RDEPEND on shared-mime-info (now it depends,
    but it is missing there and may cause installation errors)
  - mime_prerm should be probably postrm => update database after
    package removal
- default to --disable-update-mimedb

Alternatives:

- Write update-mime-database alternative capable to build magic without
  freedesktop.org.xml.
- Patch update-mime-database to allow compressed packages/*.xml.
- Return to compile time and write a tool capable to create MIME
  database for all packages available in the feed as the part of
  package-index creation. It would need a special XDG_* variables
  settings, so applications will be able to collect magic from all
  repositories.

-- 
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-12-04 17:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-04  9:51 broken shared-mime-info and MIME typing Stanislav Brabec
2008-12-04 11:18 ` Koen Kooi
2008-12-04 11:54 ` Koen Kooi
2008-12-04 13:09   ` Stanislav Brabec
2008-12-04 13:28     ` Koen Kooi
2008-12-04 15:33       ` Stanislav Brabec
2008-12-04 15:45         ` Koen Kooi
2008-12-04 17:18           ` Stanislav Brabec

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.