Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473458 - sys-freebsd/freebsd-lib-9.1-r3: conflicts with app-crypt/heimdal-1.5.3
Summary: sys-freebsd/freebsd-lib-9.1-r3: conflicts with app-crypt/heimdal-1.5.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: AMD64 FreeBSD
: Normal major
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-16 06:54 UTC by henning.f
Modified: 2013-06-27 20:44 UTC (History)
0 users

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


Attachments
heimdal build log (heimdal-build.log.xz,46.49 KB, application/octet-stream)
2013-06-16 06:57 UTC, henning.f
Details
patch for removing gssapi from freebsd-lib (freebsd-lib-9.1-r3.ebuild.patch,1.81 KB, patch)
2013-06-16 09:29 UTC, henning.f
Details | Diff
patch for freebsd-usbin (freebsd-usbin-9.1.ebuild.patch,1.09 KB, patch)
2013-06-16 09:40 UTC, henning.f
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description henning.f 2013-06-16 06:54:43 UTC
Currently freebsd-lib installs gssapi headers and libraries. This creates file conflicts with heimdal and mit-krb5. 

Reproducible: Always

Steps to Reproduce:
emerge heimdal
Actual Results:  
Install fails due to file collisions

Expected Results:  
Heimdal is installed

emerge seems to prefer mit-krb5 over heimdal. While it is possible to use mit-krb5 for other applications. It is currently not compatible with the kgssapi in the freebsd kernel, thus not allowing you to use nfs with kerberos authentication for example. There are at least 2 issues with using mit-krb5:

1. xdr_gss_OID_desc in kgssapi/gssd_prot.c writes to the OID. mit-krb5 seem to allocate this value in read only memory (lib/gssapi/krb5/gssapi_krb5.c krb5_gss_oid_array). This can however be solved by reallocating the object in the gssd.

2.  krb5_import in kgssapi/krb5/krb5_mech.c only support importing heimdal security tokens.

The makefiles in freebsd also need to be changed to link against libgssapi_krb5 instead of libgssapi.
Comment 1 henning.f 2013-06-16 06:57:43 UTC
Created attachment 351080 [details]
heimdal build log
Comment 2 henning.f 2013-06-16 09:29:54 UTC
Created attachment 351092 [details, diff]
patch for removing gssapi from freebsd-lib
Comment 3 henning.f 2013-06-16 09:40:10 UTC
Created attachment 351094 [details, diff]
patch for freebsd-usbin

With this patch gssd will only be built when the kerberos use-flag is specified. Another option for this would have been gssapi, other ebuilds seem to use this and it would fit better with the freebsd naming convension.

I also picked to depend directly on app-crypt/heimdal. It would have been better to depend on virtual/krb5. But it doesn't feel right since it currently only works with hemidal.
Comment 4 Alexis Ballier gentoo-dev 2013-06-18 20:09:50 UTC
(In reply to henning.f from comment #2)
> Created attachment 351092 [details, diff] [details, diff]
> patch for removing gssapi from freebsd-lib

thanks for all the patches.

one question though: why do you remove librpcsec_gss ? it is currently controled by the kerberos useflag in freebsd-lib, but it seems that this is not part of heimdal and that it could just simply be built on top of it
Comment 5 henning.f 2013-06-19 08:36:17 UTC
(In reply to Alexis Ballier from comment #4)
> (In reply to henning.f from comment #2)
> > Created attachment 351092 [details, diff] [details, diff] [details, diff]
> > patch for removing gssapi from freebsd-lib
> 
> thanks for all the patches.
> 
> one question though: why do you remove librpcsec_gss ? it is currently
> controled by the kerberos useflag in freebsd-lib, but it seems that this is
> not part of heimdal and that it could just simply be built on top of it

Once upon a time I thought it was related to the librpcgss when I was trying to get mit-krb5 working. When I look at it now it seems to be similar but unrelated.

The only reason that it is still removed is probably because it built fine without it. I think the best thing would be to keep it though.
Comment 6 Alexis Ballier gentoo-dev 2013-06-27 20:44:09 UTC
applied your patches (keeping  librpcsec_gss in -lib), thanks a lot! if you have more changes you want merged to improve kerberos, feel free! it seems nobody is taking care of it :/