From owner-freebsd-ports@freebsd.org Fri Oct 23 07:39:11 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA0A7A19313 for ; Fri, 23 Oct 2015 07:39:11 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from toco-domains.de (mail.toco-domains.de [176.9.39.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 91F99A1D; Fri, 23 Oct 2015 07:39:11 +0000 (UTC) (envelope-from mailinglists@toco-domains.de) Received: from [192.168.0.139] (port-212-202-156-99.static.qsc.de [212.202.156.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by toco-domains.de (Postfix) with ESMTPSA id 2D6E21B22838; Fri, 23 Oct 2015 09:39:01 +0200 (CEST) Subject: Re: How to debug a Mk-Script? To: Bryan Drewery , FreeBSD Ports ML References: <5624AEBA.80702@toco-domains.de> <56271092.5050507@FreeBSD.org> From: =?UTF-8?Q?Torsten_Z=c3=bchlsdorff?= Message-ID: <56291178.8080707@toco-domains.de> Date: Thu, 22 Oct 2015 18:40:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56271092.5050507@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2015 07:39:11 -0000 On 21.10.2015 06:12, Bryan Drewery wrote: > On 10/19/2015 1:50 AM, Torsten Zuehlsdorff wrote: >> Hello, >> >> after defining a USES pgsql:9.3+ in an port-update i stumbled over this >> error message: >> >> the port wants postgresql-client version 9.3 9.4 and you have version >> 9.4 installed. >> >> This seems to be an error in Mk/Uses/pgsql.mk which i found to track >> down (in order to gather some more experience). >> >> While i have already an idea what the case can be, i just want to add >> some output into the script. How is this possible? Can someone guide me >> please? >> >> Thanks, >> Torsten > > If you're on 10+ you can use .info, otherwise .warning on older make. > > .info your ${msg} goes ${here} > > .if defined(whatever) > .info whatever is defined as: ${whatever} > .endif This works much better than misusing IGNORE :D Still wasn't able to fix the bug... but this is an good exercise. Thanks! Torsten