* [PATCH] Fix dependencies of parse-options test program @ 2007-11-13 23:16 Alex Riesen 2007-11-13 23:46 ` Johannes Schindelin 2007-11-14 0:03 ` Junio C Hamano 0 siblings, 2 replies; 6+ messages in thread From: Alex Riesen @ 2007-11-13 23:16 UTC (permalink / raw) To: git; +Cc: Junio C Hamano, Johannes Schindelin Signed-off-by: Alex Riesen <raa.lkml@gmail.com> --- An old test-parse-options was breaking t0040. Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index cd6d469..af827f6 100644 --- a/Makefile +++ b/Makefile @@ -999,6 +999,8 @@ test-date$X: date.o ctype.o test-delta$X: diff-delta.o patch-delta.o +test-parse-options$X: parse-options.o + .PRECIOUS: $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS)) test-%$X: test-%.o $(GITLIBS) -- 1.5.3.5.668.g22088 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix dependencies of parse-options test program 2007-11-13 23:16 [PATCH] Fix dependencies of parse-options test program Alex Riesen @ 2007-11-13 23:46 ` Johannes Schindelin 2007-11-14 0:08 ` Pierre Habouzit 2007-11-14 0:03 ` Junio C Hamano 1 sibling, 1 reply; 6+ messages in thread From: Johannes Schindelin @ 2007-11-13 23:46 UTC (permalink / raw) To: Alex Riesen; +Cc: git, Junio C Hamano Hi, apparently I forgot to send this patch, which I thought was only relevant in the builtin-commit branch of mine: -- snipsnap -- [PATCH] Makefile: add correct dependencies for test-parse-options Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- Makefile | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index bda8762..2abb8da 100644 --- a/Makefile +++ b/Makefile @@ -996,6 +996,10 @@ test-date$X: date.o ctype.o test-delta$X: diff-delta.o patch-delta.o +test-parse-options$X: parse-options.o + +test-parse-options.o: parse-options.h + .PRECIOUS: $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS)) test-%$X: test-%.o $(GITLIBS) -- 1.5.3.5.1769.gc3bdd ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix dependencies of parse-options test program 2007-11-13 23:46 ` Johannes Schindelin @ 2007-11-14 0:08 ` Pierre Habouzit 2007-11-14 0:12 ` Johannes Schindelin 0 siblings, 1 reply; 6+ messages in thread From: Pierre Habouzit @ 2007-11-14 0:08 UTC (permalink / raw) To: Johannes Schindelin; +Cc: Alex Riesen, git, Junio C Hamano [-- Attachment #1: Type: text/plain, Size: 910 bytes --] On Tue, Nov 13, 2007 at 11:46:20PM +0000, Johannes Schindelin wrote: > Hi, > > apparently I forgot to send this patch, which I thought was only relevant > in the builtin-commit branch of mine: Btw is there a reason why git doesn't use the gcc -M* options to have proper dependency informations ? I understand not everyone has a gcc compiler at hand, but still, most of the compilers know how to do that. We could even borough depcomp from automake for that task. I've been bitten by dependencies issues in git many times, and it's only now that I understand that it was dependency issues, I always assumed git Makefiles dealt with that already, and I believe that'd be nice to have a real solution for that. -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.org [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix dependencies of parse-options test program 2007-11-14 0:08 ` Pierre Habouzit @ 2007-11-14 0:12 ` Johannes Schindelin 2007-11-14 8:48 ` Pierre Habouzit 0 siblings, 1 reply; 6+ messages in thread From: Johannes Schindelin @ 2007-11-14 0:12 UTC (permalink / raw) To: Pierre Habouzit; +Cc: Alex Riesen, git, Junio C Hamano Hi, On Wed, 14 Nov 2007, Pierre Habouzit wrote: > On Tue, Nov 13, 2007 at 11:46:20PM +0000, Johannes Schindelin wrote: > > > apparently I forgot to send this patch, which I thought was only > > relevant in the builtin-commit branch of mine: > > Btw is there a reason why git doesn't use the gcc -M* options to have > proper dependency informations ? I suspect the reason is that we do not want to depend on gcc... Ciao, Dscho ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix dependencies of parse-options test program 2007-11-14 0:12 ` Johannes Schindelin @ 2007-11-14 8:48 ` Pierre Habouzit 0 siblings, 0 replies; 6+ messages in thread From: Pierre Habouzit @ 2007-11-14 8:48 UTC (permalink / raw) To: Johannes Schindelin; +Cc: Alex Riesen, git, Junio C Hamano [-- Attachment #1: Type: text/plain, Size: 1521 bytes --] On Wed, Nov 14, 2007 at 12:12:49AM +0000, Johannes Schindelin wrote: > Hi, > > On Wed, 14 Nov 2007, Pierre Habouzit wrote: > > > On Tue, Nov 13, 2007 at 11:46:20PM +0000, Johannes Schindelin wrote: > > > > > apparently I forgot to send this patch, which I thought was only > > > relevant in the builtin-commit branch of mine: > > > > Btw is there a reason why git doesn't use the gcc -M* options to have > > proper dependency informations ? > > I suspect the reason is that we do not want to depend on gcc... right, but like said, other compilers can generate them, only with a different CLI switch, and non withstanding this problem, there are tools to generate such kind of information easily. Though for those who care about this issue, this is hackable easily using config.mak, here is how: CFLAGS += -MMD -MF $(@D)/.$(@F:.o=.dep) -include $(wildcard .*.dep */.*.dep) GIT-VERSION-FILE It's a quick hack, but allow gcc + gnu make (I believe $(@D) is GNU) users not to be bitten hard by those dependency issues. The reason why I include GIT-VERSION-FILE again is that many make complain if -include gets an empty like as an argument, and passing /dev/null on certains occasions triggers warnings about /dev/null having a date in the future on some machines for a reason I never found. -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.org [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix dependencies of parse-options test program 2007-11-13 23:16 [PATCH] Fix dependencies of parse-options test program Alex Riesen 2007-11-13 23:46 ` Johannes Schindelin @ 2007-11-14 0:03 ` Junio C Hamano 1 sibling, 0 replies; 6+ messages in thread From: Junio C Hamano @ 2007-11-14 0:03 UTC (permalink / raw) To: Alex Riesen; +Cc: git, Johannes Schindelin Ah, I saw the breakage once but was too late at night to see what was wrong myself. Thanks. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-11-14 8:48 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-11-13 23:16 [PATCH] Fix dependencies of parse-options test program Alex Riesen 2007-11-13 23:46 ` Johannes Schindelin 2007-11-14 0:08 ` Pierre Habouzit 2007-11-14 0:12 ` Johannes Schindelin 2007-11-14 8:48 ` Pierre Habouzit 2007-11-14 0:03 ` Junio C Hamano
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).