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

Fred Wilson fred.wilson at fuse.net
Thu Feb 7 18:00:06 UTC 2008


>Number:         120359
>Category:       ports
>Synopsis:       cups port pkg_info improvement -- FreeBSD lp* not compataible
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 07 18:00:05 UTC 2008
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list