git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Problems installing as root

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 25, 2007, 06:12 UTC
Message-ID
<20070225061258.GA1415@spearce.org>
In-Reply-To
<erpljl$ln9$1@sea.gmane.org>
walt <wa1ter@myrealbox.com> wrote:
Show 7 quoted lines
> 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`.

Show 5 quoted lines
> 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.
Previous: waltNext: Junio C Hamano
Message 2 of 11 in “Problems installing as root”
  1. waltFeb 24, 2007
  2. Shawn O. PearceFeb 25, 2007
  3. Junio C HamanoFeb 25, 2007
  4. Shawn O. PearceFeb 25, 2007
  5. Junio C HamanoFeb 25, 2007
  6. Shawn O. PearceFeb 25, 2007
  7. Junio C HamanoFeb 25, 2007
  8. waltFeb 25, 2007
  9. Shawn O. PearceFeb 26, 2007
  10. Junio C HamanoFeb 25, 2007
  11. waltFeb 26, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.