Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485580 - x11-misc/xdg-utils: Prefix support in env.d
Summary: x11-misc/xdg-utils: Prefix support in env.d
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-21 15:01 UTC by Benda Xu
Modified: 2013-09-24 02:25 UTC (History)
1 user (show)

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


Attachments
xdg-utils.patch (file_485580.txt,1.11 KB, patch)
2013-09-21 15:02 UTC, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2013-09-21 15:01:52 UTC
Hi, this is a trivial patch to let xdg-utils set the correct dir in Prefix.

Reproducible: Always
Comment 1 Benda Xu gentoo-dev 2013-09-21 15:02:37 UTC
Created attachment 359180 [details, diff]
xdg-utils.patch
Comment 2 Benda Xu gentoo-dev 2013-09-21 15:04:37 UTC
Freedesktop herd, would you please review this patch? I think It's simple enough to be commit directly if I get no objections within one week. Thanks.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-09-21 22:47:38 UTC
that looks harmless.
Comment 4 Benda Xu gentoo-dev 2013-09-22 02:00:38 UTC
In tree, thanks Gilles.

  22 Sep 2013; Benda Xu <heroxbd@gentoo.org>
  xdg-utils-1.1.0_rc1_p20120916.ebuild, xdg-utils-1.1.0_rc1_p20130921.ebuild:
  Prefix support for env.d files, bug 485580.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2013-09-24 02:25:35 UTC
(In reply to Benda Xu from comment #1 and comment #4)

You need additional quotes to correctly handle ${EPREFIX} with >=2 consecutive spaces:

$ EPREFIX="/some   path"
$ echo XDG_DATA_DIRS=\"${EPREFIX}/usr/local/share\"
XDG_DATA_DIRS="/some path/usr/local/share"
$ echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/local/share\""
XDG_DATA_DIRS="/some   path/usr/local/share"
$