From chris@aims.com.au  Tue Jan 14 02:17:35 2003
Return-Path: <chris@aims.com.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F321537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Jan 2003 02:17:34 -0800 (PST)
Received: from postoffice.aims.com.au (eth0.lnk.aims.com.au [203.31.73.253])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4C23A43F18
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Jan 2003 02:17:33 -0800 (PST)
	(envelope-from chris@aims.com.au)
Received: from ait0fd01.aims.private (ait0fd01.aims.private [192.168.10.254])
	by postoffice.aims.com.au  with ESMTP id h0EAHRiY026032
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Jan 2003 21:17:27 +1100 (EST)
	(envelope-from chris@aims.com.au)
Received: from ait0fd01.aims.private (localhost [127.0.0.1])
	by ait0fd01.aims.private (8.12.6/8.12.6) with ESMTP id h0EAHRU9005345
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Jan 2003 21:17:27 +1100 (EST)
	(envelope-from chris@aims.com.au)
Received: (from chris@localhost)
	by ait0fd01.aims.private (8.12.6/8.12.6/Submit) id h0EAHQDQ005344;
	Tue, 14 Jan 2003 21:17:26 +1100 (EST)
Message-Id: <200301141017.h0EAHQDQ005344@ait0fd01.aims.private>
Date: Tue, 14 Jan 2003 21:17:26 +1100 (EST)
From: Chris Knight <chris@aims.com.au>
Reply-To: Chris Knight <chris@aims.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [BENTO FIX]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47041
>Category:       ports
>Synopsis:       [BENTO FIX]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 14 02:20:01 PST 2003
>Closed-Date:    Sat Jan 18 16:01:00 PST 2003
>Last-Modified:  Sat Jan 18 16:01:00 PST 2003
>Originator:     Chris Knight
>Release:        FreeBSD 4.7-RELEASE-p3 i386
>Organization:
AIMS Independent Computer Professionals
>Environment:
System: FreeBSD ait0fd01.aims.private 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #0: Wed Jan 8 14:54:16 EST 2003 root@ait0fd01.aims.private:/usr/src/sys/compile/THINKPAD i386

>Description:
courier's configure stage looks for c_rehash in the rootcerts subdirectory.
c_rehash is a perl script that is included in the OpenSSl distribution.
c_rehash got ripped from 5.x as part of the perl cleanup.
So, the quickest fix is to make courier depend on the OpenSSL port.
There is a better way of doing this, but in its absence is this :-)

>How-To-Repeat:
Build courier on a 5.x box without the OpenSSL port installed.

>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/courier/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	21 Aug 2002 01:53:42 -0000	1.11
+++ Makefile	14 Jan 2003 09:52:25 -0000
@@ -118,6 +118,12 @@
 .include "${.CURDIR}/Makefile.doc"
 .include "${.CURDIR}/Makefile.own"
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500042
+BUILD_DEPENDS=		${LOCALBASE}/bin/c_rehash:${PORTSDIR}/security/openssl
+.endif
+
 pre-everything::
 	@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.${PORTNAME}
 
@@ -203,4 +209,4 @@
 post-clean:
 	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:

