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

Re: No rule to make target `git-daemon'

From
Jeff King <peff@peff.net>
Date
Jul 20, 2018, 21:27 UTC
Message-ID
<20180720212725.GA3865@sigill.intra.peff.net>
In-Reply-To
<CAH8yC8=oruFBtkndQ0p9N4s23SMvjjrAC_E7zzKRSVbjEwL0FQ@mail.gmail.com>
On Thu, Jul 19, 2018 at 09:37:08PM -0400, Jeffrey Walton wrote:
Show 7 quoted lines
> I'm working from the 2.18 tarball on Solaris 11.3 x86_64. I'm catching
> the following when building from sources. This appears to be a new
> issue. It was not present in 2.17.1.
> 
>     gmake: *** No rule to make target `git-daemon'.  Stop.
>     gmake: *** Waiting for unfinished jobs....
>     Failed to build Git

Like others, I don't really have an idea on how this could have happened. But perhaps "gmake -d git-daemon" could be enlightening?

Mine has:
  [...]
  Considering target file 'git-daemon'.
   Looking for an implicit rule for 'git-daemon'.
   Trying pattern rule with stem 'daemon'.
   Trying implicit prerequisite 'daemon.o'.
   Trying rule prerequisite 'GIT-LDFLAGS'.
   Trying rule prerequisite 'common-main.o'.
   Trying rule prerequisite 'libgit.a'.
   Trying rule prerequisite 'xdiff/lib.a'.
   Found an implicit rule for 'git-daemon'.
    Considering target file 'daemon.o'.
and so on.
Show 6 quoted lines
> There does not appear to be an option to control building the daemon:
> 
>     $ ./configure --help | grep -i daemon
>     $
> 
> Any ideas on how to side-step it?

There's no official knob to turn, but dropping this line would remove it:

diff --git a/Makefile b/Makefile
index 08e5c54549..31153a2789 100644
--- a/Makefile
+++ b/Makefile
@@ -684,7 +684,6 @@ EXTRA_PROGRAMS =
 PROGRAMS += $(EXTRA_PROGRAMS)
 
 PROGRAM_OBJS += credential-store.o
-PROGRAM_OBJS += daemon.o
 PROGRAM_OBJS += fast-import.o
 PROGRAM_OBJS += http-backend.o
 PROGRAM_OBJS += imap-send.o

-Peff
Previous: Johannes Schindelin
Message 7 of 7 in “No rule to make target `git-daemon'”
  1. Jeffrey WaltonJul 20, 2018
  2. Eric SunshineJul 20, 2018
  3. brian m. carlsonJul 20, 2018
  4. Jeffrey WaltonJul 20, 2018
  5. brian m. carlsonJul 20, 2018
  6. Johannes SchindelinJul 25, 2018
  7. Jeff KingJul 20, 2018

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.