GNOME Bugzilla – Bug 113703
Installing gconf schemas while using --prefix=$HOME
Last modified: 2004-12-22 21:47:04 UTC
I use to install GNOME applications downloaded form CVS into my home using --prefix=$HOME as ./configure parameter. I found that into the main Makefile of gcalctool the GCONF_SCHEMA_CONFIG_SOURCE variable does not have a prefix in front of it so gconf is not able to install schemas correctly. I defined GCONF_SCHEMA_CONFIG_SOURCE = xml::${prefix}/etc/gconf/gconf.xml.defaults this vai and solved the problem. Stefano
I'm not too familiar with this area, so I asked around. Here's a comment from Glynn Foster: "Hrm, there doesn't look anything wrong in your Makefiles - I think perhaps he just needs to use --sysconfdir=$HOME/etc, since the default for --sysconfdir is /etc. At least, that's my guess. You might want to ask Havoc though. But your Makefiles look fine". So I have an email in to Havoc at the moment. I'll append whatever he suggests.
If you use AM_GCONF_SOURCE_2 in configure.in, then do a makefile snippet as in gnome-terminal/src/Makefile.am, you should be able to specify --with-gconf-source=whatever I can't come up with a way to solve this without manual intervention; if the makefile silently installed to your prefix, the program wouldn't work (gconf would not find the installed data). http://www.gnome.org/projects/gconf/ has more.
Created attachment 16912 [details] Patch to fix this problem (per Havoc's suggestion).
I've checked the attached patch into CVS (v4.2.86). It seems to do the correct thing. I've also attached it to the bug if you'd prefer to try it in isolation (it's a one line change). Thanks.