Subject: Re: Why are packages ever installed to /usr/X11R6?
To: None <>
From: Jim Bernard <>
List: tech-pkg
Date: 01/19/2003 08:24:51
On Sun, Jan 19, 2003 at 07:28:12PM +0700, Robert Elz wrote:
>     Date:        Sat, 18 Jan 2003 09:16:11 -0700
>     From:        Jim Bernard <>
>     Message-ID:  <>
>   | So, what's wrong with setting XAPPLSRESDIR in /etc/login.conf?
> It doesn't work for "ssh remotehost /usr/pkg/bin/x-app" (and similar
> invocations).

  As I pointed out further on, that's not very difficult to fix (the
fault lies in sshd, not login_cap).  It works fine for me.

> Relying upon env vars in order to function is just plain wrong.

  I tend to agree, but sometimes we have to live with it.  (We don't
have to on NetBSD in this case, because of the union-mount option, of
course.  On other OS's where pkgsrc is used, we may be stuck with it.)

> The three issues with doing that (the only three I have found in years of doing
> it this way - though I guess there might be more I have yet to experience) are:
> 2) /usr/X11R6/lib/X11/xk/compile which the xkb stuff just insists on
> writing into (I use another mount to direct that stuff into /var where
> it belongs, though I suspect that /tmp would be just as good...)

  If you set "UseSeparateConfDir YES", the X11 Makefile system uses /var/db/xkb.