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

Re: [PATCH] C implementation of the 'git' program.

From
Junio C Hamano <junkio@cox.net>
Date
Nov 11, 2005, 07:40 UTC
Message-ID
<7vveyzskdk.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<m3lkzv4qnz.fsf@harinath.blr.novell.com>
Raja R Harinath <rharinath@novell.com> writes:
Show 6 quoted lines
> 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. A good litmus test is that you should be able to build and install from a root-squashed NFS mounted working tree, without giving write permissions to NFS-nobody user (obviously you need to give read and search permissions).

Andreas?
Previous: Raja R HarinathNext: Andreas Ericsson
Message 7 of 9 in “C implementation of the 'git' program.”
  1. C implementation of the 'git' program.Andreas Ericsson, Nov 10, 2005
  2. Linus TorvaldsNov 10, 2005
  3. Andreas EricssonNov 10, 2005
  4. Petr BaudisNov 10, 2005
  5. Junio C HamanoNov 11, 2005
  6. Raja R HarinathNov 11, 2005
  7. Junio C HamanoNov 11, 2005
  8. Andreas EricssonNov 11, 2005
  9. Junio C HamanoNov 11, 2005

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.