From khera@kciLink.com  Mon Oct 28 07:41:37 2002
Return-Path: <khera@kciLink.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id C91B737B401; Mon, 28 Oct 2002 07:41:37 -0800 (PST)
Received: from yertle.kciLink.com (yertle.kcilink.com [216.194.193.105])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 65BC043E42; Mon, 28 Oct 2002 07:41:37 -0800 (PST)
	(envelope-from khera@kciLink.com)
Received: from onceler.kciLink.com (onceler.kciLink.com [216.194.193.106])
	by yertle.kciLink.com (Postfix) with ESMTP
	id CADF521792; Mon, 28 Oct 2002 10:41:26 -0500 (EST)
Received: by onceler.kciLink.com (Postfix, from userid 100)
	id 947373D07; Mon, 28 Oct 2002 10:41:26 -0500 (EST)
Message-Id: <20021028154126.947373D07@onceler.kciLink.com>
Date: Mon, 28 Oct 2002 10:41:26 -0500 (EST)
From: Vivek Khera <khera@kciLink.com>
Reply-To: Vivek Khera <khera@kciLink.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: dwcjr@FreeBSD.org
Subject: samba without CUPS still links CUPS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         44568
>Category:       ports
>Synopsis:       samba without CUPS still links CUPS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 28 07:50:01 PST 2002
>Closed-Date:    Wed Oct 30 09:26:43 PST 2002
>Last-Modified:  Wed Oct 30 09:26:43 PST 2002
>Originator:     Vivek Khera
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD onceler.kciLink.com 4.7-STABLE FreeBSD 4.7-STABLE #3: Fri Oct 11 16:01:32 EDT 2002 khera@yertle.kciLink.com:/u/yertle2/usr.obj/amd/onceler/u/onceler1/usr/src/sys/ONCELER i386


	
>Description:
	
I upgraded samba to 2.2.6 from 2.2.5 last week.  Printing from Win2000
(fully updated/patched) stopped working.  There was an error in the
log.smb file about not being able to reach a CUPS server, so I decided
to try building samba without CUPS.  However, all that the menu option
to disable CUPS in the samba build process does is not register the
dependency.  Samba is still linked against CUPS.

>How-To-Repeat:
	

build samba with the "no cups" menu option selected.

>Fix:

	


