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

[PATCH] Cogito chicken-and-egg problem

From
PRPavel Roskin <proski@gnu.org>
Date
Apr 26, 2005, 16:06 UTC
Message-ID
<1114531570.19478.6.camel@dv>
Hello!

My patch for Makefile was misapplied, so installed commit-id is still needed for "make" to succeed.

Shell commands are processed by make before being passed to the shell, and $(...) is expanded by make before new PATH is set, as it is done in the current Makefile.

Also, the dependency on commit-id was dropped from my patch for some reason. I believe it's still needed. Also, we need a dependency on cat-file, which is used by commit-id internally.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Index: Makefile
===================================================================
--- f262000f302b749e485f5eb971e6aabefbb85680/Makefile  (mode:100644 sha1:4f01bbbbb3fd0e53e9ce968f167b6dae68fcfa92)
+++ uncommitted/Makefile  (mode:100644)
@@ -87,11 +87,11 @@
 http-pull: LIBS += -lcurl
 
 
-cg-version: $(VERSION)
+cg-version: $(VERSION) commit-id cat-file
 	@echo Generating cg-version...
 	@rm -f $@
 	@echo "#!/bin/sh" > $@
-	@PATH=.:$(PATH) echo "echo \"$(shell cat $(VERSION)) ($(shell commit-id))\"" >> $@
+	@echo "echo \"$(shell cat $(VERSION)) ($(shell PATH=.:$(PATH) ./commit-id))\"" >> $@
 	@chmod +x $@
 
 install: $(PROG) $(SCRIPTS) $(SCRIPT) $(GEN_SCRIPT)
-- 
Regards,
Pavel Roskin
Next: Daniel Barkalow
Message 1 of 4 in “Cogito chicken-and-egg problem”
  1. Cogito chicken-and-egg problemPavel Roskin, Apr 26, 2005
  2. Daniel BarkalowApr 26, 2005
  3. Pavel RoskinApr 26, 2005
  4. Daniel BarkalowApr 26, 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.