How to debug a Mk-Script?
Bryan Drewery
bdrewery at FreeBSD.org
Wed Oct 21 04:12:09 UTC 2015
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
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20151020/f14854ae/attachment.bin>
More information about the freebsd-ports
mailing list