Subject: Re: HP-UX X server (was: kernel build...)
To: None <port-hp300@netbsd.org>
From: Steve Peurifoy <sp128@ibm.net>
List: port-hp300
Date: 08/27/1998 17:25:47
> Steve, would you like to see if you could move your hpux server
> setup into being rooted at /emul/hpux and remove the chroot()
> stuff?
I'm somewhat embarrassed that I didn't look into the /emul stuff before
charging off and doing the chroot() thing. Anyway, I copied what I
believe to be a pretty good approximation of the required set of files
(see list at end of message) into /emul/hpux and gave it a shot.
It mostly works which is pretty spiffy. The only fly in the ointment
is that the kernel code which creates unix domain sockets apparently
doesn't check for an emulation path. One is therefore forced, as far
as I can tell, to "pollute" the main filesystem with the directory
/usr/spool/sockets/X11 wherein the server will create its listen socket.
Perhaps not a big deal.
-Steve
**********
The "new" .xserverrc looks like:
------- cut here -------
#!/bin/sh
if [ ! -h /tmp/.X11-unix/X0 ]
then
rm -f /tmp/.X11-unix/X0
ln -s /usr/spool/sockets/X11/0 /tmp/.X11-unix/X0
fi
DISPLAY=`hostname`:0.0
export DISPLAY
/emul/hpux/usr/bin/X11/X :0
------- cut here -------
The contents of /emul/hpux:
total 12
drwxr-xr-x 6 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 3 root wheel 512 Aug 27 16:12 ..
drwxr-xr-x 2 root wheel 512 Aug 27 16:13 lib
drwxrwxrwx 3 root wheel 512 Aug 27 16:38 tmp
drwxr-xr-x 5 root wheel 512 Aug 27 16:14 usr
/emul/hpux/lib:
total 1760
drwxr-xr-x 2 root wheel 512 Aug 27 16:13 .
drwxr-xr-x 6 root wheel 512 Aug 27 16:14 ..
-r-xr-xr-x 1 bin bin 45056 Sep 20 1992 dld.sl
-r-xr-xr-x 1 bin bin 762356 Jan 17 1996 libc.sl
-r-xr-xr-x 1 bin bin 75550 Sep 20 1992 libm.sl
/emul/hpux/tmp:
total 6
drwxrwxrwx 3 root wheel 512 Aug 27 16:38 .
drwxr-xr-x 6 root wheel 512 Aug 27 16:14 ..
drwxrwxrwx 2 root wheel 512 Aug 27 16:38 .X11-unix
/emul/hpux/tmp/.X11-unix:
total 4
drwxrwxrwx 2 root wheel 512 Aug 27 16:38 .
drwxrwxrwx 3 root wheel 512 Aug 27 16:38 ..
/emul/hpux/usr:
total 10
drwxr-xr-x 5 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 6 root wheel 512 Aug 27 16:14 ..
drwxr-xr-x 3 root wheel 512 Aug 27 16:14 bin
drwxr-xr-x 4 root wheel 512 Aug 27 16:14 lib
drwxr-xr-x 3 root wheel 512 Aug 27 16:14 spool
/emul/hpux/usr/bin:
total 6
drwxr-xr-x 3 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 5 root wheel 512 Aug 27 16:14 ..
drwxr-xr-x 2 root wheel 512 Aug 27 16:14 X11
/emul/hpux/usr/bin/X11:
total 5556
drwxr-xr-x 2 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 3 root wheel 512 Aug 27 16:14 ..
-r-xr-xr-x 1 bin bin 2828862 Feb 6 1996 X
/emul/hpux/usr/lib:
total 180
drwxr-xr-x 4 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 5 root wheel 512 Aug 27 16:14 ..
drwxr-xr-x 4 root wheel 512 Aug 27 16:14 X11
drwxr-xr-x 2 root wheel 512 Aug 27 16:14 X11R5
-r-xr-xr-x 1 root wheel 74576 Sep 20 1992 grmd
-r-xr-xr-x 1 bin bin 12772 Sep 20 1992 libdld.sl
/emul/hpux/usr/lib/X11:
total 628
drwxr-xr-x 4 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 4 root wheel 512 Aug 27 16:14 ..
-r--r--r-- 1 bin bin 4694 Nov 21 1989 X0devices
-r--r--r-- 1 bin bin 3135 Nov 21 1989 X0pointerkeys
-r--r--r-- 1 bin bin 8374 Aug 24 1997 X0screens
-r--r--r-- 1 bin bin 8384 Sep 20 1992 XErrorDB
-r--r--r-- 1 bin bin 201129 Feb 6 1996 XHPKeymaps
-r--r--r-- 1 bin bin 2123 Sep 20 1992 XHPmodmap
-r--r--r-- 1 root wheel 3306 Dec 3 1997 XKeysymDB
-r--r--r-- 1 bin bin 2788 Sep 20 1992 XKeysymDB.orig
drwxr-xr-x 2 root wheel 512 Aug 27 16:14 extensions
drwxr-xr-x 7 root wheel 512 Aug 27 16:14 fonts
-r--r--r-- 1 bin bin 4096 Aug 18 1993 rgb.dir
-r--r--r-- 1 bin bin 29696 Aug 18 1993 rgb.pag
-r--r--r-- 1 bin bin 32314 Aug 18 1993 rgb.txt
/emul/hpux/usr/lib/X11/extensions:
total 228
drwxr-xr-x 2 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 4 root wheel 512 Aug 27 16:14 ..
-r-xr-xr-x 1 bin bin 100157 Jul 22 1993 libSXR5.sl
/emul/hpux/usr/lib/X11/fonts:
total 32
drwxr-xr-x 7 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 4 root wheel 512 Aug 27 16:14 ..
drwxr-xr-x 2 root wheel 4608 Aug 27 16:14 100dpi
drwxr-xr-x 2 root wheel 4608 Aug 27 16:13 75dpi
drwxr-xr-x 2 root wheel 512 Aug 27 16:14 PEX
drwxr-xr-x 2 root wheel 512 Aug 27 16:14 Speedo
drwxr-xr-x 2 root wheel 2048 Aug 27 16:13 misc
... < lot's o' fonts > ...
/emul/hpux/usr/lib/X11R5:
total 1108
drwxr-xr-x 2 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 4 root wheel 512 Aug 27 16:14 ..
-r-xr-xr-x 1 bin bin 551641 Nov 30 1994 libX11.sl
/emul/hpux/usr/spool:
total 6
drwxr-xr-x 3 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 5 root wheel 512 Aug 27 16:14 ..
drwxrwxrwx 3 root wheel 512 Aug 27 16:14 sockets
/emul/hpux/usr/spool/sockets:
total 6
drwxrwxrwx 3 root wheel 512 Aug 27 16:14 .
drwxr-xr-x 3 root wheel 512 Aug 27 16:14 ..
drwxrwxrwx 2 root wheel 512 Aug 21 22:18 X11
/emul/hpux/usr/spool/sockets/X11:
total 4
drwxrwxrwx 2 root wheel 512 Aug 21 22:18 .
drwxrwxrwx 3 root wheel 512 Aug 27 16:14 ..