Skip site navigation (1)Skip section navigation (2)

ports/120359: print/cups port pkg_info improvement -- FreeBSD lp* not compataible

From:Fred Wilson <fred.wilson@fuse.net>
Date:Thu, 7 Feb 2008 17:49:47 GMT
Subject:cups port pkg_info improvement -- FreeBSD lp* not compataible
Send-pr version:www-3.1

Number:120359
Category:ports
Synopsis:print/cups port pkg_info improvement -- FreeBSD lp* not compataible
Severity:non-critical
Priority:low
Responsible:dinoex@FreeBSD.org
State:feedback
Class:change-request
Arrival-Date:Thu Feb 07 18:00:05 UTC 2008
Closed-Date:
Last-Modified:Fri Mar 14 05:40:02 UTC 2008
Originator:Fred Wilson
Release:i386 FreeBSD 6.2-RELEASE #0

Organization:
personal
 
Environment:
FreeBSD gibbs.local 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 11:05:30 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386
Description:
The versions of lp, lpr, lpq and lprm placed in /usr/bin when FreeBSD is copied are not compatible with cups (at least in some cases).

Where the port install tells you how to provide cups access to the printer device (pkg_info ?) it would be valuable to include a line telling the installer to disable lp* in /usr/bin by moving them to save-lp* (incase you want to restore them) or removing them.

It took me several days and a lot of time on the web to find this out and no I did not go directly to cups.org but eventually did find a thread where someone else went through the same trial and the cups organization told them what to do.
 
How-To-Repeat:
If you can print the test page but lp or lpr gives messages like:
no lp
can't find /dev/lp
or you do lp -d <printer> file and lpq shows your file as spooled but says there is no daemon (even if lpd is running).

You may need to do this.
Basically if you are running lpd, set lpd_enable="NO" and disable the four associated files in /usr/bin.
 
Fix:
Add a couple of lines to the package setup information:
To enable printing with local printer you need to
..
2) Edit /etc/rc.conf:
ADD:
devfs_system_ruleset="system"
cupsd_enable="YES"
inetd_enable="YES" (see man cups-lpd)
REMOVE (if it exists):
lpd_enable="YES"
3) move /usr/bin/lp* to /usr/bin/save-lp*
4) Restart devfs: ...
Release-Note:
 
Audit-Trail:
Responsible Changed
From-To:freebsd-ports-bugs->dinoex
By:edwin
When:Thu Feb 7 22:54:09 UTC 2008
Why:Over to maintainer (via the GNATS Auto Assign Tool)

State Changed
From-To:open->feedback
By:dinoex
When:Tue Feb 19 08:36:20 CET 2008
Why:1) lp need to be preserverd in the system,
otherweise java applications can't print.
The replacment in /usr/local has not the options needed.
2) You shoud configure your printtab so
base lpr passed the jobs to cups.
Ther may be some better suggestions,
but your current propasal will break some applications.

Reply via E-mail
From:"Fred Wilson" <fred.wilson@fuse.net>
Date:Fri, 14 Mar 2008 01:02:34 -0400
This is a multi-part message in MIME format.


charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Maintainer missed my point which was that if you build and install cups =
and make the changes the install says to make, cups does not work with =
the versions of lp, lpr, lpq that come with FreeBSD 6.2 and it would be =
helpful if all the required changes were documented. For example I don't =
have a configuration file named printtab and man/apropos/Google printtab =
reveals nothing relevant. The changes I made seem to work but maintainer =
says they will break some applications.=20

Basically, try to make life easier for those of us who don't have the =
knowledge of a kernel developer. Don't assume "everyone knows" because =
sometimes they don't.

Fred

charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Maintainer missed my point which was =
that if you=20
build and install cups and make the changes the install says to make, =
cups does=20
not work with the versions of lp, lpr, lpq that come with FreeBSD 6.2 =
and it=20
would be helpful if all the required changes were documented. For =
example I=20
don't have a configuration file named printtab and man/apropos/Google =
printtab=20
reveals nothing relevant. The changes I made seem to work but maintainer =
says=20
they will break some applications. </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Basically, try to make life easier for =
those of us=20
who don't have the knowledge of a kernel developer. Don't assume =
"everyone=20
knows" because sometimes they don't.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Fred</FONT></DIV></BODY></HTML>




Unformatted:
 
Submit Followup | Raw PR | Find another PR