Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
I propose an ebuild how to compile uw-imap with heimdal. It is a quite important issue because pam_krb5afs does not work with mit-krb5 and it was impossible to use gssapi of uw-imap linked to mit-krb5 with pam_krb5afs linked to heimdal. In order to compile we must change two files, src/osdep/unix/kerb_mit.c and src/osdep/uniw/Makefile.gss. cp Makefile.gss Makefile.gss.orig sed \ -e "s:GSSDIR=/usr/local:GSSDIR=/usr:g" \ -e "s:-lgssapi_krb5:-lgssapi:g" \ -e "s:GSSCFLAGS=.*:GSSCFLAGS=-I/usr/include:g" \ < Makefile.gss.orig > Makefile.gss cp kerb_mit.c kerb_mit.c.orig sed \ -e "s:#include <gssapi/gssapi_krb5.h>:#include <heimdal/gssapi.h>:g" \ -e "s:#include <gssapi/gssapi_generic.h>:#include <heimdal/krb5.h>:g" \ < kerb_mit.c.orig > kerb_mit.c
Created an attachment (id=77347) [details] an ebuild proposal This ebuild contains also another modification, private SSL keys are placed into /etc/ssl/private because some application do not like that some files in /etc/ssl/certs cannot be read.
a similar path is possible for pine-4.64-r1 at the end of src_unpack(): cd ${S}/imap/src/osdep/unix/ cp Makefile.gss Makefile.gss.orig chmod u+w Makefile.gss sed \ -e "s:GSSDIR=/usr/local:GSSDIR=/usr:g" \ -e "s:-lgssapi_krb5:-lgssapi:g" \ -e "s:GSSCFLAGS=.*:GSSCFLAGS=-I/usr/include:g" \ < Makefile.gss.orig > Makefile.gss cp kerb_mit.c kerb_mit.c.orig chmod u+w kerb_mit.c sed \ -e "s:#include <gssapi/gssapi_krb5.h>:#include <heimdal/gssapi.h>:g" \ -e "s:#include <gssapi/gssapi_generic.h>:#include <heimdal/krb5.h>:g" \ < kerb_mit.c.orig > kerb_mit.c
Hm, a diff to current ebuild would be appreciated. I'll have a look at this ASAP, hopefully on thursday evening.
Just encountered similar heimdal include problems with nss_ldap in bug 165638. Notice that /usr/include/gssapi is a symlink to heimdal (at least on my setup), so maybe you don't want to change the path but only the base name of the headers.