[5424] in Moira

home help back first fref pref prev next nref lref last post

Re: Building Moira without krb4

daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Fri Apr 24 17:18:46 2009

Message-ID: <49F22CA7.8030301@mit.edu>
Date: Fri, 24 Apr 2009 17:18:31 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>
MIME-Version: 1.0
To: Evan Broder <broder@mit.edu>
CC: "moiradev@mit.edu" <moiradev@mit.edu>
In-Reply-To: <49E6377B.3000304@mit.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Evan Broder wrote:
> Debathena recently discovered that Moira can not currently build without
> the krb4 libraries available. Debian Squeeze (the current testing
> release) recently removed the krb4 build environment in anticipation of
> the krb5 1.7 release, which will not include krb4 at all. Once Ubuntu
> Jaunty releases, Ubuntu Karmic is likely to sync in this change
> relatively quickly, which means that this will be an issue for the IAP
> 2010 Debathena cluster release as well.
> 
> Attached is a patch which removes the Moira clients' and library's
> strict dependency on krb4. The patch adds support for building
> --without-krb4 by defining HAVE_KRB4 when it's available, and using a
> bunch of #ifdefs to disable the krb4 code when it's not available. I
> added a new error code, MR_NO_KRB4, which is returned by functions that
> previously would have required krb4. I also added mr_kname_parse, as a
> parallel to mr_kname_unparse, and an internal header file which defines
> the necessary missing constants.
> 
> Since Debathena can't build Moira for Debian Squeeze without this patch,
> I intend to start building with it immediately, but we're always
> interested in minimizing our skew from your source tree.
> 
> - Evan
> 
> 

Thanks for taking a crack at this.  It has some number of problems, as is:

- It doesn't work on Solaris, because "-lkrb5 -lk5crypto", etc. aren't
getting added to $LIBS in the case where you build without krb4.

- It doesn't touch any of the non-client programs, which have krb4
dependencies of their own.

I believe I now have a working set of patches that address all of the
krb4 dependencies in the whole tree, which builds cleanly but is as yet
untested.  I need to test the moirad and the reg_svr and then I'll feel
more comfortable checking this in.

Garry


home help back first fref pref prev next nref lref last post