Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New portage utility: ehush
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
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Mon Aug 18, 2003 11:25 pm    Post subject: New portage utility: ehush Reply with quote

ehush is a wrapper for emerge. It suppresses any output from compiling, whether from make or distutils etc, and just shows the "important" stuff that emerge outputs. Its written in Python.

UPDATE: I give up (with pleasure). It looks like there may be functionality put in portage that will make this ugly hack known as ehush quietly fade away. See <b>enotice</b> for a sane solution: http://dev.gentoo.org/~eldad/

There have been a few bugs addressing this and it looks like they may get fixed:
http://bugs.gentoo.org/show_bug.cgi?id=11359
http://bugs.gentoo.org/show_bug.cgi?id=37491

In the meantime, I reccommend ignoring the output and running portlog-info after you're done to see all the einfo, error msgs etc. See my signature for a link to portlog-info and other nifty portage utilities.

/UPDATE

Use it exactly like you would the emerge command.

For example:

Code:
ehush mozilla


or

Code:
USE='-gtk2' ehush app-doc/phrack


If the ebuild fails, ehush will show the last 25 lines of the full output.

The full output is stored in /var/log/ehush.txt and gets overwritten each time you run ehush.

NOTE: ehush is known to work in xterm, konsole and rxvt but not eterm and aterm. I'll post a separate version for those terminals that has no spinning cursor.

ehush
http://abeni.sf.net/ebuilds/ehush

Copy it to /usr/bin and then 'chmod +x /usr/bin/ehush'


Last edited by Pythonhead on Tue Mar 08, 2005 5:37 pm; edited 16 times in total
Back to top
View user's profile Send private message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Tue Aug 19, 2003 12:08 am    Post subject: Reply with quote

Testing it right now, it seems to work.. my only problem is that you don't see anything happening. would it be possible to print a * for every 25th line or something that's suppressed? That way you can see progress?

Update:
I got this output at the end. It doesn't seem that usefull to me (testing with gedit ebuild)
Code:
>>> /usr/include/gedit-2.4/gedit/gedit-encodings.h
>>> /usr/include/gedit-2.4/gedit/gedit-view.h
>>> /usr/include/gedit-2.4/gedit/gedit-convert.h
>>> /usr/include/gedit-2.4/gedit/gedit-metadata-manager.h
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/pixmaps/gedit-plugin-manager.png
--- !mtime obj /usr/share/pixmaps/gedit-logo.png
--- !mtime obj /usr/share/pixmaps/gedit-icon.png
--- !mtime obj /usr/share/gnome/help/gedit/zh_TW/legal.xml
--- !mtime obj /usr/share/gnome/help/gedit/zh_TW/gedit.xml
--- !mtime obj /usr/share/gnome/help/gedit/zh_CN/legal.xml
--- !mtime obj /usr/share/gnome/help/gedit/zh_CN/gedit.xml
--- !mtime obj /usr/share/gnome/help/gedit/sv/legal.xml
--- !mtime obj /usr/share/gnome/help/gedit/sv/gedit.xml
--- !mtime obj /usr/share/gnome/help/gedit/ro/legal.xml
--- !mtime obj /usr/share/gnome/help/gedit/ro/gedit.xml
--- !mtime obj /usr/share/gnome/help/gedit/ro/figures/gedit_window.png
--- !mtime obj /usr/share/gnome/help/gedit/ko/legal.xml
--- !mtime obj /usr/share/gnome/help/gedit/ko/gedit.xml
--- cut for space
--- !empty dir /usr/share/locale/lt/LC_MESSAGES
--- !empty dir /usr/share/locale/lt
--- !empty dir /usr/share/locale/ko/LC_MESSAGES
--- !empty dir /usr/share/locale/ko
--- !empty dir /usr/share/locale/kn/LC_MESSAGES
--- !empty dir /usr/share/locale/kn
--- !empty dir /usr/share/locale/ja/LC_MESSAGES
--- !empty dir /usr/share/locale/ja
--- !empty dir /usr/share/locale/it/LC_MESSAGES
--- !empty dir /usr/share/locale/it
--- !empty dir /usr/share/locale/hu/LC_MESSAGES
--- !empty dir /usr/share/locale/hu
--- !empty dir /usr/share/locale/hi/LC_MESSAGES
--- !empty dir /usr/share/locale/hi
--- !empty dir /usr/share/locale/he/LC_MESSAGES
--- !empty dir /usr/share/locale/he
--- !empty dir /usr/share/locale/gl/LC_MESSAGES
--- !empty dir /usr/share/locale/gl
--- !empty dir /usr/share/locale/ga/LC_MESSAGES
--- !empty dir /usr/share/locale/ga
--- !empty dir /usr/share/locale/fr/LC_MESSAGES
--- !empty dir /usr/share/locale/fr
--- !empty dir /usr/share/locale/fi/LC_MESSAGES
--- !empty dir /usr/share/locale/fi
--- !empty dir--- !empty dir /usr/share/locale/fi/LC_MESSAGES
--- !empty dir /usr/share/locale/fi
--- !empty dir /usr/share/locale/fa/LC_MESSAGES
--- !empty dir /usr/sha--- !empty dir /usr/share/locale/fi/LC_MESSAGES
--- !empty dir /usr/share/locale/fi
--- !empty dir--- !empty dir /usr/share/locale/fi/LC_MESSAGES
--- !empty dir /usr/share/locale/fi
--- !empty dir /usr/share/locale/fa/LC_MESSAGES
--- !empty dir /usr/share/locale/fa

--- !empty dir /usr/share/locale/es
--- !empty dir /usr/share/locale/el/LC_MESSAGES
--- !empty dir /usr/share/locale/el
--- !empty dir /usr/share/locale/de/LC_MESSAGES
--- !empty dir /usr/share/locale/de
--- !empty dir /usr/share/locale/da/LC_MESSAGES
--- !empty dir /usr/share/locale/da
--- !empty dir /usr/share/locale/cy/LC_MESSAGES
--- !empty dir /usr/share/locale/cy
--- !empty dir /usr/share/locale/cs/LC_MESSAGES
--- !empty dir /usr/share/locale/cs
--- !empty dir /usr/share/locale/ca/LC_MESSAGES
--- !empty dir /usr/share/locale/ca
--- !empty dir /usr/share/locale/bg/LC_MESSAGES
--- !empty dir /usr/share/locale/bg
--- !empty dir /usr/share/locale/be/LC_MESSAGES
--- !empty dir>>> Updating Scrollkeeper
 * installing gnome2 gconf schemas
>>> Updating Scrollkeeper
 /usr/share/locale/be
--- !empty dir /usr/share/locale/az/LC_MESSAGES
--- !empty dir /usr/share/locale/az
--- !empty dir /usr/share/locale/ar/LC_MESSAGES
--- !empty dir /usr/share/locale/ar
--- !empty dir /usr/share/locale/am/LC_MESSAGES
--- !empty dir /usr/share/locale/am
--- !empty dir /usr/share/locale
--- !empty dir /usr/share/idl
--- !empty dir /usr/share/gnome/help/gedit/zh_TW
--- !empty dir /usr/share/gnome/help/gedit/zh_CN
--- !empty dir /usr/share/gnome/help/gedit/sv
--- !empty dir /usr/share/gnome/help/gedit/ro/figures
--- !empty dir /usr/share/gnome/help/gedit/ro
--- !empty dir /usr/share/gnome/help/gedit/ko
--- !empty dir /usr/share/gnome/help/gedit/ja
--- !empty dir /usr/share/gnome/help/gedit/it
--- !empty dir /usr/share/gnome/help/gedit/fr
--- !empty dir /usr/share/gnome/help/gedit/es
--- !empty dir /usr/share/gnome/help/gedit/de
--- !empty dir /usr/share/gnome/help/gedit/C/figures
--- !empty dir /usr/share/gnome/help/gedit/C
--- !empty dir /usr/share/gnome/help/gedit
--- !empty dir /usr/share/gnome/help
--- !empty dir /usr/share/gnome-2.0/ui
--- !empty dir /usr/share/gnome-2.0
--- !empty dir /usr/share/gnome
--- !empty dir /usr/share/gedit-2/ui
--- !empty dir /usr/share/gedit-2/taglist
--- !empty dir /usr/share/gedit-2/glade
--- !empty dir /usr/share/gedit-2
--- !empty dir /usr/share/doc/gedit-2.3.3
--- !empty dir /usr/share/doc
--- !empty dir /usr/share/applications
--- !empty dir /usr/share/application-registry
--- !empty dir /usr/share
--- !empty dir /usr/lib/pkgconfig
--- !empty dir /usr/lib/gedit-2/plugins
--- !empty dir /usr/lib/gedit-2
--- !empty dir /usr/lib/bonobo/servers
--- !empty dir /usr/lib/bonobo
--- !empty dir /usr/lib
--- !empty dir /usr/include/gedit-2.4/gedit/recent-files
--- !empty dir /usr/include/gedit-2.4/gedit
--- !empty dir /usr/include/gedit-2.4
--- !empty dir /usr/include
--- !empty dir /usr/bin
--- !empty dir /usr
--- !empty dir /etc/gconf/schemas
--- !empty dir /etc
--- !targe sym /usr/bin/gnome-text-editor
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> app-editors/gedit-2.3.3 merged.
>>> Recording app-editors/gedit in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Regenerating /etc/ld.so.cache...
>>> Auto-cleaning packages ...


