Re: [PATCH] Extend runtime prefix computation

2016-04-20 Thread Michael Weiser
Hi, On Fri, Apr 15, 2016 at 09:43:29AM -0700, Junio C Hamano wrote: > We tend to avoid system specific includes in individual *.c files. > Perhaps implement platform specific bits in compat/? E.g. each > platform specific file in compat/ may implement and export the same > git_extract_argv_path

[PATCH] Extend runtime prefix computation

2016-04-15 Thread Michael Weiser
Make git fully relocatable at runtime extending the runtime prefix calculation. Handle absolute and relative paths in argv0. Handle no path at all in argv0 in a system-specific manner. Replace assertions with initialised variables and checks that lead to fallback to the static prefix. --- Notes:

Re: [PATCH] Extend runtime prefix computation

2013-10-04 Thread Michael Weiser
Hi, On Wed, Apr 17, 2013 at 08:06:47AM +0200, Michael Weiser wrote: > > >> >> Support determining the binaries' installation path at runtime even if > > >> >> called without any path components (i.e. via search path). > > What's the reason y

Re: [PATCH] Extend runtime prefix computation

2013-04-16 Thread Michael Weiser
it. Perl's done it and I've already needed that as well - on Mac OS X. Thanks, -- Michael Weiserscience + computing ag Senior Systems Engineer Geschaeftsstelle Duesseldorf Martinstrasse 47-55, Haus A phone: +49 211 302 708 32

Re: [PATCH] Extend runtime prefix computation

2013-04-16 Thread Michael Weiser
Hello Junio, Hello list, On Wed, Mar 06, 2013 at 09:19:42AM +0100, Michael Weiser wrote: > > >> Support determining the binaries' installation path at runtime even if > > >> called without any path components (i.e. via search path). > > The default for any cha

Re: [PATCH] Extend runtime prefix computation

2013-03-06 Thread Michael Weiser
Is there any > reason why we want this change? It makes a binary git installation fully relocatable. Seeing how git already has basic support for it I thought other people might be interested in this. Thanks, -- Michael Weiserscience + computing ag Senior Systems Engineer

Re: [PATCH] Extend runtime prefix computation

2013-03-05 Thread Michael Weiser
Hello, On Tue, Nov 27, 2012 at 05:30:04PM +0100, Michael Weiser wrote: > Support determining the binaries' installation path at runtime even if > called without any path components (i.e. via search path). Implement > fallback to compiled-in prefix if determination fails or is impo

Re: [PATCH] Extend runtime prefix computation

2012-11-30 Thread Michael Weiser
in place. So I guess this should be added in a separate patch by someone actually in need of it and in a position to develop and test it? Thanks, -- Michael Weiserscience + computing ag Senior Systems Engineer Geschaeftsstelle Duesseldorf Martins

[PATCH] Extend runtime prefix computation

2012-11-27 Thread Michael Weiser
Support determining the binaries' installation path at runtime even if called without any path components (i.e. via search path). Implement fallback to compiled-in prefix if determination fails or is impossible. Signed-off-by: Michael Weiser --- - Has two very minor memory leaks - functi