dunno.  i'm reverting back to 2.2.5 to get printing working
again. (Yes, I've set printing = bsd in my smb.conf file).
>Release-Note:
>Audit-Trail:

From: AlanE <alane@geeksrus.net>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: ports/44568: samba without CUPS still links CUPS
Date: Mon, 28 Oct 2002 11:00:03 -0500

 On Mon, Oct 28, 2002 at 10:41:26AM -0500, Vivek Khera wrote:
 >
 >>Number:         44568
 >>Category:       ports
 >>Synopsis:       samba without CUPS still links CUPS
 >	
 >>Description:
 >	
 >I upgraded samba to 2.2.6 from 2.2.5 last week.  Printing from Win2000
 >(fully updated/patched) stopped working.  There was an error in the
 >log.smb file about not being able to reach a CUPS server, so I decided
 >to try building samba without CUPS.  However, all that the menu option
 >to disable CUPS in the samba build process does is not register the
 >dependency.  Samba is still linked against CUPS.
 
 Hmmm... I'd have to look at that. That may be the Samba package, not us,
 in which case it's gonna be hard to do anything about it.
 
 Unlike the other printing systems, Samba prints to CUPS by direct C API
 calls, not exec'ing 'lp*' programs. The new cups (which I am working on)
 includes a new Samba driver as an extra, although I know no specifics yet.
 
 dwcjr - when I get a chance I'll try to see what's going on.
 
 Vivek - pardon my idioms, but so ****ing what? Nothing is harmed.
 
 My own personal opinion is that this PR should just be closed as not
 a real issue, but that's without investigation ... and I do *NOT* want
 to get into a discussion of whether this *is* a real issue or not.
 
 -- 
 Alan Eldridge (cups-* maintainer)
 Unix/C(++) IT Pro, 20 yrs, seeking new employment.
 (http://wwweasel.geeksrus.net/~alane/resume.txt)
 KDE, KDE-FreeBSD Teams (http://www.kde.org, http://freebsd.kde.org/)

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: Vivek Khera <khera@kciLink.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org, dwcjr@FreeBSD.org
Subject: Re: ports/44568: samba without CUPS still links CUPS
Date: Mon, 28 Oct 2002 12:04:45 -0600

 Which portrevision did you try?
 
 -- 
 David W. Chapman Jr.
 dwcjr@inethouston.net	Raintree Network Services, Inc. <www.inethouston.net>
 dwcjr@freebsd.org	FreeBSD Committer <www.FreeBSD.org>

From: Vivek Khera <khera@kcilink.com>
To: "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/44568: samba without CUPS still links CUPS
Date: Mon, 28 Oct 2002 14:24:20 -0500

 >>>>> "DWC" == David W Chapman, <David> writes:
 
 DWC> Which portrevision did you try?
 
 /usr/ports/net/samba:
 
 PORTNAME=       samba
 PORTVERSION=    2.2.6
 
 No PORTREVISION present.
 
 The Makefile is dated October 17.
 
 Aside from this, it seems to me that if samba has CUPS linked, it uses
 it instead of the bsd printing mechanism I configured... but that's
 another issue.
 
 If I pkg_delete cups_base first, then it works as expected (and prints
 ok, too).
 
 Someone sent this patch along, which I haven't tried:
 
 diff -u -r1.104 Makefile
 --- Makefile	17 Oct 2002 13:49:31 -0000	1.104
 +++ Makefile	28 Oct 2002 17:26:04 -0000
 @@ -123,6 +125,8 @@
  LIB_DEPENDS+=	cups.2:${PORTSDIR}/print/cups-base
  CONFIGURE_ENV+=	CPPFLAGS=-I${LOCALBASE}/include \
  		LDFLAGS=-L${LOCALBASE}/lib
 +.else
 +CONFIGURE_ARGS+=	--without-cups
  .endif
  
  .if defined(KRB5_HOME) && exists(${KRB5_HOME})
 

From: "David W. Chapman Jr." <dwcjr@inethouston.net>
To: Vivek Khera <khera@kcilink.com>
Cc: "David W. Chapman Jr." <dwcjr@inethouston.net>,
	FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/44568: samba without CUPS still links CUPS
Date: Mon, 28 Oct 2002 13:27:01 -0600

 That patch seems like it would do the trick, if you could test it 
 sometime, let me know and I'll commit it.
 -- 
 David W. Chapman Jr.
 dwcjr@inethouston.net	Raintree Network Services, Inc. <www.inethouston.net>
 dwcjr@freebsd.org	FreeBSD Committer <www.FreeBSD.org>

From: Vivek Khera <khera@kcilink.com>
To: "David W. Chapman Jr." <dwcjr@inethouston.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/44568: samba without CUPS still links CUPS
Date: Mon, 28 Oct 2002 14:46:21 -0500

 >>>>> "DWC" == David W Chapman, <David> writes:
 
 DWC> That patch seems like it would do the trick, if you could test it 
 DWC> sometime, let me know and I'll commit it.
 
 It did not work... however if you use the correct "--disable-cups" it
 does work:
 
 .if defined(WITH_CUPS)
 LIB_DEPENDS+=   cups.2:${PORTSDIR}/print/cups-base
 CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
                 LDFLAGS=-L${LOCALBASE}/lib
 .else
 CONFIGURE_ARGS+= --disable-cups
 .endif
 
 Thanks.
 
State-Changed-From-To: open->closed 
State-Changed-By: dwcjr 
State-Changed-When: Wed Oct 30 09:26:30 PST 2002 
State-Changed-Why:  
Committed, thanks! 

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