ports/51090: Cyrus-sasl can not be built with openssl from ports
Oleg Sharoiko
os at rsu.ru
Thu Apr 17 11:30:17 UTC 2003
>Number: 51090
>Category: ports
>Synopsis: Cyrus-sasl can not be built with openssl from ports
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 17 04:30:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Oleg Sharoiko
>Release: FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD brain.cc.rsu.ru 4.7-STABLE FreeBSD 4.7-STABLE #1: Mon Mar 17 16:02:48 MSK 2003 os at brain.cc.rsu.ru:/usr/src/sys/compile/brain.k7.RELENG_4.2002-11-06 i386
>Description:
Two bugs found:
1. USE_OPENSSL (from bsd.port.mk) does not allow to build
with openssl from ports. It always tries to build against
openssl from base system and complains when system was built
without openssl, although openssl is installed from ports
2. cyrus-sasl 2.1.13 incorrectly handles openssl location when
building saslauthd. It can not use openssl in /usr/local
>How-To-Repeat:
>Fix:
The following patch will solve both of the problems.
1. It switches from USE_OPENSSL to security/openssl/bsd.openssl.mk
for purposes of openssl identification
2. It passes paths to include and lib files of openssl as
CPPFLAGS and LDFLAGS
--- Makefile 15 Apr 2003 17:03:27 -0000 1.68
+++ Makefile 17 Apr 2003 11:27:01 -0000
@@ -17,7 +17,6 @@
COMMENT= RFC 2222 SASL (Simple Authentication and Security Layer)
USE_SUBMAKE= yes
-USE_OPENSSL= yes
INSTALLS_SHLIB= yes
@@ -97,7 +96,8 @@
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \
OPENSSLINC=${OPENSSLINC} \
OPENSSLLIB=${OPENSSLLIB} \
- LDFLAGS=${LDFLAGS}
+ LDFLAGS="${LDFLAGS}" \
+ CPPFLAGS="${CPPFLAGS}"
CYRUS_USER?= cyrus
CYRUS_GROUP?= cyrus
@@ -193,4 +193,14 @@
post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/security/openssl/bsd.openssl.mk"
+#
+# Workaround the bug in cyrus-sasl (saslauthd) configure not being able to find
+# openssl from ports
+#
+.if !defined(WITH_OPENSSL_BASE)
+LDFLAGS+= -L${OPENSSLLIB}
+CPPFLAGS+= -I${OPENSSLINC}
+.endif
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list