Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2002 14:14:25 -0800 (PST)
From:      Sean Chittenden <sean@chittenden.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        girgen@partitur.se
Subject:   ports/35160: PostgreSQL + Kerberos build problem...
Message-ID:  <20020220221425.5AD4F20F10@mail.tgd.net>

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

>Number:         35160
>Category:       ports
>Synopsis:       PostgreSQL + Kerberos build problem...
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 20 14:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Sean Chittenden
>Release:        FreeBSD 4.5-RC i386
>Organization:
>Environment:
System: FreeBSD ninja1.internal 4.5-RC FreeBSD 4.5-RC #0: Thu Jan 10 14:10:58 PST 2002 root@ninja1.internal:/opt/obj/opt/src/sys/NINJA i386


	
>Description:
	Build postgresql with kerberos already installed.  krb5-config returns
	the libraries needed to link to kerberos and returns them with spaces.
	When CONFIGURE_ENV has LDFLAGS appended to it, make is flattening the
	strings for you and unwittingly tries to call the 2nd argument in the
	krb5-config flags.  By wrapping the LDFLAGS in single quotes, this
	problem goes away (see patch below).  People who have kerberos installed
	and are upgarding postgres will be unable to upgrade until this patch
	is applied.
>How-To-Repeat:
	install the port
>Fix:

	

--- databases/postgresql7/scripts/configure.postgresql.orig	Wed Feb 20 13:37:48 2002
+++ databases/postgresql7/scripts/configure.postgresql	Wed Feb 20 13:38:20 2002
@@ -149,8 +149,8 @@
 				.if exists($KRB5CONF)
 				LIB_DEPENDS+=	krb5.3:${PORTSDIR}/security/krb5
 				CONFIGURE_ARGS+=	--with-krb5="`${KRB5CONF} --prefix krb5`"
-				CFLAGS+=	"`${KRB5CONF} --cflags krb5`"
-				LDFLAGS+=	"`${KRB5CONF} --libs krb5`"
+				CFLAGS+=	"'`${KRB5CONF} --cflags krb5`'"
+				LDFLAGS+=	"'`${KRB5CONF} --libs krb5`'"
 				.endif
 				EOF
 		else
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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