ports/185857: [patch] mail/postfix - quiet warning message on 10+
Adam Weinberger
adamw at FreeBSD.org
Fri Jan 17 23:00:03 UTC 2014
>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 at 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:
More information about the freebsd-ports-bugs
mailing list