From owner-freebsd-ports@FreeBSD.ORG Fri Jun 21 14:54:32 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CFA5F182 for ; Fri, 21 Jun 2013 14:54:32 +0000 (UTC) (envelope-from freebsdml@marino.st) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) by mx1.freebsd.org (Postfix) with ESMTP id AAC021385 for ; Fri, 21 Jun 2013 14:54:32 +0000 (UTC) Received: from [10.31.9.166] (unknown [213.225.137.129]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id F0D4F435A3; Fri, 21 Jun 2013 09:54:25 -0500 (CDT) Message-ID: <51C4691E.2030905@marino.st> Date: Fri, 21 Jun 2013 16:54:22 +0200 From: John Marino User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: mexas@bristol.ac.uk Subject: Re: make: /usr/ports/Mk/bsd.port.mk line 1638: warning: Couldn't read shell's output for if /sbin/sysctl -n compat.ia32.maxvmem >/dev/null 2>&1; then echo YES; fi References: <201306211442.r5LEgwV8052391@mech-cluster241.men.bris.ac.uk> In-Reply-To: <201306211442.r5LEgwV8052391@mech-cluster241.men.bris.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Anton Shterenlikht , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jun 2013 14:54:32 -0000 On 6/21/2013 16:42, Anton Shterenlikht wrote: > On ia64 r252055 with ports at r321471 make issues lots of warnings > like: > > # make -C /usr/ports/ fetchindex make: > "/usr/ports/Mk/bsd.port.subdir.mk" line 101: warning: Couldn't read > shell's output for "if /sbin/sysctl -n compat.ia32.maxvmem >/dev/null > 2>&1; then echo YES; fi" make: "/usr/ports/Mk/bsd.port.mk" line 1638: > warning: Couldn't read shell's output for "if /sbin/sysctl -n > compat.ia32.maxvmem >/dev/null 2>&1; then echo YES; fi" > > *and many more idencal ones* That looks like bmake output. There should be an "else" part of the conditional that returns TRUE or echo. bmake shell commands don't like null output. The bsd.port.subdir.mk needs to be tweaked for bmake. John