From owner-freebsd-ports Wed Feb 20 14:20:12 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 81D0837B405 for ; Wed, 20 Feb 2002 14:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1KMK1C69069; Wed, 20 Feb 2002 14:20:01 -0800 (PST) (envelope-from gnats) Received: from mail.tgd.net (mail.tgd.net [209.81.25.10]) by hub.freebsd.org (Postfix) with ESMTP id B8C5F37B400 for ; Wed, 20 Feb 2002 14:14:25 -0800 (PST) Received: by mail.tgd.net (Postfix, from userid 1001) id 5AD4F20F10; Wed, 20 Feb 2002 14:14:25 -0800 (PST) Message-Id: <20020220221425.5AD4F20F10@mail.tgd.net> Date: Wed, 20 Feb 2002 14:14:25 -0800 (PST) From: Sean Chittenden Reply-To: Sean Chittenden To: FreeBSD-gnats-submit@freebsd.org Cc: girgen@partitur.se X-Send-Pr-Version: 3.113 Subject: ports/35160: PostgreSQL + Kerberos build problem... Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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