Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 119281
Alias:
Product:
Component:
Status: ASSIGNED
Resolution:
Assigned To: Net-Mail Packages <net-mail@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: M Grundman <grundman@mip.ups-tlse.fr>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
uw-imap-2004g-r2.ebuild an ebuild proposal text/plain M Grundman 2006-01-17 06:01 0000 5.58 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 119281 depends on: Show dependency tree
Bug 119281 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-01-17 05:56 0000
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

------- Comment #1 From M Grundman 2006-01-17 06:01:18 0000 -------
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.

------- Comment #2 From M Grundman 2006-01-17 06:32:06 0000 -------
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

------- Comment #3 From Andrej Kacian (RETIRED) 2006-01-17 10:38:43 0000 -------
Hm, a diff to current ebuild would be appreciated. I'll have a look at this
ASAP, hopefully on thursday evening.

------- Comment #4 From Martin von Gagern 2007-02-06 15:49:23 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug