Subject: Re: pkgsrc progress bar?
To: NetBSD Packages <>
From: Dick Davies <>
List: tech-pkg
Date: 01/20/2005 03:08:36
* Thomas Bieg <> [0114 02:14]:
> Jeremy C. Reed schrieb:

> >On Thu, 20 Jan 2005, Teemu Rinta-aho wrote:
> >
> >>anyone have an idea how big effort would it be to implement
> >>a progress bar to "make install" in pkgsrc?

> >This is not possible.
> ... until it's done.
> There may be no magic solution for arbitrary packages, but
> what could be done is to write some tool that "records"
> the make output beforehand together with some sort of
> timestamps to get a reference, which could be used (by the
> same tool) to calculate time estimates during later builds.

But  as you point out, that makes no odds for new versions.
And how often do you run exactly the same build twice?

> ....tool would have to be intelligent enough to handle
> differences caused by conditional compilation and the
> like.

I can't see how that's possible. Or why you'd want to.
> If you want a simpler, but *really* imprecise solution
> you could even have someone pipe the build output through
> "wc -c" and use the result together with progress(1) for
> your own build...

But progress needs to know the length of what ever its monitoring
to give you a progress indicator. That's not possible in this case.

'Everyone's always in favour of saving Hitler's brain, but when you put it
in the body of a Great White shark suddenly you've gone too far..'
		-- Prof. Farnsworth
Rasputin :: Jack of All Trades - Master of Nuns