From andy@gerweck.dyndns.org  Wed Apr 16 23:43:52 2003
Return-Path: <andy@gerweck.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8E3B637B404
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 Apr 2003 23:43:52 -0700 (PDT)
Received: from gerweck.dyndns.org (adsl-64-161-26-217.dsl.sntc01.pacbell.net [64.161.26.217])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C101143FB1
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 Apr 2003 23:43:51 -0700 (PDT)
	(envelope-from andy@gerweck.dyndns.org)
Received: from gerweck.dyndns.org (473f2512eb7f16ee93e9cebcecad07fe@localhost [127.0.0.1])
	by gerweck.dyndns.org (8.12.6p2/8.12.6) with ESMTP id h3H6hl3J009316
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 16 Apr 2003 23:43:48 -0700 (PDT)
	(envelope-from andy@gerweck.dyndns.org)
Received: (from andy@localhost)
	by gerweck.dyndns.org (8.12.6p2/8.12.6/Submit) id h3H6hlDa009315;
	Wed, 16 Apr 2003 23:43:47 -0700 (PDT)
	(envelope-from andy)
Message-Id: <200304170643.h3H6hlDa009315@gerweck.dyndns.org>
Date: Wed, 16 Apr 2003 23:43:47 -0700 (PDT)
From: Andy Gerweck <andy@gerweck.dyndns.org>
Reply-To: Andy Gerweck <andy@gerweck.dyndns.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: girgen@pingpong.net
Subject: Fixes for Kerberos support in Postgresql
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51080
>Category:       ports
>Synopsis:       Fixes for Kerberos support in Postgresql
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 16 23:50:17 PDT 2003
>Closed-Date:    Sun Jun 01 18:45:58 PDT 2003
>Last-Modified:  Sun Jun 01 18:45:58 PDT 2003
>Originator:     Andy Gerweck
>Release:        FreeBSD 5.0-RELEASE-p7 i386
>Organization:
>Environment:
System: FreeBSD gerweck.dyndns.org 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #9: Wed Apr 16 19:46:25 PDT 2003 root@gerweck.dyndns.org:/usr/obj/usr/src/sys/ENRIQUE i386


	
>Description:
The major problem is that the MIT kerberos ports conflict in terrible
ways with the OS libraries.  The port tries to deal with this, but it
doesn't actually set the variable it needs to pass the LDFLAGS through.

Some of the detection stuff also needs bsd.port.pre.mk to work at all.

There's a repeated optimization switch, for no apparent reason.
	
>How-To-Repeat:
	
>Fix:

	

--- pgsql.diff begins here ---
10c10
< PORTREVISION=	1
---
> PORTREVISION=	2
49a50
> CONFIGURE_ENV=  LDFLAGS="${LDFLAGS}"
89a91
> .include <bsd.port.pre.mk>
106,109d107
< .if defined(WITH_OPTIMIZED_CFLAGS)
< CFLAGS+= -O3 -funroll-loops
< .endif
< 
160a159,174
> .if defined(WITH_MIT_KRB5) && defined(WITH_HEIMDAL_KRB5)
> 	@${ECHO} "WITH_MIT_KRB5 and WITH_HEIMDAL_KRB5 are mutually exclusive."
> 	@${ECHO} "Please choose one or the other."
> 	@exit 1
> .endif
> .if defined(WITH_MIT_KRB5) && !exists(${KRB5CONF})
> 	@${ECHO} "Unable to find krb5-config in your local base, please verify that"
> 	@${ECHO} "security/krb5 is installed or undefine the WITH_MIT_KRB5 tunable."
> 	@exit 1
> .endif
> .if defined(WITH_HEIMDAL_KRB5) && !exists(${KRB5CONF})
> 	@${ECHO} "Unable to find krb5-config in the base system.  Undefine"
> 	@${ECHO} "WITH_HEIMDAL_KRB5 or add MAKE_KERBEROS5=yes to /etc/make.conf"
> 	@${ECHO} "and remake world (or undefine the WITH_HEIMDAL_KRB5 tunable)."
> 	@exit 1
> .endif
211a226
> .include <bsd.port.post.mk>
213d227
< .include <bsd.port.mk>
--- pgsql.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nork 
State-Changed-When: Sun Jun 1 18:45:40 PDT 2003 
State-Changed-Why:  
Superseded by ports/52851. 

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