Progress UI for Phases
Ryan Schmidt
ryandesign at macports.org
Tue Oct 26 12:01:42 PDT 2010
On Oct 26, 2010, at 13:59, Jeremy Lavergne wrote:
>>>> Have there been any plans to make use of a `curl -# ...` style
>>>> progress bar for the download/configure/install phases? This is for
>>>> the normal, non-verbose/non-debug output.
>>>
>>> If I remember correctly such a style is not available from libcurl, but
>>> would have to be written manually using CURLOPT_PROGRESSFUNCTION.
>>
>> And for other phases, the problem is we have no way of knowing how long the process is expected to take. For the build phase, Makefiles generated by cmake pleasantly output each line prefixed with a percent-complete indicator, but most ports don't use cmake and don't have this convenience. So the best we could do in most cases is output a spinning "/ - \ |" indicator or something to show we're still working.
>
> You could have make do a dry run where it doesn't build, then compare that list against where we are in the build output.
I didn't know it was possible to have "make" do a dry run.
More information about the macports-dev
mailing list