Re: Problem invoking diff3.
From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-05-15 23:31:44 CEST
Kevin Pilch-Bisson <kevin@pilch-bisson.net> writes:
> After much frustration, I discovered something strange about the way diff3
This sounds like a broken diff3 installation. The code for GNU diff3
Breakpoint 1, read_diff (filea=0xbffffcd8 "b", fileb=0xbffffcda "c",
The path is a -D define in the Makefile:
$ grep -u3 DIFF_PROGRAM Makefile
DEFAULT_EDITOR_PROGRAM = ed
-- $(COMPILE) -DNULL_DEVICE=\"$(NULL_DEVICE)\" $(srcdir)/cmp.c diff3.o: diff3.c $(COMPILE) -DDIFF_PROGRAM=\"$(DIFF_PROGRAM)\" $(srcdir)/diff3.c sdiff.o: sdiff.c $(COMPILE) -DDEFAULT_EDITOR_PROGRAM=\"$(DEFAULT_EDITOR_PROGRAM)\" \ -DDIFF_PROGRAM=\"$(DIFF_PROGRAM)\" $(srcdir)/sdiff.c util.o: util.c $(COMPILE) -DPR_PROGRAM=\"$(PR_PROGRAM)\" $(srcdir)/util.c which gives me the compile command: gcc -c -DHAVE_CONFIG_H -I. -I. -g -DDIFF_PROGRAM=\"/usr/local/bin/`echo diff | sed 's,x,x,'`\" ./diff3.c > > I fixed this for that particular machine by changing the inherit_environment > flag in svn_io_run_diff3's call to svn_io_run_cmd to TRUE, but I don't think > this is the best solution. > > Note that this could also bite FreeBSD users who will end up with diff3 > running the hacked BSD version of diff instead of the gdiff found by > configure. > > Anyone have an idea as to what a good solution is? Fix your diff3 installation. -- Philip --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Wed May 15 23:32:39 2002 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.