Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 15:02:12 -0400 (EDT)
From:      Garrett Wollman <wollman@csail.mit.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/178601: postgresql port has wrong check for MIT_KRB5
Message-ID:  <201305131902.r4DJ2C7B078669@xyz.csail.mit.edu>
Resent-Message-ID: <201305131910.r4DJA0ki008089@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305131902.r4DJ2C7B078669>