From nobody@FreeBSD.org  Thu Feb  7 17:51:53 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 32E7516A477
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Feb 2008 17:51:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1BAAD13C4E5
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Feb 2008 17:51:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m17HnmI8076056
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 7 Feb 2008 17:49:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m17HnlWN076052;
	Thu, 7 Feb 2008 17:49:47 GMT
	(envelope-from nobody)
Message-Id: <200802071749.m17HnlWN076052@www.freebsd.org>
Date: Thu, 7 Feb 2008 17:49:47 GMT
From: Fred Wilson <fred.wilson@fuse.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cups port pkg_info improvement -- FreeBSD lp* not compataible
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120359
>Category:       ports
>Synopsis:       print/cups port pkg_info improvement -- FreeBSD lp* not compataible
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 07 18:00:05 UTC 2008
>Closed-Date:    Sat Dec 19 17:08:25 UTC 2009
>Last-Modified:  Sat Dec 19 17:08:25 UTC 2009
>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 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Feb 7 22:54:09 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120359 
State-Changed-From-To: open->feedback 
State-Changed-By: dinoex 
State-Changed-When: Tue Feb 19 08:36:20 CET 2008 
State-Changed-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. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=120359 

From: "Fred Wilson" <fred.wilson@fuse.net>
To: <bug-followup@FreeBSD.org>,
	"Fred Wilson" <fred.wilson@fuse.net>
Cc:  
Subject: Re: ports/120359: print/cups port pkg_info improvement -- FreeBSD lp* not compataible
Date: Fri, 14 Mar 2008 01:02:34 -0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0004_01C8856F.168CCF10
 Content-Type: text/plain;
 	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
 ------=_NextPart_000_0004_01C8856F.168CCF10
 Content-Type: text/html;
 	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>
 
 ------=_NextPart_000_0004_01C8856F.168CCF10--
 
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Sat Dec 19 17:06:58 UTC 2009 
State-Changed-Why:  
One year without activity -> close 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120359 
>Unformatted:
