Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 33452

Summary: xprint cannot find it's config dir
Product: Gentoo Linux Reporter: jochen <jochen.eisinger>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description jochen 2003-11-14 04:07:12 UTC
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.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2003-11-15 02:46:34 UTC
thx, i added /etc/env.d/97xprint to -r2 which defines this var.
Comment 2 Gavin Baker 2003-12-12 18:55:50 UTC
> 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

Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-13 04:01:51 UTC
see last comment
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-13 05:31:54 UTC
Yes, the init script is really ugly.

I changed the XPCUSTOMGLUE to debian, now it's working. Also fixed the get_xpserverlist error.