From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To: Chris Knight <chris@aims.com.au>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/47041: [BENTO FIX]
Date: Tue, 14 Jan 2003 17:28:31 +0100

 --=.wq:9xcSLpi,b+4
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Lately Chris Knight told:
 
 > >Description:
 > courier's configure stage looks for c_rehash in the rootcerts subdirectory.
 > c_rehash is a perl script that is included in the OpenSSl distribution.
 > c_rehash got ripped from 5.x as part of the perl cleanup.
 > So, the quickest fix is to make courier depend on the OpenSSL port.
 > There is a better way of doing this, but in its absence is this :-)
 
 very bad idea. look into ${SCRIPTDIR}, there it is: c_rehash
 
 now just use that:
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/ports/mail/courier/Makefile,v
 retrieving revision 1.11
 diff -u -r1.11 Makefile
 --- Makefile	21 Aug 2002 01:53:42 -0000	1.11
 +++ Makefile	14 Jan 2003 16:18:11 -0000
 @@ -74,7 +74,8 @@
  		--with-calendardir=${CALENDIR} \
  		--with-default-maildrop=${MAILDROPDEFAULT} \
  		--enable-workarounds-for-imap-client-bugs
 -CONFIGURE_ENV=	PATH="${PATH}:${SCRIPTDIR}"
 +
 +PATH:=		${PATH}:${SCRIPTDIR}
  
  # Respect the make.conf(5) NOUUCP setting
  WITH_TRANSPORT=	local esmtp dsn
 
 
 explanation: bsd.ports.mk passes PATH anyways in CONFIGURE_ENV. passing
 it two times is not a good idea. env(1) uses the later occurance and
 thus path is not set appropriately. fix this by modifying ${PATH}
 
 cheers
   simon
 
 -- 
 /"\   http://corecode.ath.cx/#donate
 \ /
  \     ASCII Ribbon Campaign
 / \  Against HTML Mail and News
 
 --=.wq:9xcSLpi,b+4
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+JDqyr5S+dk6z85oRAhIuAJ470oA8VfxKYkGHQO9+wWdzEtA0rwCcDY/6
 NwULtUSuRN3fhLy2J3sWcDY=
 =tL1G
 -----END PGP SIGNATURE-----
 
 --=.wq:9xcSLpi,b+4--

From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To: Chris Knight <chris@aims.com.au>
Cc: FreeBSD-gnats-submit@FreeBSD.org, yds@CoolRat.org
Subject: Re: ports/47041: [BENTO FIX]
Date: Tue, 14 Jan 2003 18:00:49 +0100

 --=.nqZtm_W6IjaLH_
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Lately Simon 'corecode' Schubert told:
 
 > The following reply was made to PR ports/47041; it has been noted by GNATS.
 > 
 > From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
 > To: Chris Knight <chris@aims.com.au>
 > Cc: FreeBSD-gnats-submit@FreeBSD.org
 > Subject: Re: ports/47041: [BENTO FIX]
 > Date: Tue, 14 Jan 2003 17:28:31 +0100
 
 sorry. forgot (original submitter too) to cc maintainer.
 
 -- 
 /"\   http://corecode.ath.cx/#donate
 \ /
  \     ASCII Ribbon Campaign
 / \  Against HTML Mail and News
 
 --=.nqZtm_W6IjaLH_
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+JEJFr5S+dk6z85oRAuEHAJ4yk0pKhD/jVM8tGayYOnzQyKy3QACguJJB
 NSjnw/vjeWS3/bfiJaXFsik=
 =Vhtq
 -----END PGP SIGNATURE-----
 
 --=.nqZtm_W6IjaLH_--

From: "Chris Knight" <chris@aims.com.au>
To: <corecode@corecode.ath.cx>
Cc: <FreeBSD-gnats-submit@FreeBSD.org>, <yds@coolrat.org>
Subject: RE: ports/47041: [BENTO FIX]
Date: Wed, 15 Jan 2003 07:59:49 +1100

 Howdy,
 
 > -----Original Message-----
 > From: Simon 'corecode' Schubert [mailto:corecode@corecode.ath.cx]
 > Sent: Wednesday, 15 January 2003 3:29
 > To: Chris Knight
 > Cc: FreeBSD-gnats-submit@FreeBSD.org
 > Subject: Re: ports/47041: [BENTO FIX]
 > 
 > [snip]
 > 
 > explanation: bsd.ports.mk passes PATH anyways in CONFIGURE_ENV.
 > passing it two times is not a good idea. env(1) uses the later
 > occurance and thus path is not set appropriately. fix this by
 > modifying ${PATH}
 > 
 Aah, that's why it wasn't working! Thanks for the explanation.
 I did say there was a better way of doing it!
 
 > cheers
 >   simon
 
 Regards,
 Chris Knight
 Systems Administrator
 AIMS Independent Computer Professionals
 Tel: +61 3 6334 6664  Fax: +61 3 6331 7032  Mob: +61 419 528 795
 Web: http://www.aims.com.au 
 
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Sat Jan 18 16:00:47 PST 2003 
State-Changed-Why:  
A fix was committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47041 
>Unformatted:
