Date: Tue, 19 Mar 2013 12:36:34 +1100 (EST) From: John Marshall <john.marshall@riverwillow.com.au> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/177097: [PATCH] mail/milter-greylist loses dumpfile following upgrade Message-ID: <201303190136.r2J1aYan036218@rwsrv08.mby.riverwillow.net.au> Resent-Message-ID: <201303190140.r2J1e187088454@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303190136.r2J1aYan036218>