[oe] broken shared-mime-info and MIME typing
Koen Kooi
k.kooi at student.utwente.nl
Thu Dec 4 11:18:27 UTC 2008
On 04-12-08 10:51, Stanislav Brabec wrote:
> 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.
Done
> - mime_prerm should be probably postrm => update database after
> package removal
Done
regards,
Koen
More information about the Openembedded-devel
mailing list