Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suggested Improvement for portage...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
enigma_0Z
Guru
Guru


Joined: 29 Aug 2004
Posts: 531
Location: Either lurking here or at my forum (see sig)

PostPosted: Fri Apr 15, 2005 3:19 am    Post subject: Suggested Improvement for portage... Reply with quote

1. Would it be possible, if while you were emerging something, there was a little status line above or below the compiler output that said what app you were installing
2. Would it also be possible, to scan the program's makefile before starting the install, and increment a progressbar in the above status line untill 100% when it compiles the last bits of source?
_________________
Check out my...
Website: (CURRENTLY DOWN) http://sledgehammer.ath.cx
Forum: (ALSO CURRRENTLY DOWN) http://sledgehammer.ath.cx/forum/
Back to top
View user's profile Send private message
Lokheed
Veteran
Veteran


Joined: 12 Jul 2004
Posts: 1295
Location: /usr/src/linux

PostPosted: Fri Apr 15, 2005 4:10 am    Post subject: Reply with quote

Soooo many people have new ideas for Portage but this is the only constant one I would love to see implemented. A true way of knowing where a compile is at that point in time. A percentage bar, text, anything that would inform you of the remaining time of compilation would be priceless...

I have a feeling this is far from easy to implement or it would have already been done...
_________________
You're not afraid of the dark are you?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9236
Location: beyond the rim

PostPosted: Fri Apr 15, 2005 5:56 am    Post subject: Reply with quote

1) xterm titlebar has that information
2) ask the make developers to implement it. We won't add hacks to portage for this.
Back to top
View user's profile Send private message
enigma_0Z
Guru
Guru


Joined: 29 Aug 2004
Posts: 531
Location: Either lurking here or at my forum (see sig)

PostPosted: Fri Apr 15, 2005 4:19 pm    Post subject: Reply with quote

Genone wrote:
1) xterm titlebar has that information
2) ask the make developers to implement it. We won't add hacks to portage for this.


1) What if you aren't in xterm, but installing from either the livecd or installing X or KDE, or just don't like terminal emulators? Furthermore, I don't believe the xterm titlebar has a percentage display.
2) Very true, I was wondering wether or not it was a portage thing or a make thing... Who makes make anyway?
_________________
Check out my...
Website: (CURRENTLY DOWN) http://sledgehammer.ath.cx
Forum: (ALSO CURRRENTLY DOWN) http://sledgehammer.ath.cx/forum/
Back to top
View user's profile Send private message
biehl
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2003
Posts: 109
Location: Copenhagen/Denmark/European Union

PostPosted: Sun Apr 17, 2005 7:21 am    Post subject: Reply with quote

1) I'm quite happy with having the info in my Konsole titlebar

2)
Code:

bash-2.05b$ man make

[snip...]

SEE ALSO
       The GNU Make Manual

BUGS
       See the chapter `Problems and Bugs' in The GNU Make Manual .

AUTHOR
       This  manual  page  contributed by Dennis Morse of Stanford University.
       It has been reworked by Roland McGrath.




3) As I contemplate installing kde-meta (split ebuilds) the conf-cache would be my portage top priority :)
_________________
1) Dell Inspiron 8600, 1,4GHz PM, GeForce 5650Go
2) Custom, AMD64 Winchester 3000+, Asus A8V Deluxe, GeForce 5200
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Sun Apr 17, 2005 10:46 am    Post subject: Reply with quote

enigma_0Z wrote:
Genone wrote:
1) xterm titlebar has that information
2) ask the make developers to implement it. We won't add hacks to portage for this.


1) What if you aren't in xterm, but installing from either the livecd or installing X or KDE, or just don't like terminal emulators? Furthermore, I don't believe the xterm titlebar has a percentage display.
2) Very true, I was wondering wether or not it was a portage thing or a make thing... Who makes make anyway?


1. ps aux | grep sandbox

if you don't use sandbox then grep for ebuild.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9236
Location: beyond the rim

PostPosted: Sun Apr 17, 2005 4:54 pm    Post subject: Reply with quote

Easier: `tail -f /var/log/emerge.log`
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Sun Apr 17, 2005 6:40 pm    Post subject: Reply with quote

Genone wrote:
Easier: `tail -f /var/log/emerge.log`


My way is quicker to read, yes, that's it.

And my wing wang is bigger too.
Back to top
View user's profile Send private message
GeneralZod
n00b
n00b


Joined: 09 Oct 2004
Posts: 51

PostPosted: Sun Apr 17, 2005 6:46 pm    Post subject: Re: Suggested Improvement for portage... Reply with quote

enigma_0Z wrote:

2. Would it also be possible, to scan the program's makefile before starting the install, and increment a progressbar in the above status line untill 100% when it compiles the last bits of source?


I was toying with the idea of doing something like this (except instead of scanning the makefile, which would be hard, simply counting all .c, .cc, .cpp files in the corresponding /var/tmp/portage/<app>/work directory and sub-directories) and counting the number that have been successfuly compiled, but didn't bother as I suspected that someone else would have done it already. Is this not the case?
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Sun Apr 17, 2005 6:51 pm    Post subject: Reply with quote

well, there's not really a remotely accurate way of measuring how long it'll take to compile stuff.

If you count files, a set of files might be significantly bigger than the rest. Are they a lot of big files? a lot of small files?

Do they have stuff that makes baby gcc cry for mercy?

How are CFLAGS gonna affect compilation?

Is the system under load?

genlop has some "predict how long it'll take to emerge a package" but I don't know how accurate it is or how it works.
Back to top
View user's profile Send private message
enigma_0Z
Guru
Guru


Joined: 29 Aug 2004
Posts: 531
Location: Either lurking here or at my forum (see sig)

PostPosted: Sun Apr 17, 2005 7:04 pm    Post subject: Reply with quote

Lucky B wrote:
well, there's not really a remotely accurate way of measuring how long it'll take to compile stuff.

If you count files, a set of files might be significantly bigger than the rest. Are they a lot of big files? a lot of small files?

Do they have stuff that makes baby gcc cry for mercy?

How are CFLAGS gonna affect compilation?

Is the system under load?

genlop has some "predict how long it'll take to emerge a package" but I don't know how accurate it is or how it works.


I wasn't trying to predict by time, just get some indication of where it's at in the build, 20%, 50%, 99.9%?

But it seems that there's no real way to determine that.
_________________
Check out my...
Website: (CURRENTLY DOWN) http://sledgehammer.ath.cx
Forum: (ALSO CURRRENTLY DOWN) http://sledgehammer.ath.cx/forum/
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 270
Location: ZZ9 Plural Z Alpha

PostPosted: Sun Apr 17, 2005 8:17 pm    Post subject: Reply with quote

counting source / object files can give you an approximation....

I sometimes use this...

Code:
cd /var/tmp/portage/<app>/work
find . -name "*.c*" -print | wc -l
find . -name "*.o*" -print | wc -l


on a big compile on a slow machine.
Back to top
View user's profile Send private message
Lucky B
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 235
Location: Florida

PostPosted: Tue Apr 19, 2005 10:31 pm    Post subject: Reply with quote

Mark Clegg wrote:
counting source / object files can give you an approximation....

I sometimes use this...

Code:
cd /var/tmp/portage/<app>/work
find . -name "*.c*" -print | wc -l
find . -name "*.o*" -print | wc -l


on a big compile on a slow machine.


just a tip, for a one liner:
Code:

echo $((`find . -name "*.c*" -print | wc -l` - `find . -name "*.o*" -print | wc -l`))
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Tue Apr 19, 2005 10:37 pm    Post subject: Reply with quote

Mark Clegg wrote:
counting source / object files can give you an approximation....


but not for packages that only compile a subset of it's code depending on what options you choose (gcc, mozilla, xorg). and i can't count the number of times eprogress has told me it was 146% done.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum