After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336019 - Staged installs possibly broken if overriding sysconfdir
Staged installs possibly broken if overriding sysconfdir
Status: RESOLVED FIXED
Product: GConf
Classification: Deprecated
Component: gconf
unspecified
Other All
: Normal critical
: ---
Assigned To: GConf Maintainers
GConf Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-03-25 22:56 UTC by Julio Merino
Modified: 2006-05-20 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for the mentioned issue. (1.25 KB, patch)
2006-03-25 22:58 UTC, Julio Merino
accepted-commit_now Details | Review
Fixes for default.path.in. (3.80 KB, patch)
2006-05-12 16:15 UTC, Julio Merino
none Details | Review

Description Julio Merino 2006-03-25 22:56:53 UTC
The patch I sent in bug 134517 possibly broke staged installs if the user overrides sysconfdir from the command line.  E.g.:

    make install sysconfdir=/some/directory

The problem is that sysgconfdir is assigned with double quotes, which leads to the expansion of the sysconfdir variable.  This must not happen within the configure script, as the Automake documentation says; otherwise, the variables cannot be properly overriden from the command line.

In order to fix this issue, the variable has to be assigned with single quotes and sysconfsubdir must be exported to Makefiles so that they can fetch is value during expansion.

I said that this possibly breaks installation because a similar patch did it for gnopernicus (see bug 324283).  I'm not sure though because it is strange that nobody has complained about it yet.  But anyway, the problem is real as the above command will not work with the current code.
Comment 1 Julio Merino 2006-03-25 22:58:00 UTC
Created attachment 62013 [details] [review]
Fix for the mentioned issue.
Comment 2 Mark McLoughlin 2006-05-04 19:21:21 UTC
Looks good, please commit to HEAD
Comment 3 Julio Merino 2006-05-04 19:45:39 UTC
Sorry, I do not have commit privileges.
Comment 4 Kjartan Maraas 2006-05-05 13:29:30 UTC
Commited. Thanks.
Comment 5 William Jon McCann 2006-05-12 15:05:36 UTC
The change to using single quotes does not allow for variable substitution and will cause gconf/2/path to contain entries like:
xml:readonly:${prefix}/etc/gonc/gconf.xml.mandatory
Comment 6 Julio Merino 2006-05-12 16:15:40 UTC
Created attachment 65328 [details] [review]
Fixes for default.path.in.

This patch should fix the issues reported in the last comment; at least it does for me.  Could you please try it?

Thanks.
Comment 7 Kjartan Maraas 2006-05-20 12:36:11 UTC
I applied this patch to both branches since gconf was really broken without it. Now all is well in the land of CVS again. Thanks a lot.