Only the lines with >>> infront are needed.
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Tue Aug 19, 2003 12:20 am    Post subject: Reply with quote

Quote:
would it be possible to print a * for every 25th line or something that's suppressed? That way you can see progress?


Good idea, I'll try that out.

If you look at the variable "goodStuff" you'll see "---", ">>>" etc. You can just delete the "---" and it won't show those lines.

I'll add a couple options for verbosity.

I've seen people asking for some way to only show the "important" information, and this was a quick hack. If you do an 'emerge world' you can more easily scroll back and see what went on with ehush.


Thanks
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Tue Aug 19, 2003 1:24 am    Post subject: Reply with quote

Version 0.3 is much less verbose and has a spinning cursor to show you its working.
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Wed Oct 01, 2003 3:13 pm    Post subject: Reply with quote

I use Prozilla for downloading with emerge and ehush doesn't recognize if a file has been partially downloaded and Prozilla asks what to do with it. I don't know whether to consider this as a bug or a not implemented feature :) . Anyway, I just wanted to add this here.

--Robert
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Wed Oct 01, 2003 4:05 pm    Post subject: Reply with quote

Master_Of_Disaster wrote:
I use Prozilla for downloading with emerge and ehush doesn't recognize if a file has been partially downloaded and Prozilla asks what to do with it. I don't know whether to consider this as a bug or a not implemented feature :) . Anyway, I just wanted to add this here.

--Robert


I've never tested it with Prozilla, but if I remember correctly, it uses a full screen for its output, which is a little tough to hush. I'll check it out though, thanks.
Back to top
View user's profile Send private message
Imrahil
n00b
n00b


Joined: 06 Feb 2003
Posts: 42
Location: Madison, Wisconsin, USA

PostPosted: Thu Oct 09, 2003 12:05 am    Post subject: ehush seems to have some troubles with my terminal mode Reply with quote

I am using ehush and followed your directions for installing it. When I try to use it to emerge something, I get character garbage instead of useful output. It looks like below:
Code:

-/|\-/|\-/|\-/|\-/|\-/|\-/|

