Re: how to see order of make targets steps in ports tree?

From: Miroslav Lachman <000.fbsd_at_quip.cz>
Date: Thu, 14 Mar 2024 19:48:48 UTC
On 14/03/2024 20:24, Hubert Tournier wrote:
> Hello,
> 
> Check this link:
> 
> https://docs.freebsd.org/en/books/porters-handbook/slow-porting/#slow-work
> 
>  From what I have seen, shebangfix is done during the patch target. You 
> use SHEBANG_FILES to specify which files it needs to affect

I spent a lot of time reading porters handbook to find detailed 
information about this, but it is not there.

The problem is with databases/mysqltuner - upstream broke mysqltuner.pl 
by missing shebang line. I created patch to add back the previous 
"#!/usr/bin/env perl" but it is not later replaced by shebangfix to 
"#!/usr/local/bin/perl" as I expect (probably is shebangfix executed 
before). That's why I would like to know "some magic command" which 
shows me the exact steps executed by "make"

I made another patch that adds FreeBSD shebang:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277703


> Le 14/03/2024 à 19:55, Miroslav Lachman a écrit :
>> Is there a way to see the order of the executed steps by "make"?
>>
>> tl;dr: I know "make" will run many targets like fetch, checksum, 
>> extract, patch... but I would like to see some verbose info about 
>> these steps, mainly what is the order of the steps when I run "make".
>> I tried to create some patch to one the port and it seems like 
>> "shebangfix" is run before "patch" but I don't know how to see what is 
>> true order of the targets.
>>
>> Kind reagards
>> Miroslav Lachman
>>
>