Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633940 - x11-misc/xdg-utils-1.1.2-r1 xdg-mime awk script syntax error
Summary: x11-misc/xdg-utils-1.1.2-r1 xdg-mime awk script syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-10 15:07 UTC by Sorrow
Modified: 2018-06-13 17:32 UTC (History)
0 users

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


Attachments
awk-length.patch (awk-length.patch,775 bytes, patch)
2017-10-10 15:09 UTC, Sorrow
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sorrow 2017-10-10 15:07:37 UTC
I got multiple awk errors when tried to use xdg-utils and xdg-settings. For example:

$~ xdg-mime query default text/html
awk: cmd. line:13: Unexpected token
awk: cmd. line:13: Unexpected token
awk: cmd. line:13: Unexpected token
firefox.desktop

After some testing I've found the reason: awk funnction "length" is used without parenthesis which is unsupported by gawk. I've created simple patch to fix this.
Comment 1 Sorrow 2017-10-10 15:09:47 UTC
Created attachment 498304 [details, diff]
awk-length.patch
Comment 2 Pacho Ramos gentoo-dev 2017-12-16 13:02:32 UTC
Please report this to upstream and post the link here to let us track the issue:
https://bugs.freedesktop.org/enter_bug.cgi?product=Portland&component=xdg-utils
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2018-06-13 17:32:52 UTC
Fixed in 1.1.3 which is in portage available.

https://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=eda08ef065adac7cfa46f296d378cc06a3131d3e