Re: What's cooking in git.git (Apr 2014, #09; Tue, 29)
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 7, 2014, 09:26 UTC
- Message-ID
- <5369fc2e2df7_2d8a92330813@nysa.notmuch>
- In-Reply-To
- <20140507080558.GH23935@serenity.lan>
John Keeping wrote:
Show 15 quoted lines
> > I also think that there should be a way to make it really easy to > > install these third-party tools to augment the installed version of > > Git without having the source tree of Git. We have ways for them to > > ask us where things are expected to be, e.g. > > > > $ git --html-path > > $ git --man-path > > $ git --exec-path > > > > but I am not sure if these are enough, or if it would help them to > > add a bit more, then what these "a bit more" are. > > I think this is enough - now I need to go and make git-integration's > Makefile use them by default rather than just using the same defaults as > git.git.
This is wrong. Subprojects should use /usr/bin/ and /usr/share/man/ and not rely on the output of `git --exec-path` and so on.
For example if the user has installed Git in his $home, when building a package the package manager would use ~/libexec/git-core, which is wrong.
Moreover, if you are cross-compiling you won't be able to run the target's `git` binary.
If anything, it should be `pkg-config --variable=exec-path git`.
-- Felipe Contreras