elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde; "==" should be "=" That line produces an error in dash.
From the freedesktop.org bug report: Comment #1 from Rex Dieter <rdieter@math.unl.edu> 2011-07-05 09:25:17 PDT --- this is fixed in git, that code was refactored into a case statement to no longer include any explicit == or = comparisons I suggest patching the script in the meanwhile.
Created attachment 281131 [details, diff] files/xdg-utils-1.1.0_rc1_p20110519-bashism.patch
Created attachment 281133 [details, diff] xdg-utils-1.1.0_rc1_p20110519.ebuild.patch freedesktop team, This patch apply the above replacing '==' with '=' to the source tree. If there's no problem with the patch, I'd like to apply it. Thanks,
Are you sure it's reported, let alone fixed at upstream yet? Looking at [1], I'm seeing a lot lines with == syntax [1] http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-desktop-icon Please report to upstream & apply the patch in portage :)
It has been reported (see the bug in "See Also"), and claimed as fixed, but I reopened the bug now. http://bugs.freedesktop.org/show_bug.cgi?id=38959
The upstream says it's fixed now (see the URL above).
+*xdg-utils-1.1.0_rc1_p20111003 (03 Oct 2011) + + 03 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> + +xdg-utils-1.1.0_rc1_p20111003.ebuild: + New snapshot for solving bugs #367993 (x-scheme-handler) and #374015 + (bashism). Thanks to Cyprien Nicolas, Naohiro Aota and "Faustus".