GNOME Bugzilla – Bug 653048
config: Set JHBUILD_PREFIX in environment
Last modified: 2011-06-22 14:41:14 UTC
This is useful for other tools to consume; for example, in my .bashrc, I want to show: [jhbuild=/src/build/jhbuild] Also, my "metabuild" tool will use it as a default for $prefix.
Created attachment 190314 [details] [review] config: Set JHBUILD_PREFIX in environment
Thank you for the patch. I don't understand. Why do you want your .bashrc to show the prefix? prefix is rarely changed. Is metabuild tool only used by you? If so, why upstream this?
(In reply to comment #2) > Thank you for the patch. I don't understand. Why do you want your .bashrc to > show the prefix? prefix is rarely changed. I actually do use two separate prefixes sometimes, one for GNOME and one just for dbus and dbus-glib. Rationale: building libdbus in your GNOME root as we all know means lots of manual futzing. > Is metabuild tool only used by you? Currently maybe =) > If so, why upstream this? I think it's just generally useful; besides the bash prompt and metabuild, simply telling people to e.g.: rm $JHBUILD_PREFIX/lib/*.la -rf or whatever can always work.
Review of attachment 190314 [details] [review]: (In reply to comment #3) > I actually do use two separate prefixes sometimes, one for GNOME and one just > for dbus and dbus-glib. Rationale: building libdbus in your GNOME root as we > all know means lots of manual futzing. Ok, I understand now. > I think it's just generally useful; besides the bash prompt and metabuild, > simply telling people to e.g.: > > rm $JHBUILD_PREFIX/lib/*.la -rf > This won't work. You'd have to tell people: jhbuild run rm $JHBUILD_PREFIX/lib/*.la -rf And then the users will think why use jhbuild run with the system command rm. The users will think 'I thought jhbuild run was for jhbuilt software'. Thank you for the patch. Committed. http://git.gnome.org/browse/jhbuild/commit/?id=f52ee06486cb61e9e05bc62995cff6e045927187
(In reply to comment #4) > > jhbuild run rm $JHBUILD_PREFIX/lib/*.la -rf > > And then the users will think why use jhbuild run with the system command rm. Ah, well I think I'd like to migrate to where the first thing we tell jhbuilders to do is: jhbuild shell And then work from inside there. I understand why we weren't doing this before; it means all commands (e.g. ssh) get run under the jhbuild envrionment. But gnome-terminal has tabs and new windows for that. > The users will think 'I thought jhbuild run was for jhbuilt software'. > > Thank you for the patch. Committed. > > http://git.gnome.org/browse/jhbuild/commit/?id=f52ee06486cb61e9e05bc62995cff6e045927187 Thank you!