|
From: Ethan A M. <sf...@us...> - 2014-07-16 17:28:13
|
On Wednesday, 16 July, 2014 21:47:30 Jun T. wrote: > If I build gnuplot by > > $ ./configure --without-x ... > $ make > > then gnuplot_x11 is not built, of course. But if I run > > $ make DEMO=xxx.dem check > > then a broken symlink src/gnuplot_x11 is created which points > to itself. Very strange. I have no idea why it does that. > If I run 'make check' again (with different value > for DEMO, for example), then it fails as: > > Mac: > ln: ../src/gnuplot_x11: File exists > Linux: > ln: accessing `../src/gnuplot_x11': Too many levels of symbolic links > > and I must manually remove the symlink. Not serious but annoying. > A possible fix is at the end of this post. I suspect a better fix is to remove that whole section of the Makefile. It isn't needed for any other terminal, and I don't see why it would be needed for X11 either: %%%%%% --- old/gnuplot/demo/Makefile.am.in 2014-03-03 10:36:23.000000000 -0800 +++ new/gnuplot/demo/Makefile.am.in 2014-07-16 10:07:03.000000000 -0700 @@ -21,13 +21,7 @@ @echo Creating binary data files @../src/bf_test -transform = @program_transform_name@ -GNUPLOT_X11 = `echo gnuplot_x11 | sed '$(transform)'`$(EXEEXT) - check-prepare: - @if test ! -e "$(top_builddir)/src/$(GNUPLOT_X11)"; then\ - $(LN_S) gnuplot_x11 $(top_builddir)/src/$(GNUPLOT_X11); \ - fi check-local: check-noninteractive %%%%%% Does anyone know what was the original intent of creating a symlink? Ethan > > # I guess gnuplot_x11 should be gnuplot_x11$(EXEEXT) if anyone ever > # builds x11 terminal on Windows and installs it with a name other than > # gnuplot_x11.exe. But I can't test on Windows (cygwin with X11?). > > Another minor problem is that this broken symlink src/gnuplot_x11 is > not removed by 'make clean' or 'make distclean' if qt terminal is not > built. src/Makefile.am has > > clean-demo: > rm -f $(GNUPLOT_X11) > > but it is in the block "if BUILD_QT ... endif". Why? > > Jun > > > > Index: demo/Makefile.am.in > =================================================================== > RCS file: /cvsroot/gnuplot/gnuplot/demo/Makefile.am.in,v > retrieving revision 1.40 > diff -u -r1.40 Makefile.am.in > --- demo/Makefile.am.in 2 Mar 2014 06:23:55 -0000 1.40 > +++ demo/Makefile.am.in 16 Jul 2014 06:04:51 -0000 > @@ -25,7 +25,8 @@ > GNUPLOT_X11 = `echo gnuplot_x11 | sed '$(transform)'`$(EXEEXT) > > check-prepare: > - @if test ! -e "$(top_builddir)/src/$(GNUPLOT_X11)"; then\ > + @if test ! -e "$(top_builddir)/src/$(GNUPLOT_X11)" \ > + -a -e "$(top_builddir)/src/gnuplot_x11"; then > $(LN_S) gnuplot_x11 $(top_builddir)/src/$(GNUPLOT_X11); \ > fi > > > > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |