Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185652 - net-mail/fetchmail heimdal support
Summary: net-mail/fetchmail heimdal support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 13:19 UTC by Rafał Mużyło
Modified: 2009-11-11 07:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch I needed to build it. (heimdal.patch,1.90 KB, patch)
2007-07-17 13:22 UTC, Rafał Mużyło
Details | Diff
diff for net-mail/fetchmail/fetchmail-6.3.8.ebuild to support heimdal as kerberos 5 (fetchmail-6.3.8-heimdal.patch,796 bytes, patch)
2007-07-24 15:07 UTC, Honza Macháček
Details | Diff
fetchmail-6.3.8-r1.ebuild-heimdal.patch (fetchmail-6.3.8-r1.ebuild-heimdal.patch,445 bytes, patch)
2008-05-31 12:16 UTC, Honza Macháček
Details | Diff
patch for fetchmail configure.ac to remove the check for MD5_Init. (fetchmail-6.3.8-heimdal-1.2-MD5_Init.patch,1.37 KB, patch)
2008-07-10 23:37 UTC, Björn
Details | Diff
updated ebuild patch for fetchmail (fetchmail-6.3.8-r2.ebuild-heimdal-1.2.patch,1.01 KB, patch)
2008-07-10 23:38 UTC, Björn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2007-07-17 13:19:44 UTC
fetchmail depends on MIT Kerberos, but it's configure.ac seems to suggest it can be built Heimdal and with a little patch it seems to build fine. Should probably be changed to virtual/krb5. Also, it still checks for Kerberos4, with is to be removed.

Reproducible: Always

Steps to Reproduce:
Comment 1 Rafał Mużyło 2007-07-17 13:22:48 UTC
Created attachment 125160 [details, diff]
Patch I needed to build it.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-07-17 14:11:04 UTC
If you want this fixed, bug upstream, not Gentoo.

http://www.catb.org/~esr/fetchmail/fetchmail-FAQ.html#K4
Comment 3 Rafał Mużyło 2007-07-17 15:16:16 UTC
The longer I read the link contents, the more I fail to see how it relates to this bug.
Although, yes part of it should be upstreamed, strict dependency on MIT Kerberos is  definitely a Gentoo bug. Fixing the way it look for kerberos is for upstream, dependency on MIT is not.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-07-17 15:28:28 UTC
It doesn't even compile again heimdal without a patch, not to mention that it's unsupported by upstream? How's this a Gentoo bug?
Comment 5 Rafał Mużyło 2007-07-17 15:54:12 UTC
Oh, goody. A tennis match.
Why do you claim heimdal is not supported upstream, when fetchmail's configure.ac claims otherwise ? Did you even bother to read it ? It checks for a kerberos implementation, recognizing heimdal by finding roken.h, then checking for MD5_Init. However it looks for roken.h in a wrong directory and tries libssl for MD5_Init when it's in libcrypto, final change is again related to incorrect include path seek.
Comment 6 Honza Macháček 2007-07-24 15:07:05 UTC
Created attachment 125879 [details, diff]
diff for net-mail/fetchmail/fetchmail-6.3.8.ebuild to support heimdal as kerberos 5

I install new heimdal (Bug #185899), ebuild version derived from Harald Barth's work. Harald Barth uses an installation directory separate from the main system tree, my choice is /usr/heimdal prefix. The package includes krb5-config utility that should be used to configure dependend packages correctly: this patch changes the net-mail/fetchmail-6.3.8 ebuild to allow virtual/krb5 dependency instead of the hardwired app-crypt/mit-krb5 and to use krb5-config to configure the package for compilation. No upstream changes, sources patching or configuration scripts patching are needed.
Comment 7 Honza Macháček 2008-05-31 12:16:37 UTC
Created attachment 154937 [details, diff]
fetchmail-6.3.8-r1.ebuild-heimdal.patch

At least with heimdal-1.x installed into standard directories (see the bug #185899 or the Kerberos Overlay at http://git.overlays.gentoo.org/gitweb/?p=proj/kerberos.git;a=summary ), nothing more than changing the dependency from app-crypt/mit-krb5 to virtual/krb5 is needed to compile fetchmail against heimdal anymore.
Comment 8 Rafał Mużyło 2008-05-31 14:02:17 UTC
You seem to have missed the second part:
...tries libssl for MD5_Init when it's in libcrypto
That's a bug in fetchmail.
Comment 9 Björn 2008-07-10 23:37:10 UTC
Created attachment 160094 [details, diff]
patch for fetchmail configure.ac to remove the check for MD5_Init.

patch for fetchmail configure.ac to remove the check for MD5_Init.

the patch works with "kerberos ssl", "kerberos -ssl" and of course "-kerberos
ssl".
Comment 10 Björn 2008-07-10 23:38:40 UTC
Created attachment 160096 [details, diff]
updated ebuild patch for fetchmail
Comment 11 Rafał Mużyło 2008-07-11 11:39:01 UTC
The question is: does it still work, when '-Wl,--as-needed' is added ?

And one more: what was the purpose of that check ?
Comment 12 Matthias Andree 2009-08-19 09:19:54 UTC
Hi,

As the fetchmail upstream maintainer, I'd suggest to forward such "does anyone know" kind of questions to the fetchmail mailing lists, such as fetchmail-devel@ - we're open to distributor input, comments, concerns, questions, remarks. Thank you.

I'm adding myself to Cc: and hope to address this bug for fetchmail 6.3.12.
Comment 13 Matthias Andree 2009-08-19 09:21:41 UTC
(In reply to comment #2)
> If you want this fixed, bug upstream, not Gentoo.
> 
> http://www.catb.org/~esr/fetchmail/fetchmail-FAQ.html#K4

That would be
http://www.fetchmail.info/fetchmail-FAQ.html#K4 - ESR's fetchmail site is no longer maintained, but he apparently isn't redirecting deep links.
Comment 14 Torsten Veller (RETIRED) gentoo-dev 2009-11-11 07:55:46 UTC
fetchmail-6.3.13 is in the tree and should support heimdal.