All of lore.kernel.org
 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 01:12:58 -0500	[thread overview]
Message-ID: <20070225061258.GA1415@spearce.org> (raw)
In-Reply-To: <erpljl$ln9$1@sea.gmane.org>

walt <wa1ter@myrealbox.com> wrote:
> I'm current as of this morning (7bd59dee...) and I'm still seeing
> two problems with doing 'make' as myself but 'make install' as
> root.
> 
> First, 'make install' as root leaves dozens of files owned by root
> in my personal source directory.  A minor nit, but inconvenient
> during the next 'make'.

Which files, specifically?  I'm sure that the following would be
built as root during 'make install':

  GIT-CFLAGS
  GIT-VERSION-FILE
  git-gui/GIT-VERSION-FILE
  git-gui/CREDITS-FILE

as these are rebuilt automatically everytime the Makefile runs,
as they are embedding version data from HEAD.  But others would be
interesting to know about.
 
> 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?

In order to build completely from source git-gui needs its gitgui-*
tags in refs/tags.  Junio pushed the gitgui-0.6.1 tag when he merged
that version into `maint`.

> make[1]: Leaving directory `/usr/local/mnt/wa1ter/src/git/git-gui'
> make[1]: Entering directory `/usr/local/mnt/wa1ter/src/git/git-gui'
> /bin/sh ./CREDITS-GEN
> error: Cannot locate authorship information.
> make[1]: *** [CREDITS-FILE] Error 1

Same error as above.  Only this time it made the build stop, rather
than assuming some default version (0.6.GITGUI).
 
> Now, CREDITS-FILE was generated during 'make' (I checked) so there
> was no need to generate it again during 'make install', yes?

Odd.  We created the CREDITS-FILE during `make` but then barfed
during `make install` by acting like we cannot locate the gitgui tag?

What does `git tag -l | grep gitgui-` give you when run as root?


As a workaround you may be able to copy `git-gui/CREDITS-FILE` to
`git-gui/credits`, then run `make install`.  CREDITS-GEN defaults
to the credits file, as that is shipped in the tarfile.

-- 
Shawn.

  reply	other threads:[~2007-02-25  6:13 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 [this message]
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
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=20070225061258.GA1415@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.