Skip to contentSkip to conversation

Makefile: add missing GIT-VERSION-FILE dependency

PATCH/RFC Erik Faye-Lund 2 participants 2 messages Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

In 20fc9bc (Set HTTP user agent to git/GIT_VERSION, 2006-04-04), http.o started recording GIT_VERSION, but http.o wasn't added to the list of files that depends on GIT-VERSION-FILE.

Fix this, so mofications to GIT-VERSION-FILE will result in an updated user-agent string.

---

I stumbled over this while debugging something related. Perhaps this fix is worth applying?

There's a similar issue with generation of assembly-listings, but I figured that was intended for inspection of the generated code; the version string probably doesn't matter in such cases.

Dunno...

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index c09a679..59e2b25 100644
@@ -2104,7 +2104,7 @@ configure: configure.ac
 	$(RM) $<+
 
 # These can record GIT_VERSION
-git.o git.spec \
+git.o git.spec http.o \
 	$(patsubst %.sh,%,$(SCRIPT_SH)) \
 	$(patsubst %.perl,%,$(SCRIPT_PERL)) \
 	: GIT-VERSION-FILE
Signature · 1 line
1.7.11.rc0.6836.gdf573d9
#1 lore raw
Quoted 9 lines · Erik Faye-Lund

In 20fc9bc (Set HTTP user agent to git/GIT_VERSION, 2006-04-04), http.o started recording GIT_VERSION, but http.o wasn't added to the list of files that depends on GIT-VERSION-FILE.
...

Makefile +0 -0
index c09a679..59e2b25 100644

Makefile configure: configure.ac · line 2110

Quoted 8 lines
Makefile +1 -1
@@ -2104,7 +2104,7 @@ configure: configure.ac
 	$(RM) $<+
 
 # These can record GIT_VERSION
-git.o git.spec \
+git.o git.spec http.o \
 	$(patsubst %.sh,%,$(SCRIPT_SH)) \
 	$(patsubst %.perl,%,$(SCRIPT_PERL)) \
 	: GIT-VERSION-FILE

Makes sense to me. Thanks.