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

Re: Bug: /usr/local/bin/git-daemon starts /usr/sbin/git-upload-pack?

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 9, 2008, 21:14 UTC
Message-ID
<7vlk0a7obl.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200807092220.10655.J.Wielemaker@uva.nl>
Jan Wielemaker <J.Wielemaker@uva.nl> writes:
Show 7 quoted lines
> After upgrade to SuSE 11.0 I was forced to update GIT (changed libcurl).
> I did (with some trickery) a pull of the latest git and built it using
> make prefix=/usr/local ..., to find out that /usr/local/bin/git-daemon
> starts /usr/sbin/git-upload-pack.
>
> After creating a symlink to /usr/local/bin/git-upload-pack all works fine
> again, but I guess this is a mistake?
I think this is a distro issue.

Pre-1.6.0 git installs git-everything in $(bindir) and knows things are there. Current 'master' we are preparing for 1.6.0 instead installs git-mostofthem in $(prefix)/libexec/git-core and git-someofthem in $(bindir); our executables know which binaries are installed in $(bindir) and which ones are installed in $(prefix)/libexec/git-core.

The point is we never install $anywhere/sbin unless the person who is building explicitly does so (either by futzing the Makefile or giving bindir=$somewhere from the command line of "make"). The reason your /usr/local/bin/git-daemon (we do not know who compiled it and how) spawns something in /usr/sbin is not our doing. Find out who configured it and why, and more importantly, what _other_ changes are made in the build and installation procedure to support that change in location.

Previous: Jan WielemakerNext: Jan Wielemaker
Message 2 of 5 in “Bug: /usr/local/bin/git-daemon starts /usr/sbin/git-upload-pack?”
  1. Jan WielemakerJul 9, 2008
  2. Junio C HamanoJul 9, 2008
  3. Jan WielemakerJul 10, 2008
  4. Brian FosterJul 10, 2008
  5. Jeff KingJul 10, 2008

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.