Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238727 - gnome2-utils.eclass: gconf default values not ${ROOT} aware
Summary: gnome2-utils.eclass: gconf default values not ${ROOT} aware
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 09:22 UTC by Gilles Dartiguelongue (RETIRED)
Modified: 2008-10-22 21:11 UTC (History)
0 users

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


Attachments
gnome2-utils.eclass.patch (gnome2-utils.eclass.patch,767 bytes, patch)
2008-10-07 10:11 UTC, Gilles Dartiguelongue (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-09-26 09:22:41 UTC
Hi guys, we've been trying to create installable systems with some gnome dependencies at work in ${ROOT} prefix to generate snapshots and apps were doing crazy stuff when installed because they couldn't access their default values in gconf. See the following line of the gnome2-utils.eclass:

export GCONF_CONFIG_SOURCE="$("${GCONFTOOL_BIN}" --get-default-source)"

the problem is that it returns "xml:merged:/etc/gconf/gconf.xml.defaults"

This is wrong if you're using ${ROOT} obviously and messes up with your system in / for no reason. I'll be fixing it asap unless you guys beat me to it.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-07 10:11:40 UTC
Created attachment 167523 [details, diff]
gnome2-utils.eclass.patch

This patch fixes it for me, please check I'm not doing anything stupid :)
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2008-10-07 11:20:59 UTC
Patch looks fine to me, but I'm not ruling out my own stupidity :D
Comment 3 Mart Raudsepp gentoo-dev 2008-10-07 16:08:49 UTC
So after discussions on IRC, one of the quotings looked wrong
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-19 10:37:57 UTC
actually it wasn't. it was said on the chan that $() has special expansion rules that makes internal quotes not interfere with external quotes.
Comment 5 Mart Raudsepp gentoo-dev 2008-10-19 14:17:41 UTC
But why is the quoting different in one line compared to the other changed line, while it's otherwise completely the same?
Comment 6 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-10-21 01:24:08 UTC
The second qouting is still wrong.  It should match the first.
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-22 21:11:28 UTC
fixed the quoting.