ports/187721: mail/dovecot2 fix to use security/heimdal port
Dewayne
dewayne at heuristicsystems.com.au
Wed Mar 19 06:30:00 UTC 2014
>Number: 187721
>Category: ports
>Synopsis: mail/dovecot2 fix to use security/heimdal port
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 19 06:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Dewayne
>Release: FreeBSD 9.2S (rev 262851)
>Organization:
>Environment:
FreeBSD b1.hs 9.2-STABLE FreeBSD 9.2-STABLE #0: Fri Mar 7 05:40:14 EST 2014 root@:/usr/obj/usr/src/sys/hqdev-amd64-padlock-smp-vga i386
>Description:
Building dovecot2 on FreeBSD 9.2 using security/heimdal port results in configure returning
/usr/bin/ld: cannot find -lgssapi_krb5
which is correct, because libgssapi_krb5 isn't built by the security/heimdal port.
The security/heimdal port builds libgssapi to contain the calls that lower versions of heimdal use in libgssapi_krb5.
>How-To-Repeat:
rm /usr/lib/libgssap*
# In my case I don't build these, via src.conf WITHOUT_KERBEROS
cd /usr/ports/security/heimdal && make install package
cd /usr/ports/mail/dovecot2 && make install package
>Fix:
.if defined(HEIMDAL_HOME)
BUILD_DEPENDS+= ${HEIMDAL_HOME}/lib/libgssapi.so:${PORTSDIR}/security/heimdal
RUN_DEPENDS+= ${HEIMDAL_HOME}/lib/libgssapi.so:${PORTSDIR}/security/heimdal
.else
LDFLAGS+= -lgssapi_krb5
.endif
or for a minimal solution
.if !defined(HEIMDAL_HOME)
LDFLAGS+= -lgssapi_krb5
.endif
It is common practice to use HEIMDAL_HOME as both the trigger for recognition of use of the security/heimdal port as well as the location of the libs and headers.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list