Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 491846

Summary: net-libs/c-client-2007f - add app-crypt/heimdal support
Product: Gentoo Linux Reporter: Mario Fetka (geos_one) <mario.fetka>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein, mario.fetka, net-mail+disabled
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://git.disconnected-by-peer.at/dbp/linamh/tree/net-libs/c-client
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: c-client-2007e-heimdal.patch

Description Mario Fetka (geos_one) 2013-11-21 08:57:55 UTC
c-client specially force the mit-krb5 but it also works with heimdal by applying a patch

at the lin k above you will see the neede changes

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-21 16:56:01 UTC
--- c-client-2007f-r4.ebuild    2013-01-02 12:00:22.451747673 +0100
+++ -   2013-11-21 17:55:40.737346497 +0100
@@ -23,7 +23,7 @@
 
 RDEPEND="ssl? ( dev-libs/openssl )
        !net-mail/uw-imap
-       kerberos? ( app-crypt/mit-krb5 )"
+       kerberos? ( virtual/krb5 )"
 DEPEND="${RDEPEND}
        kernel_linux? ( pam? ( >=sys-libs/pam-0.72 ) )"
 
@@ -59,6 +59,11 @@
        # This was previously conditional, but is more widely useful.
        epatch "${FILESDIR}"/${PN}-2006k_GENTOO_amd64-so-fix.patch
 
+       # heimdal
+       if has_version app-crypt/heimdal ; then
+               epatch "${FILESDIR}"/${PN}-2007e-heimdal.patch
+       fi
+
        # Remove the pesky checks about SSL stuff
        sed -e '/read.*exit/d' -i Makefile || die
 
@@ -85,9 +90,14 @@
        elif use kernel_FreeBSD ; then
                target=bsf passwdtype=pam
        fi
-       use kerberos \
-               && mymake="EXTRAAUTHENTICATORS=gss" \
-               && EXTRALIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \
+       if use kerberos ; then
+               mymake="EXTRAAUTHENTICATORS=gss"
+               if has_version app-crypt/heimdal ; then
+                       EXTRALIBS="-lgssapi -lkrb5 -lhcrypto -lcom_err"
+               else
+                       EXTRALIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
+               fi
+       fi
        # no parallel builds supported!
        emake -j1 SSLTYPE=${ssltype} $target \
                PASSWDTYPE=${passwdtype} ${ipver} ${mymake} \
Comment 2 Mario Fetka (geos_one) 2013-11-21 17:43:05 UTC
Created attachment 363738 [details, diff]
c-client-2007e-heimdal.patch

and the patch
Comment 3 Jonas Stein gentoo-dev 2020-04-26 14:22:49 UTC
Hi Jeroen,
the package has no maintainer. Simply apply your patch.