Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Apr 2006 11:24:32 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Anton Berezin <tobez@tobez.org>
Cc:        freebsd-perl@freebsd.org
Subject:   Re: security/p5-GSSAPI on FreeBSD 4.x
Message-ID:  <44363DE0.2010507@infracaninophile.co.uk>
In-Reply-To: <20060407081947.GB54099@heechee.tobez.org>
References:  <442ED357.1060508@infracaninophile.co.uk> <20060407081947.GB54099@heechee.tobez.org>

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

[-- Attachment #1 --]
Anton Berezin wrote:
> On Sat, Apr 01, 2006 at 08:24:07PM +0100, Matthew Seaman wrote:
> 
>> There is a little problem with the recently committed security/p5-GSSAPI port
>> on machines running FreeBSD 4.x.  By default those machines won't have
>> Kerberos 5 installed, so the p5-GSSAPI compile fails at the 'perl Makefile.PL'
>> stage.
>>
>> I've found two solutions that will enable p5-GSSAPI to install, and that
>> work at least well enough to let me get p5-Mail-SpamAssassin working.
>> The first is simply to install the security/krb5 port.  The second is to
>> define MAKE_KERBEROS5=yes in /etc/make.conf and do a {build,install}world
>> cycle.
>>
>> I suggest something like this in the port Makefile:
>>
>> happy-idiot-talk:...ports/security/p5-GSSAPI:% diff -u Makefile.orig Makefile
>> --- Makefile.orig       Tue Mar 28 10:57:33 2006
>> +++ Makefile    Sat Apr  1 20:21:54 2006
>> @@ -24,6 +24,10 @@
>>  
>>  .include <bsd.port.pre.mk>
>>  
>> +.if ${OSVERSION} < 500000
>> +LIB_DEPENDS+=  gssapi:${PORTSDIR}/security/krb5
>> +.endif
>> +
>>  .if ${PERL_LEVEL} < 500600
>>  IGNORE=                requires perl 5.6.0 or later. Install lang/perl5.8 and try again
>>  .endif
>>
>> which should deal fairly neatly with either of the ways you can install
>> Kerberos5 stuff on 4.x
> 
> Hmm.  Could you explain how the suggested LIB_DEPENDS will help without
> MAKE_KERBEROS5=yes?  The security/krb5 port does not seem to install
> libgssapi library, installing libgssapi_krb5 instead.
> 
> \Anton.

Hmmm... you're right.  However I did establish by experiment that installing
security/krb5 is enough to let p5-GSSAPI compile and install.  Perhaps the
LIB_DEPENDS line should read:

    LIB_DEPENDS+=	krb5:${PORTSDIR}/security/krb5

instead.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       Flat 3
                                                      7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW, UK


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFENj3m8Mjk52CukIwRAxjnAKCH9E9TPgx5lOPKx4thfiQSO/YKoACghQzl
YjHA1/1nfjUEsRIxhcDS3EA=
=tCjz
-----END PGP SIGNATURE-----

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