Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 2014 17:51:40 -0500 (EST)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/185857: [patch] mail/postfix - quiet warning message on 10+
Message-ID:  <20140117225140.B737911F80A@apnoea.adamw.org>
Resent-Message-ID: <201401172300.s0HN02dZ007836@freefall.freebsd.org>

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

>Number:         185857
>Category:       ports
>Synopsis:       [patch] mail/postfix - quiet warning message on 10+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 17 23:00:02 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Adam Weinberger
>Release:        FreeBSD 10.0-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD apnoea.adamw.org 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #2: Tue Jan 14 18:11:14 EST 2014 root@apnoea.adamw.org:/usr/obj/usr/src/sys/PEEP i386


	
>Description:
Any operation involving this port on 10+ gives the following message: 

make: "/usr/ports/mail/postfix/Makefile" line 93: warning: Couldn't read shell's output for "/usr/bin/grep -m 1 '^purgestat' /etc/mail/mailer.conf || true"

This message also appears for all the other postfix ports. It's due to the way bmake treats
empty shell command results.

It's pretty easy to fix though: change "true" at the end to "${ECHO_CMD}".

>How-To-Repeat:
	
>Fix:

The attached patch fixes it for mail/postfix, but it'll also apply for all the other
postfix ports.

--- postfix.patch begins here ---
--- Makefile.orig	2014-01-17 17:46:06.000000000 -0500
+++ Makefile	2014-01-17 17:46:18.000000000 -0500
@@ -90,7 +90,7 @@
 	scache.8.html tlsmgr.8.html
 
 .if !defined(BATCH) && !defined(PACKAGE_BUILDING) && exists(/etc/mail/mailer.conf)
-OLD_MAILER!=	${GREP} -m 1 '^purgestat' /etc/mail/mailer.conf || true
+OLD_MAILER!=	${GREP} -m 1 '^purgestat' /etc/mail/mailer.conf || ${ECHO_CMD}
 .if !empty(OLD_MAILER)
 IS_INTERACTIVE=	yes
 .endif
--- postfix.patch ends here ---


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



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