Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 May 2012 16:31:13 GMT
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167803: [patch] Fix mail/opendkim whenever WITH_FILTER is not specified
Message-ID:  <201205111631.q4BGVDlo075217@red.freebsd.org>
Resent-Message-ID: <201205111640.q4BGeCWO005987@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167803
>Category:       ports
>Synopsis:       [patch] Fix mail/opendkim whenever WITH_FILTER is not specified
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 11 16:40:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        
>Organization:
Rochester Institute of Technology
>Environment:
>Description:
If mail/opendkim is built WITHOUT_FILTER, installation will fail due to a logic error in post-install:

test -z "/usr/ports/mail/opendkim/work/doc" || build-aux/install-sh -c -d "/usr/ports/mail/opendkim/work/doc"
 install  -o root -g wheel -m 444 FEATURES KNOWNBUGS LICENSE LICENSE.Sendmail RELEASE_NOTES.Sendmail '/usr/ports/mail/opendkim/work/doc'
/usr/bin/strip: '/usr/local/sbin/opendkim': No such file
*** Error code 1

Stop in /usr/ports/mail/opendkim.
*** Error code 1

Stop in /usr/ports/mail/opendkim.
>How-To-Repeat:
Build/install mail/opendkim without FILTER selected in OPTIONS.
>Fix:
Apply the attached patch.

Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/opendkim/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	10 Apr 2012 09:20:44 -0000	1.15
+++ Makefile	11 May 2012 16:27:29 -0000
@@ -141,7 +141,7 @@
 .endif
 
 post-install:
-.if !defined(WITH_DEBUG)
+.if !defined(WITH_DEBUG) && defined(WITH_FILTER) && !defined(WITHOUT_FILTER)
 	@${STRIP_CMD} ${PREFIX}/sbin/opendkim
 .endif
 	@${MKDIR} ${PREFIX}/etc/mail


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205111631.q4BGVDlo075217>