Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 776286 - media-gfx/gpicview-0.2.5-r2 should call xdg_desktop_database_update and xdg_icon_cache_update in pkg_postinst and pkg_postrm phases
Summary: media-gfx/gpicview-0.2.5-r2 should call xdg_desktop_database_update and xdg_i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Piotr Karbowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-15 07:22 UTC by Dmitry Suloev
Modified: 2021-03-16 22:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild with necessary functions calls. (gpicview-0.2.5-r2.ebuild,728 bytes, text/plain)
2021-03-15 07:29 UTC, Dmitry Suloev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Suloev 2021-03-15 07:22:44 UTC
After installing gpicview I got this:
 * QA Notice: .desktop files with MimeType= were found installed
 * but desktop mimeinfo cache has not been updated:
 *   /usr/share/applications/gpicview.desktop
 * Please make sure to call xdg_desktop_database_update()
 * in pkg_postinst() and pkg_postrm() phases of appropriate pkgs.
 * QA Notice: new icons were found installed but icon cache
 * has not been updated:
 *   /usr/share/icons/hicolor/48x48/apps/gpicview.png
 * Please make sure to call xdg_icon_cache_update()
 * in pkg_postinst() and pkg_postrm() phases of appropriate pkgs.

Reproducible: Always

Steps to Reproduce:
1. emerge gpicview::gentoo
Comment 1 Dmitry Suloev 2021-03-15 07:29:27 UTC
Created attachment 691467 [details]
ebuild with necessary functions calls.
Comment 2 Ionen Wolkens gentoo-dev 2021-03-15 07:44:01 UTC
(In reply to Dmitry Suloev from comment #1)
> ebuild with necessary functions calls.
Seems the idea was to migrate to xdg.eclass (which handles this itself, allowing to drop pkg_post*) but omitted to change the inherit from xdg-utils.
Comment 3 Ionen Wolkens gentoo-dev 2021-03-15 07:55:53 UTC
On a side-note, FEATURES=parallel-install inhibit this QA warning, and so likely didn't see it.
Comment 4 Zac Medico gentoo-dev 2021-03-16 22:20:42 UTC
The implementation details for the qa check make the results unreliable for parallel-install, which is no fault of parallel-install.
Comment 5 Larry the Git Cow gentoo-dev 2021-03-16 22:23:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b92c8f9b9488e706b482935ee9f8e7fe4c103dab

commit b92c8f9b9488e706b482935ee9f8e7fe4c103dab
Author:     Piotr Karbowski <slashbeast@gentoo.org>
AuthorDate: 2021-03-16 22:21:57 +0000
Commit:     Piotr Karbowski <slashbeast@gentoo.org>
CommitDate: 2021-03-16 22:23:00 +0000

    media-gfx/gpicview: Fix QA warnings about .desktop files.
    
    Went unotticed due to FEATURES=parallel-install.
    
    Closes:https://bugs.gentoo.org/776286
    Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>

 media-gfx/gpicview/gpicview-0.2.5-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)