Bug 408 - /usr/openwin/bin/Xprt does not start in Solaris 2.9 x86 04/2004 release
Summary: /usr/openwin/bin/Xprt does not start in Solaris 2.9 x86 04/2004 release
Status: RESOLVED DUPLICATE of bug 411
Alias: None
Product: xprint
Classification: Unclassified
Component: Server: Spooler support: Other (show other bugs)
Version: unspecified
Hardware: SPARC Solaris
: low minor
Assignee: Alan Coopersmith
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-04 20:34 UTC by Roland Mainz
Modified: 2005-10-03 00:03 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Roland Mainz 2004-04-04 20:34:59 UTC
Solaris 2.9 x86 04/2004 release... just downloaded, installed in a VMware VM and
one of the first bugs I found was this:
-- snip --
% /usr/openwin/bin/Xprt :5 
Usage: lpget [-k key] [list|(printer) ...]

Fatal server error:
no screens found
-- snip --

;-(
Comment 1 Alan Coopersmith 2004-04-04 20:46:58 UTC
If you run 'strings /usr/openwin/bin/Xprt | grep lpget' you'll see the command it
runs to find printers - if you run that yourself, does it give a list of printers?
Comment 2 Roland Mainz 2004-04-04 21:17:29 UTC
Alan Coopersmith wrote:
> If you run 'strings /usr/openwin/bin/Xprt | grep lpget' you'll see the command
> it runs to find printers - if you run that yourself, does it give a list of 
> printers?

No, "lpget" only generates an error:
-- snip --
% strings /usr/openwin/bin/Xprt | fgrep lpget
LANG=C lpget -k description `lpstat -v | nawk '$2 == "for" { x = match($3, /:/);
print substr($3, 1,x-1) }' | sort` | nawk -F: ' NF == 2 { name=$1 }  NF == 1 {
sub("^.*description\( - undefined|=\)","");  printf "%s\t%s\n",  name, $1 } '

% LANG=C lpget -k description `lpstat -v | nawk '$2 == "for" { x = match($3,
/:/); print substr($3, 1,x-1) }' | sort` | nawk -F: ' NF == 2 { name=$1 }  NF ==
1 { sub("^.*description\( - undefined|=\)","");  printf "%s\t%s\n",  name, $1 }
'
Usage: lpget [-k key] [list|(printer) ...]
-- snip --

But I don't have any print queues defined - that's the simple problem. Adding a
print queue to the spooler makes "lpget" happy.
My fault.

Either we can close this bug as INVALID ("user too dumb" =:-) or adjust the
buildin script a little that it generates less confusing output... :)
Comment 3 Alan Coopersmith 2004-04-04 21:26:02 UTC
Long term I'd like to delete the script completely and switch over to PAPI so 
that we're not so reliant on lp command output format and such a complex bit
of shell hackery (which in a weak moment I may admit some guilt in creating).

Unfortunately, that has to wait both for PAPI integration to Solaris, and someone
having time to rewrite BuildPrinterDb/AugmentPrinterDB to use PAPI.
Comment 4 Alan Coopersmith 2005-10-03 17:03:05 UTC

*** This bug has been marked as a duplicate of 411 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.