When I try to start xprint using /etc/init.d/xprint start, it complains about not finding the config dir /usr/X11R6/lib/X11/xserver/C/print which doesn't exist indeed. From the xprint's contents I guess it should search for it's config in /usr/share/Xprint/xserver/C/print or whatever. This can be controlled using an environment variable XPCONFIGDIR. I think this variable should be set by the init.d/xprint script and controllable throu /etc/conf.d/xprint net-print/xprint-008-r1 this is Reproducible: Always Steps to Reproduce: 1. 2. 3.
thx, i added /etc/env.d/97xprint to -r2 which defines this var.
> thx, i added /etc/env.d/97xprint to -r2 which defines this var. It isn't created here. Perhaps a sandbox thing? Even a manual echo "XPCONFIGDIR=/usr/share/Xprint/xserver/C/print" > /etc/env.d/97xprint doesn't fix the path it looks in, and still gives: * Starting xprint... Fatal server error: Xp Extension: could not find config dir /usr/X11R6/lib/X11/xserver/C/print (and the server is not started) Setting XPCONFIGDIR in /etc/conf.d/xprint also does not work. "xprint" which the gentoo init script calls, is itself an init script. It looks like (Line 520) it unset's XPCONFIGDIR. Also, running /etc/init.d/xprint get_xpserverlist, just tells me the init script has syntax errors. Is this just me? This bug says FIXED, but I've had no luck. Looking at the "xprint" init script (/usr/sbin/xprint) is not nice. It's a really ugly thing. Can't we just create our own to call Xprt ourselves? Or at least add a GentooGlue section to the existing one?... Thanks, Gav
see last comment
Yes, the init script is really ugly. I changed the XPCUSTOMGLUE to debian, now it's working. Also fixed the get_xpserverlist error.