First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 185899
Alias:
Product:
Component:
Status: REOPENED
Resolution:
Assigned To: Gentoo Kerberos Maintainers <kerberos@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bryan Jacobs <BryanRJ@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
heimdal-1.0.ebuild heimdal-1.0.ebuild text/plain Bryan Jacobs 2007-07-19 20:07 0000 3.52 KB Details
heimdal-1.0-gentoo-patches-0.1.tar.bz2 heimdal-1.0-gentoo-patches-0.1.tar.bz2 application/octet-stream Bryan Jacobs 2007-07-19 20:08 0000 5.24 KB Details
heimdal-1.0.ebuild heimdal-1.0.ebuild text/plain Bryan Jacobs 2007-07-23 22:34 0000 3.70 KB Details
force_inclusion_by_path.patch force_inclusion_by_path.patch patch Bryan Jacobs 2007-07-23 22:35 0000 296 bytes Details | Diff
heimdal-1.0.ebuild Alternative heimdal-1.0.ebuild text/plain Honza Macháček 2007-07-24 11:24 0000 1.92 KB Details
heimdal-1.0-1.0.1_rc1.diff heimdal-1.0-1.0.1_rc1.ebuild.diff patch Honza Macháček 2007-07-26 08:34 0000 3.47 KB Details | Diff
heimdal-1.0-0.8.1-r1.ebuild.diff heimdal-1.0-0.8.1-r1.ebuild.diff patch Honza Macháček 2007-07-27 09:02 0000 3.80 KB Details | Diff
heimdal-0.8.1-gentoo-patches-0.1.tar.bz2 heimdal-0.8.1-gentoo-patches-0.1.tar.bz2 application/octet-stream Honza Macháček 2007-07-27 09:03 0000 5.25 KB Details
heimdal-1.0-1.0.1_rc1.ebuild.diff heimdal-1.0-1.0.1_rc1.ebuild.diff patch Honza Macháček 2007-07-27 21:56 0000 3.87 KB Details | Diff
heimdal-1.0.1.ebuild app-crypt/heimdal/heimdal-1.0.1.ebuild text/plain Dmitry S. Kulyabov 2007-08-19 07:29 0000 3.29 KB Details
001_all_heimdal-no_libedit.patch app-crypt/heimdal/files/1.0.1/001_all_heimdal-no_libedit.patch patch Dmitry S. Kulyabov 2007-08-19 07:31 0000 410 bytes Details | Diff
002_all_heimal-fPIC.patch app-crypt/heimdal/files/1.0.1/002_all_heimal-fPIC.patch patch Dmitry S. Kulyabov 2007-08-19 07:31 0000 352 bytes Details | Diff
003_all_heimdal-rxapps.patch app-crypt/heimdal/files/1.0.1/003_all_heimdal-rxapps.patch patch Dmitry S. Kulyabov 2007-08-19 07:31 0000 843 bytes Details | Diff
005_all_heimdal-suid_fix.patch app-crypt/heimdal/files/1.0.1/005_all_heimdal-suid_fix.patch patch Dmitry S. Kulyabov 2007-08-19 07:32 0000 546 bytes Details | Diff
010_all_heimdal-system-libss.patch app-crypt/heimdal/files/1.0.1/010_all_heimdal-system-libss.patch patch Dmitry S. Kulyabov 2007-08-19 07:33 0000 1.09 KB Details | Diff
012_all_heimdal-berkdb.patch app-crypt/heimdal/files/1.0.1/012_all_heimdal-berkdb.patch patch Dmitry S. Kulyabov 2007-08-19 07:33 0000 3.08 KB Details | Diff
013_all_heimdal-pthread-lib.patch app-crypt/heimdal/files/1.0.1/013_all_heimdal-pthread-lib.patch patch Dmitry S. Kulyabov 2007-08-19 07:33 0000 296 bytes Details | Diff
014_all_heimdal-path.patch app-crypt/heimdal/files/1.0.1/014_all_heimdal-path.patch patch Dmitry S. Kulyabov 2007-08-19 07:34 0000 1.37 KB Details | Diff
015_all_heimdal-fixit.patch app-crypt/heimdal/files/1.0.1/015_all_heimdal-fixit.patch patch Dmitry S. Kulyabov 2007-08-19 07:34 0000 348 bytes Details | Diff
100_all_force_inclusion_by_path.patch app-crypt/heimdal/files/1.0.1/100_all_force_inclusion_by_path.patch patch Dmitry S. Kulyabov 2007-08-19 07:34 0000 296 bytes Details | Diff
heimdal-kadmind app-crypt/heimdal/files/configs/heimdal-kadmind text/plain Dmitry S. Kulyabov 2007-08-19 07:35 0000 433 bytes Details
heimdal-kcm app-crypt/heimdal/files/configs/heimdal-kcm text/plain Dmitry S. Kulyabov 2007-08-19 07:35 0000 458 bytes Details
heimdal-kdc app-crypt/heimdal/files/configs/heimdal-kdc text/plain Dmitry S. Kulyabov 2007-08-19 07:36 0000 412 bytes Details
heimdal-kpasswdd app-crypt/heimdal/files/configs/heimdal-kpasswdd text/plain Dmitry S. Kulyabov 2007-08-19 07:36 0000 450 bytes Details
krb5.conf app-crypt/heimdal/files/configs/krb5.conf text/plain Dmitry S. Kulyabov 2007-08-19 07:36 0000 425 bytes Details
krb5-kdc.schema app-crypt/heimdal/files/configs/krb5-kdc.schema text/plain Dmitry S. Kulyabov 2007-08-19 07:36 0000 3.96 KB Details
heimdal-1.0.1-r1.ebuild heimdal-1.0.1-r1.ebuild text/plain Honza Macháček 2007-09-19 22:13 0000 4.18 KB Details
heimdal-1.0-as-needed.patch patch for -Wl,--as-needed patch Rafał Mużyło 2007-11-06 17:37 0000 626 bytes Details | Diff
cyrus-sasl-2.1.22-r2.diff Patch for cyrus-sasl to compile against heimdal patch Gerald Raaf 2007-12-12 18:35 0000 1.54 KB Details | Diff
php4_4-sapi.eclass.patch php4_4-sapi.eclass patch to compile against heimdal-1.0.1 patch Gerald Raaf 2007-12-12 18:59 0000 1.27 KB Details | Diff
php5_0-sapi.eclass.patch php5_0-sapi.eclass patch to compile against heimdal-1.0.1 text/plain Gerald Raaf 2007-12-12 18:59 0000 848 bytes Details
php5_1-sapi.eclass.patch php5_1-sapi.eclass patch to compile against heimdal-1.0.1 patch Gerald Raaf 2007-12-12 19:00 0000 751 bytes Details | Diff
php5_2-sapi.eclass.patch php5_2-sapi.eclass patch to compile against heimdal-1.0.1 patch Gerald Raaf 2007-12-12 19:01 0000 1.27 KB Details | Diff
libpq-8.2.4.ebuild.patch patch for postgresql library to compile against heimdal 1.0.1 patch Gerald Raaf 2007-12-12 19:07 0000 1.20 KB Details | Diff
postgresql-8.2.4-r1.ebuild.patch patch for postgresql to compile against heimdal 1.0.1 patch Gerald Raaf 2007-12-12 19:11 0000 3.07 KB Details | Diff
dovecot-1.0.3.ebuild.patch patch for dovecot to compile against heimdal 1.0.1 text/plain Gerald Raaf 2007-12-12 19:15 0000 791 bytes Details
openldap-2.3.37.ebuild.patch patch for openldap to compile against heimdal 1.0.1 patch Gerald Raaf 2007-12-12 19:19 0000 1.05 KB Details | Diff
pam_krb5.tar.bz2 New ebuild for pam_krb5 which work with heimdal 1.0.1 application/octet-stream Gerald Raaf 2007-12-12 19:26 0000 3.24 KB Details
mod_auth_kerb.tar.bz2 New ebuild for Apache Module mod_auth_kerb which work with heimdal 1.0.1 application/octet-stream Gerald Raaf 2007-12-12 19:29 0000 3.48 KB Details
heimdal-1.1-gentoo-patches-0.1.tar.bz2 heimdal-1.1-gentoo-patches-0.1.tar.bz2 application/octet-stream Honza Macháček 2008-01-29 14:41 0000 5.27 KB Details
heimdal-1.1.ebuild app-crypt/heimdal-1.1.ebuild text/plain Honza Macháček 2008-01-29 14:51 0000 2.64 KB Details
heimdal-1.0-1.1.ebuild.diff heimdal-1.0-1.1.ebuild.diff patch Honza Macháček 2008-01-29 14:54 0000 2.47 KB Details | Diff
gentoo-patches-heimdal-1.0-1.1.diff gentoo-patches-heimdal-1.0-1.1.diff patch Honza Macháček 2008-01-29 14:59 0000 450 bytes Details | Diff
heimdal-1.1.ebuild heimdal-1.1.ebuild text/plain Honza Macháček 2008-03-30 14:09 0000 2.62 KB Details
heimdal-1.0-1.1.ebuild.diff heimdal-1.0-1.1.ebuild.diff patch Honza Macháček 2008-03-30 14:10 0000 2.67 KB Details | Diff
heimdal-1.1-r1.ebuild heimdal-1.1-r1.ebuild text/plain Honza Macháček 2008-04-09 22:04 0000 2.68 KB Details
heimdal-1.1-ldapQA.patch heimdal-1.1-ldapQA.patch patch Honza Macháček 2008-04-09 22:06 0000 7.55 KB Details | Diff
heimdal-1.1-r2.ebuild heimdal-1.1-r2.ebuild text/plain Honza Macháček 2008-04-12 21:48 0000 2.73 KB Details
heimdal-1.1-ldapQAplus.patch heimdal-1.1-ldapQAplus.patch patch Honza Macháček 2008-04-12 21:52 0000 3.69 KB Details | Diff
heimdal-1.2_rc1-gentoo-patches-0.1.tar.bz2 heimdal-1.2_rc1-gentoo-patches-0.1.tar.bz2 application/octet-stream Honza Macháček 2008-04-20 08:06 0000 6.22 KB Details
heimdal-1.2_rc1.ebuild heimdal-1.2_rc1.ebuild text/plain Honza Macháček 2008-04-20 08:18 0000 2.81 KB Details
heimdal-1.2_rc2.ebuild heimdal-1.2_rc2.ebuild text/plain Honza Macháček 2008-04-30 04:11 0000 2.81 KB Details
librpcsecgss-0.18-config_in.patch librpcsecgss-0.18-config_in.patch patch Honza Macháček 2008-05-03 13:36 0000 2.08 KB Details | Diff
librpcsecgss-0.18.ebuild-heimdal.diff librpcsecgss-0.18.ebuild-heimdal.diff patch Honza Macháček 2008-05-03 13:38 0000 1.11 KB Details | Diff
nfs-utils-1.1.2-pkgconfig_ac.patch nfs-utils-1.1.2-pkgconfig_ac.patch patch Honza Macháček 2008-05-03 13:42 0000 1.29 KB Details | Diff
nfs-utils-1.1.2-no_libgssapi.patch nfs-utils-1.1.2-no_libgssapi.patch patch Honza Macháček 2008-05-03 13:46 0000 2.00 KB Details | Diff
nfs-utils-1.1.2.ebuild-heimdal.diff nfs-utils-1.1.2.ebuild-heimdal.diff patch Honza Macháček 2008-05-03 13:49 0000 1.07 KB Details | Diff
heimdal-1.2.ebuild heimdal-1.2.ebuild text/plain Honza Macháček 2008-05-25 04:49 0000 3.13 KB Details
heimdal-1.2-gentoo-patches-0.1.tar.bz2 heimdal-1.2-gentoo-patches-0.1.tar.bz2 application/octet-stream Honza Macháček 2008-05-25 04:56 0000 4.89 KB Details
nfs-utils-1.1.2-r1.ebuild-heimdal.diff nfs-utils-1.1.2-r1.ebuild-heimdal.diff patch Honza Macháček 2008-05-25 05:06 0000 1.29 KB Details | Diff
heimdal-1.2.1_rc1.ebuild heimdal-1.2.1_rc1.ebuild text/plain Honza Macháček 2008-06-01 12:50 0000 3.57 KB Details
heimdal-1.2.1_rc1-gentoo-patches-0.1.tar.bz2 heimdal-1.2.1_rc1-gentoo-patches-0.1.tar.bz2 application/octet-stream Honza Macháček 2008-06-01 12:52 0000 5.09 KB Details
heimdal-1.2.1_rc1-r1.ebuild heimdal-1.2.1_rc1-r1.ebuild text/plain Honza Macháček 2008-06-03 04:38 0000 3.57 KB Details
heimdal-r23235-kb5-libwind_la.patch heimdal-r23235-kb5-libwind_la.patch patch Honza Macháček 2008-06-03 04:39 0000 328 bytes Details | Diff
heimdal-r23238-kb5_locl_h-wind_h.patch heimdal-r23238-kb5_locl_h-wind_h.patch patch Honza Macháček 2008-06-03 04:39 0000 270 bytes Details | Diff
heimdal-kdc-sans_pkinit.patch heimdal-kdc-sans_pkinit.patch patch Honza Macháček 2008-06-03 04:40 0000 500 bytes Details | Diff
kerberos-layman.xml Layman config for kerberos overlay text/plain Martin von Gagern 2008-06-03 08:14 0000 381 bytes Details
heimdal-1.2.1_rc1-r2.ebuild heimdal-1.2.1_rc1-r2.ebuild text/plain Honza Macháček 2008-06-08 16:10 0000 3.41 KB Details
heimdal-system_sqlite.patch heimdal-system_sqlite.patch patch Honza Macháček 2008-06-08 16:12 0000 1.75 KB Details | Diff
librpcsecgss-0.18-heimdal.patch new version for patch librpcsecgss-0.18-config_in.patch patch mastamind@users.sourceforge.net 2008-06-12 21:17 0000 1.39 KB Details | Diff
nfs-utils-1.1.2-kerberos-ac.patch patch for nfs-utils's way to detect the kerberos libs. patch mastamind@users.sourceforge.net 2008-06-12 21:23 0000 7.20 KB Details | Diff
fetchmail-6.3.8-heimdal-1.2-MD5_Init.patch patch for fetchmail configure.ac to remove the check for MD5_Init. patch mastamind@users.sourceforge.net 2008-07-10 16:47 0000 1.37 KB Details | Diff
fetchmail-6.3.8-r2.ebuild-heimdal-1.2.patch updated ebuild patch for fetchmail patch mastamind@users.sourceforge.net 2008-07-10 16:53 0000 1.01 KB Details | Diff
heimdal-1.2.1_rc1-autoconf-ipv6.patch disable ipv6 autodetection (proposed fix for #152) patch mastamind@users.sourceforge.net 2008-07-18 13:02 0000 805 bytes Details | Diff
heimdal-1.2.1_rc1-autoconf-ipv6.patch updated version patch mastamind@users.sourceforge.net 2008-07-18 22:27 0000 1.38 KB Details | Diff
heimdal-e2fsprogs-libs.patch Allow for e2fsprogs-libs patch Martin von Gagern 2008-08-18 08:17 0000 11.89 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 185899 depends on: 215558 231396 231400 Show dependency tree
Show dependency graph
Bug 185899 blocks: 215429
Votes: 0    Show votes for this bug    Vote for this bug

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









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


Description:   Opened: 2007-07-19 20:04 0000
Heimdal version 1.0 is out.  0.7.2 is the latest in the tree.  This update is
important because it adds support for NTLM, SPNEGO stuff, and PKINIT (great for
smartcard users).  KCM is also a nice feature.

Reproducible: Always

------- Comment #1 From Bryan Jacobs 2007-07-19 20:07:06 0000 -------
Created an attachment (id=125369) [edit]
heimdal-1.0.ebuild

Ebuild, tested on x86 - note that this DOESN'T address any of the
heimdal-prefix-changing stuff going on in other bugs.  I agree that symlinks in
/usr/include need to be altered or heimdal should be moved to a new prefix, but
this ebuild works for me (although cyrus-sasl won't build against it unless
you're clever with those symlinks - hint: try ln -s heimdal/gssapi gssapi and
ln -s gssapi/gssapi.h gssapi.h, then link the things it complains about).

------- Comment #2 From Jakub Moc 2007-07-19 20:07:29 0000 -------
*** Bug 152460 has been marked as a duplicate of this bug. ***

------- Comment #3 From Bryan Jacobs 2007-07-19 20:08:53 0000 -------
Created an attachment (id=125370) [edit]
heimdal-1.0-gentoo-patches-0.1.tar.bz2

Some patches were included/fixed upstream, and this adds a heimdal-kcm init
script.  By the way, the ebuild gets rid of the sample password checker as it's
broken.

------- Comment #4 From Per Wigren 2007-07-21 01:07:59 0000 -------
Thanks!

I had some trouble switching from mit-krb5 to heimdal-1.0 using this ebuild.
It seems that app-crypt/libgssapi conflict with heimdal. What I had to do was
emerge -C mit-krb5 and libgssapi, emerge heimdal, then revdep-rebuild (which
recompiled samba, openssh, gnome-vfs and other things).

please add a !app-crypt/libgssapi to the DEPEND to specify that it conflicts.

I haven't actually USED it yet :) but it compiled and seems to work except for
nfs-utils which I had to set USE=-kerberos for to make even compile... Now
that's not a big problem for me since I don't use nfs here but I guess it's a
showstopper for many..

------- Comment #5 From Bryan Jacobs 2007-07-21 01:58:17 0000 -------
(In reply to comment #4)
> Thanks!
> 
> I had some trouble switching from mit-krb5 to heimdal-1.0 using this ebuild.
> It seems that app-crypt/libgssapi conflict with heimdal. What I had to do was
> emerge -C mit-krb5 and libgssapi, emerge heimdal, then revdep-rebuild (which
> recompiled samba, openssh, gnome-vfs and other things).
> 
> please add a !app-crypt/libgssapi to the DEPEND to specify that it conflicts.
> 
> I haven't actually USED it yet :) but it compiled and seems to work except for
> nfs-utils which I had to set USE=-kerberos for to make even compile... Now
> that's not a big problem for me since I don't use nfs here but I guess it's a
> showstopper for many..
> 

On my portage tree, nfs-utils is marked as explicitly depending on mit-krb5 and
libgssapi when USE=kerberos.  So unless you explicitly edited the ebuild, you
shouldn't have been able to get a compile-time failure.

I'll take a look at compiling nfs-utils against Heimdal 1.0; I never used
kerberized NFS because I use OpenAFS instead.

Thanks for the heads-up on libgssapi conflicts - Heimdal doesn't need that
library as it has all its functionality and more integrated already (NTLM
support, etc).

------- Comment #6 From Martin von Gagern 2007-07-21 06:29:20 0000 -------
(In reply to comment #5)
> On my portage tree, nfs-utils is marked as explicitly depending on mit-krb5
> and libgssapi when USE=kerberos.  So unless you explicitly edited the ebuild,
> you shouldn't have been able to get a compile-time failure.

nfs-utils depends on mit-krb5, but libgssapi doesn't, so you can still break
your system by simply emerging libgssapi for any reason like e.g. trying to
compile nsf-utils manually, using other gssapi mechanisms, because of switched
kerberos implementation, or whatever.

> I'll take a look at compiling nfs-utils against Heimdal 1.0; I never used
> kerberized NFS because I use OpenAFS instead.

Cross reference: bug 134064 comment 15 and following

> Thanks for the heads-up on libgssapi conflicts - Heimdal doesn't need that
> library as it has all its functionality and more integrated already (NTLM
> support, etc).

The libgssapi conflict is not new, I reported bug 168509 for it. It has
implications on nss_ldap using gssapi as well, so it's not only nfs affected.

If Heimdal doesn't need this library, what does this mean for programs that
currently link against the libgssapi from heimdal? Should they link against
some other library from the heimdal installation, or should depend on and link
against the libgssapi used for nfs?

------- Comment #7 From Bryan Jacobs 2007-07-21 06:43:22 0000 -------
(In reply to comment #6)

I was wrong - nfs-utils does require libgssapi's libgssapi.so.2.  I'm pretty
sure that the functionality it uses is present in Heimdal too, but the code
isn't written to make use of it.

I've just thrown together a Heimdal 1.0 build that installs libs to
/usr/heimdal/lib and includes to /usr/heimdal/include (as well as setting
prefix to /usr so krb5-config --prefix works).  I was able to build cyrus-sasl
and openssh against the newly located Heimdal without trouble after adding
/etc/env.d/heimdal with an extra line for /etc/ld.so.conf.

It seems that nfs-utils' check for Kerberos versions is actually broken -
something's wrong with aclocal/kerberos5.m4 which I couldn't figure out.  But
I've got a patch that hacks around it.  But that doesn't solve the problem of
needing to use /usr/lib/libgssapi.so.2 for nfs-utils and
/usr/heimdal/lib/libgssapi.so.2 for everything else, while still letting
nfs-utils make use of Heimdal's other libraries.

Maybe we should compile nfs statically?  Is that too extreme?

------- Comment #8 From Martin von Gagern 2007-07-21 10:02:49 0000 -------
(In reply to comment #7)

Oh, so the heimdal libgssapi.so changed version number from 4 to 2. That's even
worse than before, where a simple change of a symlink was enough to fix many
issues.

http://www.mail-archive.com/heimdal-discuss@sics.se/msg00392.html seems
important. It states that
1. libgssapi.so should support multiple GSSAPI mechanisms, not only Kerberos
2. app-crypt/libgssapi does so, and can link against libgssapi.so from heimdal

If the libgssapi.so from heimdal-1.0 supports other methods as well, it should
be possible to use that as a replacement for app-crypt/libgssapi and also link
nfs-utils against it. As you say this was not possible, I assume the heimdal
libgssapi.so does not provide support for other mechanisms.

I would assume the best solution should be to have all applications linked
against app-crypt/libgssapi and to have that use the heimdal implementation if
the kerberos method of gssapi is requested.

I guess in that case we'd have to make the new heimdal ebuild depend on
app-crypt/libgssapi in some way, probably PDEPEND. That way there will always
be a libgssapi.so available for other programs to link against. Or we could add
that dependency to all ebuilds currently depending on heimdal. Of course some
checks would be needed to find out whether all kerberized programs accept this
version of the library, or whether some require heimdal-specific stuff.

------- Comment #9 From Bryan Jacobs 2007-07-21 17:57:38 0000 -------
(In reply to comment #8)
> (In reply to comment #7)
> 
> Oh, so the heimdal libgssapi.so changed version number from 4 to 2. That's even
> worse than before, where a simple change of a symlink was enough to fix many
> issues.
> 
> http://www.mail-archive.com/heimdal-discuss@sics.se/msg00392.html seems
> important. It states that
> 1. libgssapi.so should support multiple GSSAPI mechanisms, not only Kerberos
> 2. app-crypt/libgssapi does so, and can link against libgssapi.so from heimdal
> 
> If the libgssapi.so from heimdal-1.0 supports other methods as well, it should
> be possible to use that as a replacement for app-crypt/libgssapi and also link
> nfs-utils against it. As you say this was not possible, I assume the heimdal
> libgssapi.so does not provide support for other mechanisms.
> 
> I would assume the best solution should be to have all applications linked
> against app-crypt/libgssapi and to have that use the heimdal implementation if
> the kerberos method of gssapi is requested.
> 
> I guess in that case we'd have to make the new heimdal ebuild depend on
> app-crypt/libgssapi in some way, probably PDEPEND. That way there will always
> be a libgssapi.so available for other programs to link against. Or we could add
> that dependency to all ebuilds currently depending on heimdal. Of course some
> checks would be needed to find out whether all kerberized programs accept this
> version of the library, or whether some require heimdal-specific stuff.
> 

No, Heimdal DOES implement three mechanisms: spnego, krb5, and ntlm.

libgssapi itself does nothing except call the appropriate sub-library.  But
nfs-utils uses symbols which are present in libgssapi and not in heimdal,
precluding linking it directly against heimdal.

The issue is that, having two libgssapi.so.2 libraries installer, I don't know
a way to have programs linked against libssapi in /usr/lib and the rest of
heimdal in /usr/heimdal/lib.  /usr/lib is one of the "trusted" directories in
LDPATH and so always comes after the things in ld.so.conf.  Also, I'm not sure
apps currently linked against Heimdal will work if libgssapi comes first in
their library search path.

I think the solution may be to pull libgssapi into the nfs-utils ebuild and
statically link the one NFS binary that depends on it.  That was nfs-utils can
contain its custom gssapi stuff and there will be only one libgssapi.so.2.

------- Comment #10 From Bryan Jacobs 2007-07-23 22:34:05 0000 -------
Created an attachment (id=125797) [edit]
heimdal-1.0.ebuild

New Heimdal ebuild - harder better faster stronger.

------- Comment #11 From Bryan Jacobs 2007-07-23 22:35:31 0000 -------
Created an attachment (id=125799) [edit]
force_inclusion_by_path.patch

Makes a minor change to gssapi.h to prevent weirdness when building nfs-utils
against CITI libgssapi and heimdal.

------- Comment #12 From Honza Macháček 2007-07-24 11:24:20 0000 -------
Created an attachment (id=125865) [edit]
Alternative heimdal-1.0.ebuild

Before finding this bug, I've successfully installed heimdal-1.0.ebuild adapted
from those of Harald Barth
http://www.pdc.kth.se/~haba/gentoo-stuff/portage/app-crypt/heimdal/ (see Bug
#134064). It does not require so many patches -- any suggestion of tests to
check my installation if it actually works?

------- Comment #13 From Honza Macháček 2007-07-24 15:17:20 0000 -------
(In reply to comment #12)
Harald Barth's practice is to install heimdal into a directory separate from
the main system tree. Information needed to compile all the dependend packages
is provided by krb5-config script, a standard part of the heimdal distribution.
If packages using kerberos do not use that script in their configure scripts,
their ebuilds have to be adapted to use it.

I've added the patch for the net-mail/fetchmail-6.3.8 ebuild to Bug #185652

------- Comment #14 From Honza Macháček 2007-07-24 19:45:06 0000 -------
(In reply to comment #12)
Patch for gnome-extra/evolution-data-server-1.10.2 ebuild filed as Bug #186509

------- Comment #15 From Martin von Gagern 2007-07-26 00:13:45 0000 -------
(In reply to comment #10)
I've noticed two issues for this build, because ebuilds don't use krb5-config
and thus don't find the needed kerberos headers.

dev-db/postgresql-8.2.4-r1:
configure: error: header file <krb5.h> is required for Kerberos 5

sys-auth/nss_ldap-254: (looks like bug 165638 but it is a different cause here)
ldap-nss.c:1891: error: ‘GSS_S_COMPLETE’ undeclared (first use in this
function)

There are probably more ebuilds. Is there some systematic check going on or
planned, or should I continue to report issues as I experience them?

------- Comment #16 From Bryan Jacobs 2007-07-26 03:16:01 0000 -------
(In reply to comment #15)
> (In reply to comment #10)
> I've noticed two issues for this build, because ebuilds don't use krb5-config
> and thus don't find the needed kerberos headers.
> 
> dev-db/postgresql-8.2.4-r1:
> configure: error: header file <krb5.h> is required for Kerberos 5
> 
> sys-auth/nss_ldap-254: (looks like bug 165638 but it is a different cause here)
> ldap-nss.c:1891: error: ‘GSS_S_COMPLETE’ undeclared (first use in this
> function)
> 
> There are probably more ebuilds. Is there some systematic check going on or
> planned, or should I continue to report issues as I experience them?
> 

vapier feels strongly that pkg-config is superior to krb5-config (and I agree
with him).  Heimdal is moving to pkg-config.

I fixed nss_ldap on my end by adding --with-gssapi-dir=foo.

------- Comment #17 From Honza Macháček 2007-07-26 08:34:07 0000 -------
Created an attachment (id=126059) [edit]
heimdal-1.0-1.0.1_rc1.ebuild.diff

Basically the heimdal-1.0.ebuild by Bryan Jacobs (needs renaming the tar.bz2
patchset from 1.0 version to 1.0.1_rc1).

Several commented out lines removed. Hacky simlinks for SASL checks commented
out in favor of changing of problematic ebuilds to use krb5-config. Install
dirs manipulated to avoid, hopefully, clashes with other packages like
app-crypt/libgssapi (in case having the GSSAPI wrapper library around proves to
be useful).

Creation of .pc files for pkg-config attempted, but all the packages using
hardcoded kerberos path will have to be modified anyway.

------- Comment #18 From Honza Macháček 2007-07-26 08:45:37 0000 -------
(In reply to comment #16)

I've started modifying all the ebuilds I install to use krb5-config and
reporting appropriate bugs for such changes. Of course it's far from a
systematic check of the whole portage tree. I just try installing what I want,
and if it fails complaining about some kerberos header or library not found, I
try to introduce krb5-config into its configuration.

At the Bug #185509 I've been scolded heavily for using krb5-config, which is
inferior to pkg-config. That's why I've tried to modify the heimdal ebuild to
create .pc files for pkg-config; but now I'm not sure not only of their
correctness, but even less of the proper way to introduce pkg-config usage into
the dependent ebuilds.

------- Comment #19 From Honza Macháček 2007-07-26 08:47:37 0000 -------
(In reply to comment #18)
> At the Bug #185509 

Not Bug #185509, but Bug #186509 -- excuse, please, my typo.

------- Comment #20 From Honza Macháček 2007-07-27 09:02:15 0000 -------
Created an attachment (id=126114) [edit]
heimdal-1.0-0.8.1-r1.ebuild.diff

Bryan Jacobs' 1.0 ebuild changed to install into /usr/heimdal. bin and sbin
directories contents symlinked into the system /usr/bin and /usr/sbin; name
changes (telnet->ktelnet etc.) done only to the symlinks (in case some package
looks for the binaries inside the heimdal subtree under the original names).
Creation of .pc files for pkg-config attempted.

The patchset slightly modified for 0.8.1: 010_all_heimdal-system-libss.patch
adapted to the elder lib/sl/Makefile.am and inside 012_all_heimdal-berkdb.patch
changed the location of ndbm_wrap.c to the elder path lib/otp/ndbm_wrap.c.
Otherwise the ebuild applies to newer heimdal versions as well; release
candidates require

 HOMEPAGE="http://www.pdc.kth.se/heimdal/"
-SRC_URI="ftp://ftp.pdc.kth.se/pub/heimdal/src/${P/_rc/rc}.tar.gz
+SRC_URI="ftp://ftp.pdc.kth.se/pub/heimdal/src/snapshots/${P/_rc/rc}.tar.gz
     http://dev.gentoo.org/~seemant/distfiles/${PATCH_P}.tar.bz2

The _rc to rc change in the release version is an artefact I've been too lazy
to edit out.

From 0.9 series of release candidates, Bryan Jacobs' patchset seems to be
applicable without modification.

With 0.8.1 release in a separate installation directory I have easily installed
app-crypt/libgssapi, net-libs/librpcsecgss and net-fs/nfs-utils, having just
changed the net-fs/nfs-utils dependency from app-crypt/mit-krb5 to
virtual/krb5. With newer versions of heimdal I've run into problems installing
net-fs/nfs-utils. For now I've tried several heimdal versions and found one
that works with nfs-utils without further work. As soon as I feel like playing
with that again I'm going to submit a detailed report of my compilation
problems as well as anything I eventually find; since the nfs-utils developers
seem to support heimdal, chances are that my problems either are results of my
wrong setup or will go off in the next nfs-utils version.

------- Comment #21 From Honza Macháček 2007-07-27 09:03:42 0000 -------
Created an attachment (id=126115) [edit]
heimdal-0.8.1-gentoo-patches-0.1.tar.bz2

------- Comment #22 From Bryan Jacobs 2007-07-27 11:40:48 0000 -------
(In reply to comment #20)
> 
> With 0.8.1 release in a separate installation directory I have easily installed
> app-crypt/libgssapi, net-libs/librpcsecgss and net-fs/nfs-utils, having just
> changed the net-fs/nfs-utils dependency from app-crypt/mit-krb5 to
> virtual/krb5. With newer versions of heimdal I've run into problems installing
> net-fs/nfs-utils. For now I've tried several heimdal versions and found one
> that works with nfs-utils without further work. As soon as I feel like playing
> with that again I'm going to submit a detailed report of my compilation
> problems as well as anything I eventually find; since the nfs-utils developers
> seem to support heimdal, chances are that my problems either are results of my
> wrong setup or will go off in the next nfs-utils version.
> 

Even if you manage to compile nfs-utils with Heimdal 1.0 installed, you will
not be able to run rpc.gssd nor rpc.svcgssd.

libgssapi and Heimdal 1.0 by default install "libgssapi.so.2".  You must change
the library version of one or the other in order for the dynamic linker to
function properly with both in the LDPATH (as they both must be for nfs-utils).

------- Comment #23 From Honza Macháček 2007-07-27 21:48:21 0000 -------
(In reply to comment #22)
> Even if you manage to compile nfs-utils with Heimdal 1.0 installed, you will
> not be able to run rpc.gssd nor rpc.svcgssd.

Verified :-(

Switched to the newest Heimdal (1.0.1_rc1) again, removed app-crypt/libgssapi.

Instead of modifying net-libs/librpcsecgss acording to Bug #186392 libgssapi.pc
created by heimdal ebuild: changing the dependencies of librpcsecgss ebuild was
enough then.

net-fs/nfs-utils ebuild modified to use your patch from the Bug #134064 (more
discussion there). Everything compiled well, but rpc.svcgssd still does not
start (and does not say why). May be I would need some specific kernel
configuration, or even kernel patch? (Not that I actually need kerberised NFS
running.)

------- Comment #24 From Honza Macháček 2007-07-27 21:56:00 0000 -------
Created an attachment (id=126185) [edit]
heimdal-1.0-1.0.1_rc1.ebuild.diff

Patch to Bryan Jacobs' 1.0 ebuild to install the current release candidate, use
a separate installation directory and create .pc files for pkg-config (mainly
libgssapi.pc used by net-libs/librpcsecgss). Uses Bryan Jacobs' patchset, just
renamed to reflect the version.

------- Comment #25 From Bryan Jacobs 2007-07-27 22:05:48 0000 -------
(In reply to comment #23)
> net-fs/nfs-utils ebuild modified to use your patch from the Bug #134064 (more
> discussion there). Everything compiled well, but rpc.svcgssd still does not
> start (and does not say why). May be I would need some specific kernel
> configuration, or even kernel patch? (Not that I actually need kerberised NFS
> running.)
> 
In order to use Kerberized NFS, you must have rpcsec_gss support in the kernel
(modprobe appropriate stuff if necessary).  This means you need to enable NFSv4
server support and the krb5 mechanism in your kernel config.

Try to run rpc.gssd or rpc.svcgssd with the -f -vvv options.  Check syslogs
too.  They'll complain about missing stuff in /proc or /var if you don't have
appropriate modules loaded or the nfs filesystem mounted.

------- Comment #26 From Dmitry S. Kulyabov 2007-08-19 07:29:31 0000 -------
Created an attachment (id=128519) [edit]
app-crypt/heimdal/heimdal-1.0.1.ebuild

Symlinks fixup.

------- Comment #27 From Dmitry S. Kulyabov 2007-08-19 07:31:04 0000 -------
Created an attachment (id=128521) [edit]
app-crypt/heimdal/files/1.0.1/001_all_heimdal-no_libedit.patch

------- Comment #28 From Dmitry S. Kulyabov 2007-08-19 07:31:23 0000 -------
Created an attachment (id=128523) [edit]
app-crypt/heimdal/files/1.0.1/002_all_heimal-fPIC.patch

------- Comment #29 From Dmitry S. Kulyabov 2007-08-19 07:31:40 0000 -------
Created an attachment (id=128524) [edit]
app-crypt/heimdal/files/1.0.1/003_all_heimdal-rxapps.patch

------- Comment #30 From Dmitry S. Kulyabov 2007-08-19 07:32:09 0000 -------
Created an attachment (id=128526) [edit]
app-crypt/heimdal/files/1.0.1/005_all_heimdal-suid_fix.patch

------- Comment #31 From Dmitry S. Kulyabov 2007-08-19 07:33:03 0000 -------
Created an attachment (id=128528) [edit]
app-crypt/heimdal/files/1.0.1/010_all_heimdal-system-libss.patch

------- Comment #32 From Dmitry S. Kulyabov 2007-08-19 07:33:24 0000 -------
Created an attachment (id=128529) [edit]
app-crypt/heimdal/files/1.0.1/012_all_heimdal-berkdb.patch

------- Comment #33 From Dmitry S. Kulyabov 2007-08-19 07:33:45 0000 -------
Created an attachment (id=128531) [edit]
app-crypt/heimdal/files/1.0.1/013_all_heimdal-pthread-lib.patch

------- Comment #34 From Dmitry S. Kulyabov 2007-08-19 07:34:11 0000 -------
Created an attachment (id=128533) [edit]
app-crypt/heimdal/files/1.0.1/014_all_heimdal-path.patch

------- Comment #35 From Dmitry S. Kulyabov 2007-08-19 07:34:37 0000 -------
Created an attachment (id=128534) [edit]
app-crypt/heimdal/files/1.0.1/015_all_heimdal-fixit.patch

------- Comment #36 From Dmitry S. Kulyabov 2007-08-19 07:34:59 0000 -------
Created an attachment (id=128536) [edit]
app-crypt/heimdal/files/1.0.1/100_all_force_inclusion_by_path.patch

------- Comment #37 From Dmitry S. Kulyabov 2007-08-19 07:35:25 0000 -------
Created an attachment (id=128537) [edit]
app-crypt/heimdal/files/configs/heimdal-kadmind

------- Comment #38 From Dmitry S. Kulyabov 2007-08-19 07:35:44 0000 -------
Created an attachment (id=128539) [edit]
app-crypt/heimdal/files/configs/heimdal-kcm

------- Comment #39 From Dmitry S. Kulyabov 2007-08-19 07:36:00 0000 -------
Created an attachment (id=128540) [edit]
app-crypt/heimdal/files/configs/heimdal-kdc

------- Comment #40 From Dmitry S. Kulyabov 2007-08-19 07:36:18 0000 -------
Created an attachment (id=128541) [edit]
app-crypt/heimdal/files/configs/heimdal-kpasswdd

------- Comment #41 From Dmitry S. Kulyabov 2007-08-19 07:36:37 0000 -------
Created an attachment (id=128543) [edit]
app-crypt/heimdal/files/configs/krb5.conf

------- Comment #42 From Dmitry S. Kulyabov 2007-08-19 07:36:54 0000 -------
Created an attachment (id=128544) [edit]
app-crypt/heimdal/files/configs/krb5-kdc.schema

------- Comment #43 From Daniel Klaffenbach 2007-09-19 20:29:11 0000 -------
Thanks a lot, your ebuild worked for me. Where did the heimdal maintainer go?
The last ebuild in the tree is extremely old...

------- Comment #44 From Honza Macháček 2007-09-19 22:13:46 0000 -------
Created an attachment (id=131346) [edit]
heimdal-1.0.1-r1.ebuild

Dmitry S. Kulyabov's 1.0.1 ebuild had built well for me, but then I ran into
problems with dependent packages.

Unfortunately I didn't report the problem immediately neither made notes, and
by now I've forgotten which ebuild crashed then during compilation and what was
the error report. In case nobody else obtains such information I'll have to
find time for further experiments and reproduce the error once again.

For now, I use this ebuild, heavily based on Bryan Jacobs's work (my few
additions, derived mostly from Harald Barth's work, actually converging further
to Bryan Jacobs's 1.0 ebuild). It uses Bryan Jacobs's 1.0 patchset, just
renamed to heimdal-1.0.1-gentoo-patches-0.1.tar.bz2 Until now it seems to work
for me -- that is everything I've tried to upgrade or recompile has built well.
(I guess that unmodified Bryan Jacobs's 1.0 ebuild, just renamed to 1.0.1,
would work as well.)

Unfortunately I don't understand programming much and kerberos at all, so I'm
unable to actually compare Bryan Jacobs's and Dmitry S. Kulyabov's works, not
to speak of combining the best of both worlds into something ready to push into
the portage tree (which needs upgrade desperately).

------- Comment #45 From Seemant Kulleen (RETIRED) 2007-09-19 22:21:33 0000 -------
Yeah look, we need heimdal maintainers.  There are none.  I used to maintain
this, but I have no boxes with it on anymore, nor do I have the knowledge. 
And, I'm retiring soon, anyway.  So, if someone would like to step up, I'll
happily mentor that person before my depar