Date: Sun, 28 Nov 2004 07:27:06 +0900 (JST) From: NIIMI Satoshi <sa2c@sa2c.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ume@FreeBSD.org Subject: ports/74463: security/cyrus-sasl2-saslauthd cannot be built with system OpenSSL and BDB42 on some configurations Message-ID: <20041127222706.ED46C5C29@berkeley.l.sa2c.net> Resent-Message-ID: <200411272230.iARMUPHk060490@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 74463 >Category: ports >Synopsis: security/cyrus-sasl2-saslauthd cannot be built with system OpenSSL and BDB42 on some configurations >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: Sat Nov 27 22:30:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: NIIMI Satoshi >Release: FreeBSD 5.3-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD berkeley.l.sa2c.net 5.3-RELEASE-p1 FreeBSD 5.3-RELEASE-p1 #0: Thu Nov 18 23:47:29 JST 2004 root@berkeley.l.sa2c.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: saslauthd/configure sets CPPFLAGS as "-I{with_openssl}/include -I${with_bdb_incdir}" when --with-openssl=DIR are passed. With system OpenSSL and BDB42, CPPFLAGS is "-I/usr/include -I/usr/local/include/db42", and the line #include <db.h> includes system db.h instead of BDB4.2's one. This causes some nasty problems. >How-To-Repeat: on FreeBSD 4.10-RELEASE: cd /usr/ports/security/cyrus-sasl2-saslauthd; make WITH_BDB_VER=42 >Fix: use --with-openssl=yes instead of --with-openssl=/usr for system OpenSSL. --- patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/security/cyrus-sasl2-saslauthd/Makefile,v retrieving revision 1.32 diff -u -d -r1.32 Makefile --- Makefile 24 Nov 2004 16:35:34 -0000 1.32 +++ Makefile 27 Nov 2004 22:00:21 -0000 @@ -40,7 +40,6 @@ --enable-static \ --enable-login \ --enable-auth-sasldb \ - --with-openssl=${OPENSSLBASE} \ --with-rc4=openssl \ --with-saslauthd=${SASLAUTHD_RUNPATH} @@ -111,6 +110,12 @@ OPENSSLLIB=${OPENSSLLIB} \ LDFLAGS=${LDFLAGS} +.if ${OPENSSLBASE} == /usr +CONFIGURE_ARGS+=--with-openssl=yes +.else +CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} +.endif + SASLAUTHD_RUNPATH?= /var/state/saslauthd .if ${SASLAUTHD_RUNPATH} != /var/state/saslauthd RUNPATH= "@comment " --- patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041127222706.ED46C5C29>