Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2015 18:40:24 +0200
From:      =?UTF-8?Q?Torsten_Z=c3=bchlsdorff?= <mailinglists@toco-domains.de>
To:        Bryan Drewery <bdrewery@FreeBSD.org>, FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: How to debug a Mk-Script?
Message-ID:  <56291178.8080707@toco-domains.de>
In-Reply-To: <56271092.5050507@FreeBSD.org>
References:  <5624AEBA.80702@toco-domains.de> <56271092.5050507@FreeBSD.org>

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


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



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