Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945892 - x11-misc/xdg-utils[plasma] does not depend on kde-cli-tools but should
Summary: x11-misc/xdg-utils[plasma] does not depend on kde-cli-tools but should
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-05 06:01 UTC by Michael Moon
Modified: 2025-01-04 16:35 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moon 2024-12-05 06:01:24 UTC
xdg-mime query filetype «file» attempts to invoke kmimetypefinder (when it detects a plasma DE) which isn't installed and thus fails.

Unfortunately it fails silently, I had to bash -x /usr/bin/xdg-mime … to find out why.

kmimetypefinder is provided by kde-plasma/kde-cli-tools

xdg-utils[plasma] should either depend on kde-plasma/kde-cli-tools, or it should not assume that kmimetypefinder is available simply because $XDG_CURRENT_DESKTOP=KDE
Comment 1 Andreas Sturmlechner gentoo-dev 2024-12-05 21:31:25 UTC
I must point out that kde-plasma/plasma-meta already pulls in kde-cli-tools.

Nevertheless, this should be covered I guess.
Comment 2 Michael Moon 2024-12-11 06:40:21 UTC Comment hidden (obsolete)
Comment 3 Andreas Sturmlechner gentoo-dev 2024-12-11 22:31:27 UTC
Please do not paste unrelated output in bugs. This is not forums.gentoo.org.
Comment 4 Larry the Git Cow gentoo-dev 2025-01-04 16:35:36 UTC
The bug has been closed via the following commit(s):

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

commit b12f7c904dd4c3dcae6b9dae00429af781ae67ee
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-04 16:32:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-04 16:34:05 +0000

    x11-misc/xdg-utils: depend on kde-plasma/kde-cli-tools for USE=plasma
    
    Needed for `xdg-mime query filetype XXX` -> `kmimetypefinder`.
    
    Put in PDEPEND because it feels likely a circular dep will crop up
    here again (if there isn't already one w/o this in PDEPEND).
    
    Closes: https://bugs.gentoo.org/945892
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/arm/package.use.mask                                  | 6 +++++-
 profiles/arch/loong/package.use.mask                                | 6 +++++-
 profiles/arch/powerpc/ppc64/package.use.stable.mask                 | 6 +++++-
 profiles/arch/x86/package.use.stable.mask                           | 4 ++++
 .../{xdg-utils-1.2.1-r6.ebuild => xdg-utils-1.2.1-r7.ebuild}        | 3 ++-
 5 files changed, 21 insertions(+), 4 deletions(-)