From owner-freebsd-ports Wed Jun 19 14:10:16 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8C14837B407 for ; Wed, 19 Jun 2002 14:10:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5JLA3v01856; Wed, 19 Jun 2002 14:10:03 -0700 (PDT) (envelope-from gnats) Date: Wed, 19 Jun 2002 14:10:03 -0700 (PDT) Message-Id: <200206192110.g5JLA3v01856@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Scot.W.Hetzel@wbiW009.westbend.net Subject: Re: ports/38973: Error code 1 building cyrus-sasl-1.5.27_3 Reply-To: Scot.W.Hetzel@wbiW009.westbend.net Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/38973; it has been noted by GNATS. From: Scot.W.Hetzel@wbiW009.westbend.net To: freebsd-gnats-submit@FreeBSD.org, clabadie@cexpert.com Cc: Subject: Re: ports/38973: Error code 1 building cyrus-sasl-1.5.27_3 Date: Wed, 19 Jun 2002 16:03:24 -0500 (CDT) The problem is that an OpenLDAP v2 function & variable are not defined when building with OpenLDAP v1. The attached patch fixes this problem. I have also removed the adding of the 'daemon' user to the 'cyrus' group, as I have no ideal as to why this user was needed. I suspect it was needed in the past for either the sendmail/postfix mailers when using the older cyrus-imapd ports (<1.6). Changed Files: pkg-install New Files: files/patch-lib::checkpw.c Scot W. Hetzel Cyrus-SASL Maintainer Index: pkg-install =================================================================== RCS file: /home/ncvs/ports/security/cyrus-sasl/pkg-install,v retrieving revision 1.8 diff -u -r1.8 pkg-install --- pkg-install 24 May 2002 02:01:13 -0000 1.8 +++ pkg-install 19 Jun 2002 20:48:03 -0000 @@ -67,9 +67,12 @@ fi echo "*** Updated user \`${USER}'." fi - if ! ${PW} group mod ${USER} -m daemon; then - echo "*** can't add user \`${USER}' to group \`${GROUP}'" - fi +# Don't know why we need the daemon user in the cyrus group +# hopefully this doesn't affect anyone. It's a leftover from +# the pre-SASL cyrus-imapd server. +# if ! ${PW} group mod ${GROUP} -m daemon; then +# echo "*** can't add user \`daemon' to group \`${GROUP}'" +# fi } create_sasldb() { Index: files/patch-lib::checkpw.c =================================================================== RCS file: files/patch-lib::checkpw.c diff -N files/patch-lib::checkpw.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-lib::checkpw.c 17 Jun 2002 23:32:24 -0000 @@ -0,0 +1,17 @@ +--- lib/checkpw.c.orig Mon Jun 17 18:28:29 2002 ++++ lib/checkpw.c Mon Jun 17 18:31:44 2002 +@@ -1667,12 +1667,14 @@ + return SASL_FAIL; + } + /* setting dereferensing aliases mode */ ++#ifdef LDAP_OPT_DEREF + if (ldap_set_option(ld, LDAP_OPT_DEREF, (void *) &ldap_deref) != LDAP_OPT_SUCCESS) { + if (reply) { + *reply = "cannot set deref options"; + } + return SASL_FAIL; + } ++#endif + /* set ssl mode if needed */ + #ifdef LDAP_OPT_X_TLS + if ( ldap_ssl_flag ) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message