From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 19 01:40:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1627D3BB for ; Tue, 19 Mar 2013 01:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D0204A0B for ; Tue, 19 Mar 2013 01:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2J1e1IO088455 for ; Tue, 19 Mar 2013 01:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2J1e187088454; Tue, 19 Mar 2013 01:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 19 Mar 2013 01:40:01 GMT Resent-Message-Id: <201303190140.r2J1e187088454@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Marshall Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2AF8E3A7 for ; Tue, 19 Mar 2013 01:36:52 +0000 (UTC) (envelope-from john.marshall@riverwillow.com.au) Received: from mail1.riverwillow.net.au (mail1.riverwillow.net.au [203.58.93.36]) by mx1.freebsd.org (Postfix) with ESMTP id 70C529FF for ; Tue, 19 Mar 2013 01:36:51 +0000 (UTC) Received: from mail3.riverwillow.net.au (svcs1.riverwillow.net.au [203.58.93.40]) by mail1.riverwillow.net.au (8.14.6/8.14.6) with ESMTP id r2J1adlJ084788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Mar 2013 12:36:40 +1100 (AEDT) Received: from rwsrv08.mby.riverwillow.net.au (localhost [127.0.0.1]) by mail3.riverwillow.net.au (8.14.6/8.14.6) with ESMTP id r2J1aZp0036219 for ; Tue, 19 Mar 2013 12:36:35 +1100 (EST) Received: (from john@localhost) by rwsrv08.mby.riverwillow.net.au (8.14.6/8.14.6/Submit) id r2J1aYan036218; Tue, 19 Mar 2013 12:36:34 +1100 (EST) Message-Id: <201303190136.r2J1aYan036218@rwsrv08.mby.riverwillow.net.au> Date: Tue, 19 Mar 2013 12:36:34 +1100 (EST) From: John Marshall To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/177097: [PATCH] mail/milter-greylist loses dumpfile following upgrade X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: John Marshall List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Mar 2013 01:40:02 -0000 >Number: 177097 >Category: ports >Synopsis: [PATCH] mail/milter-greylist loses dumpfile following upgrade >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 19 01:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: John Marshall >Release: FreeBSD 9.1-RELEASE-p1 amd64 >Organization: Riverwillow Pty Ltd >Environment: System: FreeBSD rwsrv08.mby.riverwillow.net.au 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #0 r248445: Mon Mar 18 12:35:45 AEDT 2013 root@rwsrv08.mby.riverwillow.net.au:/usr/obj/usr/src/sys/RWSRV08 amd64 >Description: Following upgrade to 4.4.1, milter-greylist looks for its dumpfile in a different (non-existent) location... milter-greylist: cannot read dumpfile "/usr/local/var/milter-greylist/greylist.db" milter-greylist: starting with an empty greylist The problem arises because the configure.ac defines the default dumpfile location as ${prefix}/var... We could patch config files but since the port already hard-codes the expected dumpfile location in the Makefile, I suggest we just use the configure argument to pass that location to the build. The attached patch addes that configure argument. I notice that ports/176950 (4.4.3 update) is in progress. Perhaps this patch could augment the commit for that PR? Thank you for maintaining this port. >How-To-Repeat: >Fix: --- milter-greylist.diff begins here --- Index: mail/milter-greylist/Makefile =================================================================== --- mail/milter-greylist/Makefile (revision 314609) +++ mail/milter-greylist/Makefile (working copy) @@ -74,8 +74,9 @@ LIBS+= ${PTHREAD_LIBS} GNU_CONFIGURE= yes -CONFIGURE_ARGS+= --with-user=mailnull --with-libmilter=${MILTERBASE} \ - --enable-dnsrbl --with-thread-safe-resolver +CONFIGURE_ARGS+= --with-user=mailnull --with-libmilter=${MILTERBASE} \ + --enable-dnsrbl --with-thread-safe-resolver \ + --with-dumpfile=/var/milter-greylist/greylist.db CONFIGURE_ENV+= LIBS="${LIBS}" ALL_TARGET= milter-greylist --- milter-greylist.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: