Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 936844

Summary: x11-misc/xdg-utils: xdg-mime typo introduced from xdg-utils-1.2.1-qtpaths.patch affecting xdg-utils-v1.2.1-r4 and maybe earlier
Product: Gentoo Linux Reporter: Andrew Waggoner <me>
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=934941
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew Waggoner 2024-07-28 17:03:31 UTC
xdg-utils-v1.2.1-r4 reports an error when using xdg-mime:

/usr/bin/xdg-mime: line 904: [: missing `]'


This can be tracked to the qtpaths patch, here's the relevant line:

 +    elif [ x"$KDE_SESSION_VERSION" = x"5" ; then

Where we're just missing the bracket.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-28 17:07:36 UTC
Pff. Thanks.
Comment 2 Larry the Git Cow gentoo-dev 2024-07-28 17:12:17 UTC
The bug has been closed via the following commit(s):

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

commit ab5f906c946fa46807aefe86f42a8252f3f1313b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-07-28 17:11:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-28 17:11:54 +0000

    x11-misc/xdg-utils: fix another typo(!)
    
    Closes: https://bugs.gentoo.org/936844
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-misc/xdg-utils/files/xdg-utils-1.2.1-qtpaths.patch                  | 2 +-
 .../xdg-utils/{xdg-utils-1.2.1-r5.ebuild => xdg-utils-1.2.1-r6.ebuild}  | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
Comment 3 Andrew Waggoner 2024-07-28 17:18:14 UTC
(In reply to Sam James from comment #1)
> Pff. Thanks.

It helped me dip my toes into the gentoo bug tracker, so it was good for me too :)