It must be a term settings problem, or something. As if the "spinning" cursor thing is display improperly. Don't know python so I can't figure out what the problem could be. This occurs when I use it on the machines consoles, xterms, and when ssh in from another machine. My term settings work correctly with portage, nano, etc. Ctrl sequences and home and end keys and colors work properly. AFAIK, all my packages are updated and configured properly. using python 2.2.3 and kernel 2.4.20.

Any hints or questions?
Back to top
View user's profile Send private message
STEDevil
Apprentice
Apprentice


Joined: 24 Apr 2003
Posts: 156

PostPosted: Sun Aug 29, 2004 10:05 am    Post subject: Reply with quote

This is a really nice script, but I however often find myself getting spammed by eg >>> /usr/share/doc... lines

Tried to modify the script myself to be able to weed out those ">>> /usr/" lines while keeping the other ">>>" lines in, but my skills in python consists of cut&paste + guesswork so I'm not having much success. :(
Could anybody help with how to add something like

badStuff = ["/usr/"]
if goodStuff && !badStuff
...
else

TIA
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Sun Aug 29, 2004 4:00 pm    Post subject: Reply with quote

STEDevil wrote:

Could anybody help with how to add something like

badStuff = ["/usr/"]
if goodStuff && !badStuff
...
else

TIA


Try changing this section:
Code:

        if string.find(text, s) != -1:
            print text
            f.write('%s\n' % text)


to this:

Code:

        if string.find(text, s) != -1:
            if not ">>> /usr" in s:
                print text
                f.write('%s\n' % text)
Back to top
View user's profile Send private message
nelchael
Retired Dev
Retired Dev


Joined: 20 Mar 2004
Posts: 1948
Location: /dev/drzewo

PostPosted: Sun Aug 29, 2004 6:45 pm    Post subject: Re: New portage utility: ehush Reply with quote

Pythonhead wrote:

The full output is stored in /tmp/ehush.txt and gets overwritten each time you run ehush.


Isn't it a potential source for symlink attack?

what if:

Code:

ln -s /etc/passwd /tmp/ehush.txt
ehush mozilla


is executed?
_________________
[color=gray:17697d0166]http://dev.gentoo.org/~nelchael/[/color:17697d0166]

[size=14:17697d0166]>> [b:17697d0166]Zasady na f.g.o->Polish[/b:17697d0166] <<[/size:17697d0166]
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Sun Aug 29, 2004 7:48 pm    Post subject: Re: New portage utility: ehush Reply with quote

nelchael wrote:

Isn't it a potential source for symlink attack?

what if:

Code:

ln -s /etc/passwd /tmp/ehush.txt
ehush mozilla


is executed?



Good idea. I changed it to /var/log/ehush.txt
I haven't used this script since I wrote it a year ago or so and should upload some other changes I made but haven't tested much, like full log that gets appended to in addition to the temp one.
Back to top
View user's profile Send private message
STEDevil
Apprentice
Apprentice


Joined: 24 Apr 2003
Posts: 156

PostPosted: Sun Aug 29, 2004 8:02 pm    Post subject: Reply with quote

Pythonhead wrote:


Try changing this section:
Code:

        if string.find(text, s) != -1:
            print text
            f.write('%s\n' % text)


to this:

Code:

        if string.find(text, s) != -1:
            if not ">>> /usr" in s:
                print text
                f.write('%s\n' % text)


Thanks, but that doesn't seem to do the trick. Then again that f.write() line doesn't appear in that section in the 0.3 version of the script I have. Mayby you have added further improvments in the script you use yourself to make it behave a bit different? Or perhaps the slash or space needs to be escaped?

Anyway, this is what I got right now in my scrip
Code:

    for s in goodStuff:
        if string.find(text, s) != -1:
                if not ">>> /usr" in s:
                    print text
                    nbrLines += 1
                    break
        else:
            update_spinner()
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Sun Aug 29, 2004 8:30 pm    Post subject: Reply with quote

Sorry, that was from the development version.
The line should read:

Code:
if not ">>> /usr" in text:
Back to top
View user's profile Send private message
nelchael
Retired Dev
Retired Dev


