From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 17 23:00:03 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 43FFF22D for ; Fri, 17 Jan 2014 23:00:03 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 08632137E for ; Fri, 17 Jan 2014 23:00:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0HN02o4007874 for ; Fri, 17 Jan 2014 23:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0HN02dZ007836; Fri, 17 Jan 2014 23:00:02 GMT (envelope-from gnats) Resent-Date: Fri, 17 Jan 2014 23:00:02 GMT Resent-Message-Id: <201401172300.s0HN02dZ007836@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, Adam Weinberger Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64FBDE5 for ; Fri, 17 Jan 2014 22:51:47 +0000 (UTC) Received: from apnoea.adamw.org (apnoea.adamw.org [204.109.59.150]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 438C9134A for ; Fri, 17 Jan 2014 22:51:47 +0000 (UTC) Received: by apnoea.adamw.org (Postfix, from userid 0) id B737911F80A; Fri, 17 Jan 2014 17:51:40 -0500 (EST) Message-Id: <20140117225140.B737911F80A@apnoea.adamw.org> Date: Fri, 17 Jan 2014 17:51:40 -0500 (EST) From: Adam Weinberger To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/185857: [patch] mail/postfix - quiet warning message on 10+ X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Adam Weinberger List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 23:00:03 -0000 >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: