[840] in NetBSD-Development
Bitmaps and /usr/athena/include/X11
daemon@ATHENA.MIT.EDU (Greg Hudson)
Sat Jul 1 04:14:37 1995
Date: Sat, 1 Jul 1995 04:14:54 -0400
From: Greg Hudson <ghudson@MIT.EDU>
To: netbsd-dev@MIT.EDU
With the removal of /usr/bin/login, we are now very close to isolating
the Athena software from the rest of the operating system (so that all
of our "hooks" into the operating system are in configuration files in
/etc). So I decided today that I want to remove the
/usr/athena/include/X11 symlink, to bring us closer.
I identified the following local files in /usr/X11R6/include/X11:
copyright.h (0 length; can this just go away?)
bitmaps/Dash.xbm
bitmaps/arrow
bitmaps/olh.xbm
bitmaps/question
I actually just installed bitmaps/olh.xbm. Apparently olh_motif has
been unable to find its bitmap file and is using a compiled-in bitmap,
because (a) it wasn't installed, and (b) our Motif library was built
wrong (Motif searches for bitmaps in /usr/include/X11 and
/usr/lib/X11).
Anyway, of those bitmap files, Dash.xbm, arrow, and question are
searched for by the Jets toolkit. Jets only searches for bitmaps in
one hardcoded directory (/usr/X11R6/include). olh.xbm is searched for
by Motif, which searches for bitmaps in the "bitmaps" subdirectory of
XAPPLRESDIR (if defined), the user's home directory, INCDIR (currently
/usr/include/X11, should be /usr/X11R6/include), and LIBDIR (currently
/usr/lib/X11, should be /usr/X11R6/include).
We should rebuild Motif to look in the appropriate places, but that
won't help us with the /usr/athena/include/X11 symlink. We can't
define XAPPLRESDIR to be a two-element path (it's supposed to be just
a directory). One kludge is to have olh_motif define XFILESEARCHPATH
to be the path to find the app-defaults, and have it define
XAPPLRESDIR to be the path to find the bitmaps. Another kludge is to
move the bitmaps to /usr/athena/lib/X11/app-defaults/bitmaps. A third
kludge, which I will probably adopt, is to leave olh.xbm uninstalled
and have it use the compiled-in version. I don't see any good
solutions.
As for the Jets resources, we control the source for that, so I will
come up with some appropriate modification.