Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2001 20:00:02 -0800 (PST)
From:      Sean Chittenden <sean@chittenden.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/30604: postgresql7 doesn't build with kerberos5
Message-ID:  <200111260400.fAQ402A99780@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/30604; it has been noted by GNATS.

From: Sean Chittenden <sean@chittenden.org>
To: Palle Girgensohn <girgen@partitur.se>
Cc: freebsd-gnats-submit@FreeBSD.org, Tom Hukins <tom@FreeBSD.org>
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




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