http://bugs.gentoo.org/219323 Don't store resource files in deprecated location Reported upstream: http://sourceforge.net/tracker/index.php?func=detail&aid=1953742&group_id=2055&atid=102055 --- gnuplot-4.2.3-orig/configure.in 2008-03-04 19:36:53.000000000 +0100 +++ gnuplot-4.2.3/configure.in 2008-04-26 11:44:59.000000000 +0200 @@ -1024,6 +1024,10 @@ fi AC_SUBST(LISPDIR) +dnl Location of application defaults +AC_ARG_VAR(appdefaultdir,[Directory for application defaults]) +test -z "$appdefaultdir" && appdefaultdir='${sysconfdir}/X11/app-defaults' + dnl Substitute variables AC_SUBST(PACKAGE) AC_SUBST(VERSION_MAJOR) --- gnuplot-4.2.3-orig/share/Makefile.am 2008-03-05 04:38:59.000000000 +0100 +++ gnuplot-4.2.3/share/Makefile.am 2008-04-26 11:44:59.000000000 +0200 @@ -5,8 +5,6 @@ SUBDIRS = LaTeX -appdefaultdir = $(libdir)/X11/app-defaults - APPDEFAULTFILES = Gnuplot appdefault_DATA = $(APPDEFAULTFILES) --- gnuplot-4.2.3-orig/src/Makefile.am 2007-08-26 19:50:20.000000000 +0200 +++ gnuplot-4.2.3/src/Makefile.am 2008-04-26 11:44:59.000000000 +0200 @@ -25,7 +25,10 @@ noinst_PROGRAMS = bf_test XLIBS = @LIBRARIES_FOR_X@ -AM_CPPFLAGS = -I../term -I$(top_srcdir)/term -DBINDIR=\"$(bindir)\" -DX11_DRIVER_DIR=\"$(X11_DRIVER_DIR)\" -DGNUPLOT_PS_DIR=\"$(GNUPLOT_PS_DIR)\" -DCONTACT=\"$(EMAIL)\" -DHELPFILE=\"$(HELPFILE)\" +AM_CPPFLAGS = -I../term -I$(top_srcdir)/term \ + -DBINDIR=\"$(bindir)\" -DX11_DRIVER_DIR=\"$(X11_DRIVER_DIR)\" \ + -DGNUPLOT_PS_DIR=\"$(GNUPLOT_PS_DIR)\" -DAppDefDir=\"$(appdefaultdir)\" \ + -DCONTACT=\"$(EMAIL)\" -DHELPFILE=\"$(HELPFILE)\" gnuplot_SOURCES = alloc.c alloc.h ansichek.h axis.c axis.h \ breaders.c breaders.h bitmap.c bitmap.h color.c color.h command.c \ --- gnuplot-4.2.3-orig/src/gplt_x11.c 2007-12-10 00:55:27.000000000 +0100 +++ gnuplot-4.2.3/src/gplt_x11.c 2008-04-26 11:45:18.000000000 +0200 @@ -4787,7 +4787,9 @@ */ #define On(v) ( !strncasecmp(v, "on", 2) || !strncasecmp(v, "true", 4) ) +#ifndef AppDefDir #define AppDefDir "/usr/lib/X11/app-defaults" +#endif #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 64 #endif