Subject: Re: /etc/rc.d/xdm hardcodes /usr/X11R6, i.e. conflicts with
To: Erik Bertelsen <bertelsen.erik@gmail.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: current-users
Date: 08/25/2007 13:57:12
On Sat, 25 Aug 2007 19:33:04 +0200
"Erik Bertelsen" <bertelsen.erik@gmail.com> wrote:

> It seems that /etc/rc.d/xdm as installed from
> ...src/NetBSD/src/etc/rc.d hardcodes
> the command to execute to be /usr/X11R6/bin/${name} and required_files
> to /etc/X11/xdm/xdm-config.
> This is on NetBSD-current and may also apply to NetBSD 4.
> 
> I suggest that either
> 
>  - /etc/rc.d/xdm is updated to locate /usr/pkg/bin/xdm as an
> acceptable program location and (if needed) required_files also learn
> about modular-x11
> 
> or
>  - /etc/rc.d/xdm is not installed by default (and also not checked by
> postinstall) --
>    instead a sample rc script could be provided by the xdm package.
> 
> The latter is probably the most clean situation if we expect XFree86
> to be removed
> in a not too distant future.
> 
It is and isn't correct.  It's correct because XFree86 is considered to
be part of the distribution, hence it's ok for other parts to assume
/usr/X11R6.  rc.d/xdm isn't the only example; ssh and sshd have it
wired in, too, and I suspect there are other places.

OTOH, as you note, there are other choices for where X should live.  In
that sense, perhaps /usr/X should be what's wired in, with the
intention that any instantiation of X should link it appropriately.
(That would make the change in X executable locations in modular X org
compared with monolithic xorg -- from /usr/pkg/xorg/* to /usr/pkg/* --
a bad choice, since the structures below them are no longer equivalent.)



		--Steve Bellovin, http://www.cs.columbia.edu/~smb