|
From: <tim...@en...> - 2006-06-17 23:50:32
|
Ethan A Merritt wrote: > On Saturday 17 June 2006 03:19 pm, you wrote: > =20 >> Ethan A Merritt wrote: >> =20 >>> I'm having my own battle with 'make distcheck', with regard to the >>> recently added X-Resources file. >>> =20 >> By the way, as for this file, why not installing it to a standard=20 >> directory relatively to gnuplot (PREFIX/share/gnuplot/apps-defaults ?)= ,=20 >> =20 > > The standard directory is dictated by X11 itself. > We don't get a choice in the matter. > =20 I understand that. > =20 >> and let 'xrdb' add it to the database ? (or maybe not installing it at= all) >> install-data-local: >> xrdb $(pkgdatadir)Gnuplot.app-defaults >> =20 > > That would do nothing useful. > xrdb must be run every time a user starts an X session. > =20 Ok, I did not know that. I guess it will be hard to do something that will work everytime with=20 this file. I propose the following (assuming that /usr/lib/X11/app-defaults is the=20 default directory for this kind of stuff - I don't have such directory=20 on my machine, everything is in /usr/share/X11/app-defaults instead,=20 which makes more sense to me) : xresourcedir =3D $(libdir)/X11/app-defaults/Gnuplot xresource_DATA =3D Gnuplot.app-defaults If 'configure' is called with '--prefix=3D/usr' it will work, otherwise=20 the file will still be installed but probably not used by X. That=20 doesn't seem worse to me than the current situation which only works=20 when root installs. And it would work with 'make distcheck'. (to install in /usr/share/X11/app-defaults instead, the first line would=20 be : xresourcedir =3D $(datadir)/X11/app-defaults/Gnuplot ) Timoth=E9e |