|
From: Daniel J S. <dan...@ie...> - 2014-11-15 01:46:44
|
On 11/14/2014 07:00 PM, Allin Cottrell wrote: > Any ideas what's wrong here? After doing, in a directory containing > the gnuplot CVS sources, > > make clean > cvs update -d -P > ./prepare > ./configure --prefix=opt/gnuplot > make > > I'm getting: > > make[2]: Entering directory `/home/allin/cfiles/gpcvs/gnuplot/docs' > Building allterm.h > [...] > In file included from doc2x.h:70:0, > from doc2tex.c:63: > allterm.h:2265:33: fatal error: lua/gnuplot-tikz.help: No such file > or directory > > Earlier, ./configure gave: > > ** Configuration summary for gnuplot 5.1: > > [...] > cairo-based pdf and png terminals: yes > lua/TikZ terminal: no > wxt terminal: yes > [...] > > No lua/TikZ terminal is fine by me. That help text looks to be generated (from term/lua/README): " lua gnuplot-tikz.lua termhelp > gnuplot-tikz.help generates the version to be included in gnuplot help system. " My guess is that somehow the configure script is placing the string #include "lua/gnuplot-tikz.help" inside docs/allterm.h when it shouldn't--or the file gnuplot-tikz.help is not being generated when it should be (but since you don't have lua, there is no way of running "lua gnuplot-tikz.lua termhelp > gnuplot-tikz.help". Here is the script that generates the allterm.h file: allterm.h: $(CORETERM) @echo "Building allterm.h" @for e in `egrep "^[ ]*START_HELP" $(CORETERM) |\ LC_ALL=C sort -f -t':' -k2` ; do \ f=`echo $$e |cut -d\: -f1` ; s=`echo $$e | cut -d\: -f2` ;\ sed -n "/^[ ]*$$s/,/^[ ]*END_HELP/p" $$f ; \ done >$@ it looks to be searching files for a particular string. This is related to what Hans pointed out the other day, when I pointed out that after I build I get a diff hunk because the lua tikz help is regenerated and is different from what was in the repository. Since gnuplot-tikz.help is generated, it technically shouldn't be in the repository. But that leads to the problem you are seeing if the file is not present unless generated. We need some way in the script above to leave out lua/gnuplot-tikz.help from the documentation. Either we could not add "lua.trm" to CORETERM contingent on the presence of "lua" on the system, or place a copy of someone's "lua" help in the repository and not generate it as part of the build process. Dan |