From owner-freebsd-ports Sun Nov 25 20: 0: 8 2001 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 6C1C737B416 for ; Sun, 25 Nov 2001 20:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fAQ402A99780; Sun, 25 Nov 2001 20:00:02 -0800 (PST) (envelope-from gnats) Date: Sun, 25 Nov 2001 20:00:02 -0800 (PST) Message-Id: <200111260400.fAQ402A99780@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Sean Chittenden Subject: Re: ports/30604: postgresql7 doesn't build with kerberos5 Reply-To: Sean Chittenden 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 The following reply was made to PR ports/30604; it has been noted by GNATS. From: Sean Chittenden To: Palle Girgensohn Cc: freebsd-gnats-submit@FreeBSD.org, Tom Hukins Subject: Re: ports/30604: postgresql7 doesn't build with kerberos5 Date: Sun, 25 Nov 2001 13:56:59 -0800 --n2Pv11Ogg/Ox8ay5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Sorry for the long delay, I actually forgot about this. That's alright: I just switched ISPs and it took a long time to get reverse DNS setup so I couldn't reply. <:~) > Could you please try the attached patch? It seems to work for me, > only I have no Kerberos to test it with. Configure gets the idea and > fails for me since Kerberos cannot be found, which seems OK :) How's the attached look to you? This seems like the best approach to me. If you specify kerberos, but don't have it, it'll fail and make all kinds of noise which I think is the correct approach. If I have LD_RUN_PATH setup, or some other LDFLAGS environment variable, then it should be able to pick up the different krb5 lib directory. I kept the exists in there because it's a useful stop gap sanity check. I don't know who else will get this email but I'm thinking that there should be a USE_KRB knob in /etc/make.conf that'll allow us to differentiate between Heimdal, MIT kerberos, and NCSA kerberos. Any thoughts? Kerberos is hugely valuable in the enterprise but it's always an ugly kid that gets thrown in the corner because it's not really understood well. -sc -- Sean Chittenden --n2Pv11Ogg/Ox8ay5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="configure.postgresql.patch" --- scripts/configure.postgresql.orig Sun Nov 25 12:27:03 2001 +++ scripts/configure.postgresql Sun Nov 25 13:33:59 2001 @@ -270,8 +270,10 @@ echo KRB5_HOME=\"$1\" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc fi cat <<-EOF >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc - .if defined(KRB5_HOME) && exists(\${KRB5_HOME}) - CONFIGURE_KRB= --with-krb5=\${KRB5_HOME} + .if defined(KRB5_HOME) && exists(\${KRB5_HOME}/lib/libkrb5.so) + CONFIGURE_ARGS+= --with-krb5=\${KRB5_HOME} + .else + CONFIGURE_ARGS+= --with-krb5 .endif EOF --n2Pv11Ogg/Ox8ay5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message