ports/141253: print/cups-base port improperly compiles SSL support

Coleman Kane ckane at FreeBSD.org
Mon Dec 7 19:10:10 UTC 2009


>Number:         141253
>Category:       ports
>Synopsis:       print/cups-base port improperly compiles SSL support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 07 19:10:09 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Coleman Kane
>Release:        9-CURRENT
>Organization:
The FreeBSD Project
>Environment:
FreeBSD erwin 9.0-CURRENT FreeBSD 9.0-CURRENT #2 r+9f3cb0d: Tue Nov 24 09:50:06 EST 2009     root at erwin:/usr/obj/usr/src/sys/ERWIN  amd64
>Description:
Trying to upgrade the print/cups-base port. For some reason, PKG_CONFIG_PATH doesn't get recognized properly and the port fails to recognize that gnutls is installed, and refuses to add support for it to the build.

I'm attaching a patch that adds PKG_CONFIG_PATH=${PREFIX}/libdata/pkgconfig to the CONFIGURE_ARGS, but I expect there is a more "appropriate" way to do this. I just don't know what that is.
>How-To-Repeat:
Try upgrading print/cups-base with GnuTLS support enabled.
>Fix:
Attached patch

Patch attached with submission follows:

diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile
index 6dd503e..a0bc7c3 100644
--- print/cups-base/Makefile
+++ print/cups-base/Makefile
@@ -35,7 +35,8 @@ CONFIGURE_ARGS+=	--localstatedir=/var			\
 			--with-docdir=${DOCSDIR}		\
 			--with-icondir=${PREFIX}/share/icons	\
 			--with-menudir=${DESKTOPDIR}		\
-			--with-domainsocket=${CUPS_SOCKET}
+			--with-domainsocket=${CUPS_SOCKET}      \
+			PKGCONFIG=${PREFIX}/bin/pkg-config
 
 OPTIONS?=	GNUTLS		"Build with GNUTLS library" on \
 		PHP		"Build PHP support" off \


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list