From: Andreas Ericsson <ae@op5.se>
To: git@vger.kernel.org
Subject: Re: [PATCH] C implementation of the 'git' program.
Date: Fri, 11 Nov 2005 13:04:54 +0100 [thread overview]
Message-ID: <437488E6.2050100@op5.se> (raw)
In-Reply-To: <7vveyzskdk.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> Raja R Harinath <rharinath@novell.com> writes:
>
>
>>This is bad, since it does the wrong thing for the correct way:
>>
>> make prefix=/usr
>> sudo make prefix=/usr install
>>
>>With your patch 'git' will be compiled as root.
>
>
> You are correct.
>
> We should allow building as user and installing as root, with
> the installation step _not_ touching the build directory at all.
Sane point. This doesn't work without a ./configure script or some such
though (something external to the Makefile that updates a config-file of
some sort), as
make
(make finishes, user remembers he/she must use prefix= to install somewhere)
make prefix=/usr
wouldn't rebuild git so binaries produced would still try to use
$HOME/bin for libdir. Granted, it's easy enough to do 'touch git.c'
before rebuilding, but it's not exactly intuitive.
I'll hack up a configure-script if that's alright. It should be fairly
short and just define the GIT_VERSION and GIT_LIBDIR macros.
I imagine this can be done through the config.mak file, included from
221 in Makefile, supposing it's forcibly included rather than just if it
exists, and we'll have the 'git:' target depend on it. I think this is
the least intrusive change. OTOH, it might not be bad to move some of
the uname_? logic to a shell-script (and have all targets depend on
config.mak).
Thoughts? I've got a feeling I've overlooked something here.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2005-11-11 12:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 18:26 [PATCH] C implementation of the 'git' program Andreas Ericsson
2005-11-10 19:41 ` Linus Torvalds
2005-11-10 22:50 ` Andreas Ericsson
2005-11-10 23:37 ` Petr Baudis
2005-11-11 19:31 ` Junio C Hamano
2005-11-11 6:58 ` Raja R Harinath
2005-11-11 7:40 ` Junio C Hamano
2005-11-11 12:04 ` Andreas Ericsson [this message]
2005-11-11 19:37 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=437488E6.2050100@op5.se \
--to=ae@op5.se \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).