From nobody@FreeBSD.org  Thu Jun 11 19:17:45 2009
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 A7115106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 19:17:45 +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 954FC8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 19:17:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5BJHj7q021979
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Jun 2009 19:17:45 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5BJHjpi021978;
	Thu, 11 Jun 2009 19:17:45 GMT
	(envelope-from nobody)
Message-Id: <200906111917.n5BJHjpi021978@www.freebsd.org>
Date: Thu, 11 Jun 2009 19:17:45 GMT
From: Kris Moore <kris@pcbsd.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: print/cups-base doesn't find .ppd files when built with LOCALBASE != /usr/local
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135483
>Category:       ports
>Synopsis:       print/cups-base doesn't find .ppd files when built with LOCALBASE != /usr/local
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 11 19:20:01 UTC 2009
>Closed-Date:    Thu Jun 25 14:50:18 UTC 2009
>Last-Modified:  Thu Jun 25 14:50:18 UTC 2009
>Originator:     Kris Moore
>Release:        7.2-PRERELEASE
>Organization:
PC-BSD / iXsystems
>Environment:
FreeBSD pcbsd 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #12: Fri Apr 17 15:37:58 EDT 2009     root@pcbsdx32-7:/usr/obj/pcbsd-build71/cvs/7.1-src/sys/PCBSD  i386

>Description:
Cups has some hard-coded /usr/local paths in its source, which screws up the searching for ppd files when we build on a non-standard LOCALBASE. 
>How-To-Repeat:
Build and run cups in a non-standard LOCALBASE
>Fix:
Provided patch seems to correct the issue. 

Patch attached with submission follows:

--- Makefile.o	2009-06-02 15:17:17.000000000 +0000
+++ Makefile	2009-06-02 15:20:54.000000000 +0000
@@ -227,7 +227,8 @@
 	@${REINPLACE_CMD} -e 's|htmlview|xdg-open|' ${WRKSRC}/desktop/cups.desktop
 .endif
 	@${REINPLACE_CMD} -e '/SILENT/d' ${WRKSRC}/Makedefs.in
-	@${REINPLACE_CMD} -e 's|/etc/cups|/usr/local/etc/cups|g' ${WRKSRC}/man/*.man*
+	@${REINPLACE_CMD} -e 's|/etc/cups|${LOCALBASE}/etc/cups|g' ${WRKSRC}/man/*.man*
+	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/scheduler/cups-driverd.c
 	@${REINPLACE_CMD} -e 's|CXX="$$CC"||g ; s|-lpthreads.*;|${PTHREAD_LIBS};|g' \
 		-e 's|/private/etc/pam.d|${LOCALBASE}/etc/pam.d|' \
 		${WRKSRC}/${CONFIGURE_SCRIPT}


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jun 11 19:20:11 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/135483: commit references a PR
Date: Thu, 25 Jun 2009 14:49:09 +0000 (UTC)

 kmoore      2009-06-25 14:48:57 UTC
 
   FreeBSD ports repository
 
   Modified files:
     print/cups-base      Makefile 
   Log:
   - Fix build with custom prefix
   
   PR: 135483
   Approved by: miwi (mentor) and maintainer timeout (dinoex; 14 days)
   
   Revision  Changes    Path
   1.120     +2 -1      ports/print/cups-base/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: kmoore 
State-Changed-When: Thu Jun 25 14:50:17 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

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