Joined: 20 Mar 2004
Posts: 1948
Location: /dev/drzewo

PostPosted: Sun Aug 29, 2004 10:02 pm    Post subject: Re: New portage utility: ehush Reply with quote

Pythonhead wrote:

Good idea. I changed it to /var/log/ehush.txt


Maybe /var/tmp/portage (or whatever PORTAGE_TMPDIR is set to + /portage) - this directory has portage:portage ownership and 755 mode - it's maintained by portage itself, so it should be quite safe to use it.
_________________
[color=gray:17697d0166]http://dev.gentoo.org/~nelchael/[/color:17697d0166]

[size=14:17697d0166]>> [b:17697d0166]Zasady na f.g.o->Polish[/b:17697d0166] <<[/size:17697d0166]
Back to top
View user's profile Send private message
STEDevil
Apprentice
Apprentice


Joined: 24 Apr 2003
Posts: 156

PostPosted: Sun Aug 29, 2004 11:51 pm    Post subject: Reply with quote

Pythonhead wrote:
Sorry, that was from the development version.
The line should read:

Code:
if not ">>> /usr" in text:


That worked like a charm :)
Now I'm off to try and figure out how to combine ehush & pye :D
Back to top
View user's profile Send private message
aslocum
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 217
Location: Germany, Frankfurt

PostPosted: Mon Aug 30, 2004 7:10 am    Post subject: Reply with quote

nice idea... but some strange output :)

the spinner gets back in line and overwrites all my "normal" output:

Code:
>> dobin: making /var/tmp/portage/ant-1.6.2-r3/work/apache-ant-1.6.2/src/script/complete-ant-cmd.pl executable...                                  >>> Completed installing into /var/tmp/portage/ant-1.6.2-r3/image/                                                                               * Caching service dependencies...Calculating dependencies  ...done!                                                >>> emerge (1 of 17) dev-java/ant-1.6.2-r3 to /                                                       >>> md5 src_uri ;-) apache-ant-1.6.2-src.tar.bz2                                                      >>> Merging dev-java/ant-1.6.2-r3 to /                                    >>> /usr/bin/ant/|\-/|\-/|\->>> /usr/bin/antRun                                                                                   >>> /usr/bin/runant.pl                                                                                >>> /usr/bin/runant.py                                                                                >>> /usr/bin/complete-ant-cmd.pl                                          >>> /usr/share/ant/bin/\-/|\>>> /usr/share/ant/bin/antRun -> /usr/bin/antRun                                                      >>> /usr/share/ant/bin/runant.pl -> /usr/bin/runant.pl                                                >>> /usr/share/ant/bin/runant.py -> /usr/bin/runant.py                                                >>> /usr/share/ant/bin/complete-ant-cmd.pl -> /usr/bin/complete-ant-cmd.pl              >>> /usr/share/ant/lib/ant.jar                                                                                      >>> /usr/share/ant/lib/ant-launcher.jar                                                               >>> /usr/share/ant/package.env                                                          >>> /usr/share/doc/ant-1.6.2-r3/                                                                                  >>> Install xerces-2.6.2-r1 into /var/tmp/portage/xerces-2.6.2>>> Completed installing into /var/tmp/portage/xerces-2.6.2-r1/image/\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\- *                                                           |\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-
 *  Online Documentation:                                    |\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|
 *      http://xml.apache.org/xerces2-j/api.html             -/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-
 *                                                           |\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|
\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-
/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|
\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-
/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|
/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|
\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-
|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\
-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/
|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\
-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/
|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\
-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/
|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\
-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-/|\-


the spinner only stops at 0,0 (top,left in console) or when a new output is written... but he overwrites the output. using 0.4 of the script.

