Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

New portage utility: ehush

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
23 posts • Page 1 of 1
Author
Message
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

New portage utility: ehush

  • Quote

Post by Pythonhead » Mon Aug 18, 2003 11:25 pm

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: Select all

ehush mozilla
or

Code: Select all

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.
Top
maxmc
Guru
Guru
User avatar
Posts: 480
Joined: Mon Oct 14, 2002 7:50 pm
Location: Linköping, Sweden

  • Quote

Post by maxmc » Tue Aug 19, 2003 12:08 am

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: Select all

>>> /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.
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Tue Aug 19, 2003 12:20 am

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
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Tue Aug 19, 2003 1:24 am

Version 0.3 is much less verbose and has a spinning cursor to show you its working.
Top
Master_Of_Disaster
l33t
l33t
User avatar
Posts: 610
Joined: Fri Feb 28, 2003 7:57 pm
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria
Contact:
Contact Master_Of_Disaster
Website

  • Quote

Post by Master_Of_Disaster » Wed Oct 01, 2003 3:13 pm

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!
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Wed Oct 01, 2003 4:05 pm

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.
Top
Imrahil
n00b
n00b
User avatar
Posts: 42
Joined: Thu Feb 06, 2003 12:59 pm
Location: Madison, Wisconsin, USA
Contact:
Contact Imrahil
Website

ehush seems to have some troubles with my terminal mode

  • Quote

Post by Imrahil » Thu Oct 09, 2003 12:05 am

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: Select all

-/|\-/|\-/|\-/|\-/|\-/|\-/|
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?
Top
STEDevil
Apprentice
Apprentice
Posts: 156
Joined: Thu Apr 24, 2003 12:42 pm

  • Quote

Post by STEDevil » Sun Aug 29, 2004 10:05 am

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
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Sun Aug 29, 2004 4:00 pm

STEDevil wrote: Could anybody help with how to add something like

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

TIA
Try changing this section:

Code: Select all

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

Code: Select all

        if string.find(text, s) != -1:
            if not ">>> /usr" in s:
                print text
                f.write('%s\n' % text)
Top
nelchael
Retired Dev
Retired Dev
User avatar
Posts: 1948
Joined: Sat Mar 20, 2004 9:15 am
Location: /dev/drzewo
Contact:
Contact nelchael
Website

Re: New portage utility: ehush

  • Quote

Post by nelchael » Sun Aug 29, 2004 6:45 pm

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: Select all

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]
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

Re: New portage utility: ehush

  • Quote

Post by Pythonhead » Sun Aug 29, 2004 7:48 pm

nelchael wrote: Isn't it a potential source for symlink attack?

what if:

Code: Select all

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.
Top
STEDevil
Apprentice
Apprentice
Posts: 156
Joined: Thu Apr 24, 2003 12:42 pm

  • Quote

Post by STEDevil » Sun Aug 29, 2004 8:02 pm

Pythonhead wrote:
Try changing this section:

Code: Select all

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

Code: Select all

        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: Select all

    for s in goodStuff:
        if string.find(text, s) != -1:
                if not ">>> /usr" in s:
                    print text
                    nbrLines += 1
                    break
        else:
            update_spinner()
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Sun Aug 29, 2004 8:30 pm

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

Code: Select all

if not ">>> /usr" in text:
Top
nelchael
Retired Dev
Retired Dev
User avatar
Posts: 1948
Joined: Sat Mar 20, 2004 9:15 am
Location: /dev/drzewo
Contact:
Contact nelchael
Website

Re: New portage utility: ehush

  • Quote

Post by nelchael » Sun Aug 29, 2004 10:02 pm

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]
Top
STEDevil
Apprentice
Apprentice
Posts: 156
Joined: Thu Apr 24, 2003 12:42 pm

  • Quote

Post by STEDevil » Sun Aug 29, 2004 11:51 pm

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

Code: Select all

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
Top
aslocum
Apprentice
Apprentice
Posts: 217
Joined: Fri May 28, 2004 10:30 am
Location: Germany, Frankfurt

  • Quote

Post by aslocum » Mon Aug 30, 2004 7:10 am

nice idea... but some strange output :)

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

Code: Select all

>> 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
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Mon Aug 30, 2004 7:31 am

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?
Top
aslocum
Apprentice
Apprentice
Posts: 217
Joined: Fri May 28, 2004 10:30 am
Location: Germany, Frankfurt

  • Quote

Post by aslocum » Mon Aug 30, 2004 7:33 am

That was Eterm. In rxvt it works fine
Dell Latitude d610 1.6Ghz 1GB
gcc-4.0.3 2.6.15-no3
Reiser4
Top
aslocum
Apprentice
Apprentice
Posts: 217
Joined: Fri May 28, 2004 10:30 am
Location: Germany, Frankfurt

  • Quote

Post by aslocum » Mon Aug 30, 2004 7:41 am

just a (very) little issue using rxvt terminal:

Code: Select all

>>> 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
Top
STEDevil
Apprentice
Apprentice
Posts: 156
Joined: Thu Apr 24, 2003 12:42 pm

  • Quote

Post by STEDevil » Mon Aug 30, 2004 8:55 pm

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

Code: Select all

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?
Top
Pythonhead
Developer
Developer
User avatar
Posts: 1801
Joined: Mon Dec 16, 2002 6:30 pm
Location: Redondo Beach, Republic of Calif.
Contact:
Contact Pythonhead
Website

  • Quote

Post by Pythonhead » Mon Aug 30, 2004 9:15 pm

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: Select all

">>> /usr"
to:

Code: Select all

">>> /"
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.
Top
STEDevil
Apprentice
Apprentice
Posts: 156
Joined: Thu Apr 24, 2003 12:42 pm

  • Quote

Post by STEDevil » Mon Aug 30, 2004 11:25 pm

Pythonhead wrote:

Code: Select all

">>> /"
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)
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.
Top
linux_girl
Apprentice
Apprentice
Posts: 287
Joined: Fri Sep 12, 2003 12:10 am
Contact:
Contact linux_girl
Website

  • Quote

Post by linux_girl » Sat Feb 05, 2005 1:23 am

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: Select all

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

Code: Select all

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
Top
Post Reply

23 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic