git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: walt <wa1ter@myrealbox.com>
Cc: git@vger.kernel.org
Subject: Re: Problems installing as root
Date: Sun, 25 Feb 2007 21:10:53 -0500	[thread overview]
Message-ID: <20070226021053.GB1884@spearce.org> (raw)
In-Reply-To: <ersapr$bu5$1@sea.gmane.org>

walt <wa1ter@myrealbox.com> wrote:
> Shawn O. Pearce wrote:
> > walt <wa1ter@myrealbox.com> wrote:
> >> First, 'make install' as root leaves dozens of files owned by root
> >> in my personal source directory.
> 
> > Which files, specifically? ...
> 
> ~/src/git $find . -user 0
> ./git-fsck-objects
...+100 files...

This is caused by below...

> >> Second, this is a more recent problem with 'make install':
> >> make -C git-gui all
> >> make[1]: Entering directory `/usr/local/mnt/wa1ter/src/git/git-gui'
> >> GITGUI_VERSION = 0.6.GITGUI
> 
> > Hmm.  You can't get the right version number for git-gui.  Do you
> > have tags fetched?
> 
> Oops.  I stupidly forgot to tell you the reason for the failure
> when running the script as root:  /usr/local is not in root's path,
> and thus /usr/local/bin/git-* can't be found.  Since the script
> assumes that git is already installed and working, I would guess
> that it would also fail if I had just fetched Junio's repository
> for the first time and attempted an initial install.

Right.  So what is happening is the toplevel Makefile tries to run
GIT-VERSION-GEN to obtain the version, that calls git-describe,
which does not exist, fails, and falls back on the hardcoded version
number.  That version number differs from what the software was
compiled with, so it gets recompiled.  Instant set of +100 files
owned by root.

Same issue happens down inside of git-gui.

I think the only answer I have for you is the following:

  If you want to run the Makefile without having git in your path
  then make a tarball first (make dist) with Git in your path,
  then unpack the tarball and compile that.

  This works as the tarball embeds version and credits files that
  sidestep the need for git-describe.

-- 
Shawn.

  reply	other threads:[~2007-02-26  2:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-24 15:28 Problems installing as root walt
2007-02-25  6:12 ` Shawn O. Pearce
2007-02-25  6:40   ` Junio C Hamano
2007-02-25  7:08     ` Shawn O. Pearce
2007-02-25  7:14       ` Junio C Hamano
2007-02-25  7:23         ` Shawn O. Pearce
2007-02-25  7:26           ` Junio C Hamano
2007-02-25 15:42   ` walt
2007-02-26  2:10     ` Shawn O. Pearce [this message]
2007-02-25  6:23 ` Junio C Hamano
2007-02-26  1:32   ` walt

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=20070226021053.GB1884@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=wa1ter@myrealbox.com \
    /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).