i hope you understand what i want.. my bad english :(
_________________
Dell Latitude d610 1.6Ghz 1GB
gcc-4.0.3 2.6.15-no3
Reiser4
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Mon Aug 30, 2004 7:31 am    Post subject: Reply with quote

I've tested it in an xterm and in konsole and don't have any problem with the spinner. What terminal program are you using?
Back to top
View user's profile Send private message
aslocum
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 217
Location: Germany, Frankfurt

PostPosted: Mon Aug 30, 2004 7:33 am    Post subject: Reply with quote

That was Eterm. In rxvt it works fine
_________________
Dell Latitude d610 1.6Ghz 1GB
gcc-4.0.3 2.6.15-no3
Reiser4
Back to top
View user's profile Send private message
aslocum
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 217
Location: Germany, Frankfurt

PostPosted: Mon Aug 30, 2004 7:41 am    Post subject: Reply with quote

just a (very) little issue using rxvt terminal:

Code:
>>> Unpacking aterm-0.4.2.tar.bz2 to /var/tmp/portage/aterm-0.4.2-r9/work
 * App  [ ok ]erm-0.4.2-borderless.patch...
 * App  [ ok ]erm-0.4.2-paste.patch...
 * App  [ ok ]erm-0.4.2-paste_mouse_outside.patch...
 * App  [ ok ]erm-0.4.2-copynpaste-r3.patch...
 * App  [ ok ]erm-0.4.2-patch-pack000.patch...
>>> Source unpacked.
|


the [ ok ] ^

same issue with the spinner in aterm
_________________
Dell Latitude d610 1.6Ghz 1GB
gcc-4.0.3 2.6.15-no3
Reiser4
Back to top
View user's profile Send private message
STEDevil
Apprentice
Apprentice


Joined: 24 Apr 2003
Posts: 156

PostPosted: Mon Aug 30, 2004 8:55 pm    Post subject: Reply with quote

STEDevil wrote:
Pythonhead wrote:
Sorry, that was from the development version.
The line should read:

Code:
if not ">>> /usr" in text:


That worked like a charm :)


... then I emerged openoffice ... /opt spamcity :P

So, how do I write something like not ">>> /usr" && ">>> /opt" in python?
Back to top
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Mon Aug 30, 2004 9:15 pm    Post subject: Reply with quote

STEDevil wrote:


... then I emerged openoffice ... /opt spamcity :P

So, how do I write something like not ">>> /usr" && ">>> /opt" in python?


I'd just change it from:

Code:
">>> /usr"


to:

Code:
">>> /"


and avoid all those messages altogether. The new version I'm working on will do that and ditch the spinning cursor too, since I don't have time to test it on all the crazy terminals out there.
Back to top
View user's profile Send private message
STEDevil
Apprentice
Apprentice


Joined: 24 Apr 2003
Posts: 156

PostPosted: Mon Aug 30, 2004 11:25 pm    Post subject: Reply with quote

Pythonhead wrote:

Code:
">>> /"


and avoid all those messages altogether.


I thought about it but was a bit afraid of too general rules in case it would remove too much. However, it'a probably not very likely to be a prooblem (but then again, I didn't see /opt coming either :D)

Quote:

The new version I'm working on will do that and ditch the spinning cursor too, since I don't have time to test it on all the crazy terminals out there.


Why not just a config/run-option to disable it for people with funky terminals? Or at least leave it in, just commented out, to make it easy to add back. Some feedback that something is going on is really nice IMO.
Back to top
View user's profile Send private message
linux_girl
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 283

PostPosted: Sat Feb 05, 2005 1:23 am    Post subject: Reply with quote

what about bufering every 20 lignes of text ??
if portage exit with !0 display the last buffered line so u can figure out what hapens without a tail on the log file ??
what about a straight
Code:

emerge devhelp|grep -v '^\(cc\|gcc\|c+\)'

or
Code:

alias cleanportage="grep -v '^\(cc\|gcc\|c+\)'"
emerge devhelp|cleanportage


u can also add a |grep "\*" to show importantes lignes that has a * metachar

i may be wrong but cleaning stdout increase the speed ??? or wirinting to stdout comsume more CPU tha greeping it ?
_________________
:D :D
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