Date: Thu, 11 Jun 2009 19:17:45 GMT From: Kris Moore <kris@pcbsd.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/135483: print/cups-base doesn't find .ppd files when built with LOCALBASE != /usr/local Message-ID: <200906111917.n5BJHjpi021978@www.freebsd.org> Resent-Message-ID: <200906111920.n5BJK1DE070086@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 11 19:20:01 UTC 2009 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906111917.n5BJHjpi021978>