$ emerge -1 app-text/coolreader These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ~] app-text/coolreader-3.1.2.71-r2::gentoo USE="wxwidgets" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB Produces the followin warning message: * QA Notice: .desktop files with MimeType= were found installed * but desktop mimeinfo cache has not been updated: * /usr/share/applications/cr3.desktop * Please make sure to call xdg_desktop_database_update() * in pkg_postinst() and pkg_postrm() phases of appropriate pkgs. Upstream provided and installed desktop file contains the following value: $ grep Mime /usr/share/applications/cr3.desktop MimeType=application/epub+zip;application/x-fictionbook+xml;application/x-zip-compressed-fb2;text/html;application/xhtml+xml;text/plain;application/x-psion-compressed-text;application/rtf;application/zip;application/x-chm; We need either to include a proper eclass, or re-define named functions (pkg_postinst() and pkg_postrm()). P.S. One more related issue: /etc/mime.types database contains only application/epub+zip, text/html, application/xhtml+xml, text/plain, application/rtf and application/zip. But not application/x-fictionbook+xml, application/x-zip-compressed-fb2, application/x-psion-compressed-text and application/x-chm. This database is handled by Gentoo: $ equery b /etc/mime.types * Searching for /etc/mime.types ... app-misc/mime-types-9 (/etc/mime.types) Am I to open a separate bug to add missed MimeTypes?
(In reply to Sergey S. Starikoff from comment #0) > /etc/mime.types database contains only application/epub+zip, text/html, > application/xhtml+xml, text/plain, application/rtf and application/zip. But > not application/x-fictionbook+xml, application/x-zip-compressed-fb2, > application/x-psion-compressed-text and application/x-chm. *.fb2.zip (i.e. application/x-zip-compressed-fb2) is the most popular ebook format in Russia. E.g., on my laptop grozin@dns ~/Books $ find -name '*.fb2.zip' | wc -l 7165 I suppose uncompressed *.fb2 files are application/x-fictionbook+xml; I always zip them to save disk space, but many users may keep uncompressed books. I have a few *.chm books too (application/x-chm). I know nothing about application/x-psion-compressed-text. Surely, all of these mime types are not official. But I think it would be a good idea to include them in /etc/mime.types.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ad49108eb8aa7b5a355b9ec73bfd3691af9957 commit 28ad49108eb8aa7b5a355b9ec73bfd3691af9957 Author: Andrey Grozin <grozin@gentoo.org> AuthorDate: 2018-01-04 08:39:29 +0000 Commit: Andrey Grozin <grozin@gentoo.org> CommitDate: 2018-01-04 08:39:29 +0000 app-text/coolreader: ebuild improvements (1) install only translations mentioned in the user's L10N (2) update cashes (desktop, mime, icon) Closes: https://bugs.gentoo.org/642212 Package-Manager: Portage-2.3.19, Repoman-2.3.6 app-text/coolreader/coolreader-3.1.2.71-r4.ebuild | 91 +++++++++++++++++++++++ 1 file changed, 91 insertions(+)
(In reply to Andrey Grozin from comment #1) > Surely, all of these mime types are not official. > But I think it would be a good idea to include them in > /etc/mime.types. For my mind it is not very good idea with unconditional extension system's mime database with unofficial items. I suggest to add in app-misc/mime-types package some README file with description of official database. And make USE-conditional unofficial extensions (probably, not only ebooks have widely use unofficial extensions).