ports/178601: postgresql port has wrong check for MIT_KRB5

Garrett Wollman wollman at csail.mit.edu
Mon May 13 19:10:01 UTC 2013


>Number:         178601
>Category:       ports
>Synopsis:       postgresql port has wrong check for MIT_KRB5
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 13 19:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Wollman
>Release:        FreeBSD 9.1-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD xyz.csail.mit.edu 9.1-RELEASE-p2 FreeBSD 9.1-RELEASE-p2 #27 r250065M: Mon Apr 29 17:11:15 EDT 2013 wollman at xyz.csail.mit.edu:/usr/obj/usr/src/sys/CSAIL amd64

>Description:

The databases/postgresql92-server Makefile contains the following conditional:

.   else
CONFIGURE_ARGS+=--with-krb5
# Allow defining a home built MIT Kerberos by setting KRB5_HOME
.    if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a) && exists(${KRB5_HOME}/bin/krb5-config)
LIB_DEPENDS+=   krb5.3:${PORTSDIR}/security/krb5
.    endif
.   endif
.  endif

The current security/krb5 port does not install libgssapi_krb5.a, so
this does not pick up the correct dependency, and thus building in a
clean environment (as with poudriere) fails.

>How-To-Repeat:

Configure databases/postgresql92-client to use the MIT implementation
of Kerberos and try to build it when the krb5 package is not installed.

>Fix:

Change the conditional to:

.    if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.so.2) && exists(${KRB5_HOME}/bin/krb5-config)


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


More information about the freebsd-ports-bugs mailing list