Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eix - Ebuild IndeX (search utility) - 0.2.2
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 17, 18, 19  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
xororand
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 119

PostPosted: Thu Jan 13, 2005 2:06 am    Post subject: eix - Ebuild IndeX (search utility) - 0.2.2 Reply with quote

Hello everybody!

Eix now has its own wiki where it's explained in detail so I don't have to do this here.

Download info:
Project page: http://sourceforge.net/projects/eix
Wiki: http://eixwiki.unfoog.de

Current version in portage: 0.2.2


Last edited by xororand on Tue Apr 12, 2005 12:42 am; edited 21 times in total
Back to top
View user's profile Send private message
xororand
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 119

PostPosted: Mon Jan 17, 2005 6:02 pm    Post subject: Reply with quote

Changelog for 0.1.3:

*** 0.1.3 (2004/01/17)
- Fixed bug: multiple spaces in PORTDIR_OVERLAY (/etc/make.conf) were interpreted as / overlays
- Fixed: Version numbers should finally be sorted properly. Explanation: In 0.1.2 versions were only splitted in [primary, e.g. | 1.2.3][suffix | _alpha5][gentoo-release | -r2] Now, the primary string is also splitted into integers => 2.6.2 < 2.6.10
- Added more detail to the error messages in version.cc (in hopes to resolve kay's problem)

Download info:
EBuild: http://eix.sourceforge.net/eix-0.1.3.ebuild.tar.bz2
Distfile: http://www.schokokeks.org/~wolfgang/eix-0.1.3.tar.bz2

Add: eix-0.1.2 is in portage now! 0.1.3 should follow soon.
Back to top
View user's profile Send private message
feld
Guru
Guru


Joined: 29 Aug 2004
Posts: 593
Location: WI, USA

PostPosted: Tue Jan 18, 2005 8:08 pm    Post subject: Reply with quote

8O Great program! This should be the default for Portage!


Standard Search
Code:

feld@larrydacow /usr/portage/app-portage $ time emerge -s genlop
Searching...                              m
[ Results for search key : genlop ]
[ Applications found : 1 ]

*  app-portage/genlop
      Latest version available: 0.30.2
      Latest version installed: 0.30.2
      Size of downloaded files: 18 kB
      Homepage:    http://pollycoke.org/genlop.html
      Description: A nice emerge.log parser
      License:     GPL-2



real    0m11.218s
user    0m2.492s
sys     0m0.183s



Eix Search
Code:

larrydacow eix # time eix s genlop
* app-portage/genlop
     Available versions:  0.16.3  0.20.2  ~0.30.1  ~0.30.2
     Installed:           0.30.2
     Homepage:            http://pollycoke.org/genlop.html
     Description:         A nice emerge.log parser


real    0m0.341s
user    0m0.313s
sys     0m0.012s



wow.

edit: if you think my system is slow for searching standard way, (i dont know what usual speeds are), I'm running an xp 3000+ with 1 gig ddr 400. I have a 8mb cache 80gb drive i'm running Reiser4 on. (fastest FS i've ever used. It did speed up portage greatly IMHO.)

My hdparm:

Code:

larrydacow folding # hdparm -tT /dev/hdd

/dev/hdd:
 Timing cached reads:   1816 MB in  2.00 seconds = 906.78 MB/sec
 Timing buffered disk reads:  138 MB in  3.01 seconds =  45.85 MB/sec


I really like this program and it WILL be used a LOT.



-Feld
_________________
< bmg505> I think the first line in reiserfsck is

if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); }
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 Jan 18, 2005 11:26 pm    Post subject: Reply with quote

Looking better every release.

Unfortunately overlay support doesn't work for package versions in PORTDIR_OVERLAY but not in PORTDIR.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Wed Jan 19, 2005 7:06 am    Post subject: Reply with quote

How does it compare to esearch?

If I could do without the esync/eupdatedb soup (which is very very long), I would switch right away :D
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
xchris
Advocate
Advocate


Joined: 10 Jul 2003
Posts: 2824

PostPosted: Thu Jan 20, 2005 6:53 am    Post subject: Reply with quote

it's faster!!! by far! (then esearch)
Thank you!!
_________________
while True:Gentoo()
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Thu Jan 20, 2005 8:06 am    Post subject: Reply with quote

I have found a bug, while indexing my /usr/local/portage I get
Code:

altair portage # ls
app-portage  dev-python  media-sound  net-im    net-misc      net-www  sys-kernel
app-shells   media-libs  net-dialup   net-mail  net-wireless  sys-fs   y-base
altair portage # eix u
Updating portage database
Using portage cache: /usr/portage/metadata/cache/
Reading categories
Reading masks
Reading metadata cache
[app] [dev] [games] [gnome] [gnustep] [kde] [mail] [media] [net] [rox] [sci] [sec] [sys] [www] [x11] [xfce]
Reading portage overlays
[/usr/local/portage/]
Unknown category: "y"
altair portage #


where "y" is y-base, the base ebuild for the y graphic system.

See ya
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
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: Thu Jan 20, 2005 3:34 pm    Post subject: Reply with quote

federico wrote:

Reading portage overlays
[/usr/local/portage/]
Unknown category: "y"
altair portage #
[/code]

where "y" is y-base, the base ebuild for the y graphic system.



Did you make up your own category? It should exist in /usr/portage/profiles/categories, or you can add your own in /etc/portage/categories
Back to top
View user's profile Send private message
bludger
Guru
Guru


Joined: 09 Apr 2003
Posts: 389

PostPosted: Fri Jan 21, 2005 5:22 pm    Post subject: Reply with quote

Can eix search for reverse dependencies?
ie. can it do "equery d <package>"
Back to top
View user's profile Send private message
xororand
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 119

PostPosted: Fri Jan 21, 2005 7:52 pm    Post subject: Reply with quote

bludger wrote:
Can eix search for reverse dependencies?
ie. can it do "equery d <package>"

No it can't.

federico wrote:
altair portage # ls
app-portage dev-python media-sound net-im net-misc net-www sys-kernel
app-shells media-libs net-dialup net-mail net-wireless sys-fs y-base
altair portage # eix u
Updating portage database
Using portage cache: /usr/portage/metadata/cache/
Reading categories
Reading masks
Reading metadata cache
[app] [dev] [games] [gnome] [gnustep] [kde] [mail] [media] [net] [rox] [sci] [sec] [sys] [www] [x11] [xfce]
Reading portage overlays
[/usr/local/portage/]
Unknown category: "y"
altair portage #

I'll add support for /etc/portage/categories. Then this shouldn't be a problem any longer.

Regarding the bug pythonhead discovered: Unfortunately I can't reproduce it. Did anyone experience the same problem?
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: Fri Jan 21, 2005 8:28 pm    Post subject: Reply with quote

xororand wrote:

Regarding the bug pythonhead discovered: Unfortunately I can't reproduce it. Did anyone experience the same problem?


Just to be clear, in case anyone else can verify it, this works fine,
when I have the same version in PORTDIR and PORTDIR_OVERLAY:
/usr/portage/app-foo/pkg/pkg-1.0.ebuild
/usr/local/portage/app-foo/pkg/pkg-1.0.ebuild

However if I only have:

/usr/local/portage/app-foo/pkg/pkg-2.0.ebuild

with no 2.0 version in PORTDIR, eix doesn't find PORTDIR_OVERLAY version 2.0.
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 584
Location: WildWestwoods

PostPosted: Fri Jan 21, 2005 10:14 pm    Post subject: Reply with quote

lightning fast. I like it!
Back to top
View user's profile Send private message
dfy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2004
Posts: 79

PostPosted: Fri Jan 21, 2005 11:33 pm    Post subject: Reply with quote

Code:

(00:32:00) root /usr/portage > eix u
Updating portage database
Using portage cache: /usr/portage/metadata/cache/
Reading categories
Reading masks
Reading metadata cache
[app] [dev] [games] [gnome] [gnustep] [kde] [mail] [media] [net] [rox] [sci] [sec] [sys] [www] [x11] [xfce]
Reading portage overlays
[/usr/local/portage/]
*** glibc detected *** double free or corruption (fasttop): 0x08214db0 ***
Aborted
(00:32:03) root /usr/portage >


What does that mean :( ?
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: Sat Jan 22, 2005 2:40 am    Post subject: Reply with quote

I think I narrowed down the overlay problem:

eix only recognizes double quotes in make.conf

This works:
Code:
PORTDIR_OVERLAY="/usr/local/portage"


These two are valid for portage but fail with eix:
Code:
PORTDIR_OVERLAY='/usr/local/portage'
PORTDIR_OVERLAY=/usr/local/portage
Back to top
View user's profile Send private message
xororand
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 119

PostPosted: Sat Jan 22, 2005 3:35 am    Post subject: Reply with quote

Pythonhead wrote:
I think I narrowed down the overlay problem:

eix only recognizes double quotes in make.conf

This works:
Code:
PORTDIR_OVERLAY="/usr/local/portage"


These two are valid for portage but fail with eix:
Code:
PORTDIR_OVERLAY='/usr/local/portage'
PORTDIR_OVERLAY=/usr/local/portage


Thanks a lot for your debugging! I've enhanced the make.conf parser. It does interpret multi-line variables and variables without quotation marks correctly now.

User-defined categories in /etc/portage/categories now are recognized.
Back to top
View user's profile Send private message
xororand
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 119

PostPosted: Sat Jan 22, 2005 5:03 am    Post subject: Reply with quote

Here's the new version 0.1.4:

EBuild: http://eix.sf.net/eix-0.1.4.ebuild.tar.bz2
Distfile: http://prdownloads.sourceforge.net/eix/eix-0.1.4.tar.bz2?download

Installation of the ebuild:
Code:
tar xfvj eix-0.1.4.ebuild.tar.bz2 -C /usr/local/portage


Change log relative to 0.1.3:
Code:
*** 0.1.4 (2004/01/22)

- added: multi-line entries in ebuild and/or /etc/make.conf are parsed
variables declared without double quotation marks are recognized correctly as well as tab characters in PORTDIR_OVERLAY

- versions which are not tested on your architecture are now shown by default (previously: only with -v). I changed the prefix for such versions from [M~] to [-]
   
- cleaned the command line parser and implemented the quasi-standard getops() function which is used by almost any linux program
 eix -s ist now default, so you can simply type "eix REGEXP" to search for packages.
(author: appro)


The new syntax:
eix now understands parameters like most unix programs, i.e. you update the database with eix -u. no parameter, for example
Code:
eix gcc
assumes -s and searches for a package. You can use multiple options after one - now, e.g. eix -nvS gcc.

comment to dfy's bug report:
Quote:
*** glibc detected *** double free or corruption (fasttop): 0x08214db0 ***

sorry, i couldn't find out what's causing this. i'll add more detailed error messages in the next version.

federico: thanks for the report. it is corrected now: eix reads /etc/portage/categories.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Sat Jan 22, 2005 10:42 am    Post subject: Reply with quote

stahlsau wrote:
lightning fast. I like it!
Well, on the searching part, I disagree:
Code:
# time eix s eix
* app-portage/eix
     Available versions:  ~0.1.2  ~0.1.3
     Installed:           0.1.3
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results


real    0m3.802s
user    0m2.978s
sys     0m0.039s
Code:
# time esearch eix
[ Results for search key : eix ]
[ Applications found : 1 ]

*  app-portage/eix
      Latest version available: 0.1.3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 170 kB
      Homepage:    http://sourceforge.net/projects/eix
      Description: Small utility for searching ebuilds with indexing for fast results
      License:     GPL-2



real    0m1.171s
user    0m0.476s
sys     0m0.059s
Still, nothing beats this:
Code:
# time ls /usr/portage/*/*eix* -d
/usr/portage/app-portage/eix  /usr/portage/distfiles/eix-0.1.3.tar.bz2

real    0m0.167s
user    0m0.019s
sys     0m0.023s
:P
But for updating the database, there's no comparaisons. I wont do the time with eupdatedb because it monopolizes the CPU far too long.

So, I guess I can afford waiting 2 more seconds for the price of a fast database update :D

uh, where's the esearch database located (so I can delete it)?
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
slashdevslashtty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2004
Posts: 119
Location: 97219

PostPosted: Sun Jan 23, 2005 1:56 am    Post subject: Reply with quote

tecknojunky wrote:
uh, where's the esearch database located (so I can delete it)?


emerge outputs the line:
Code:
 * The database file will be located at /var/cache/eix

during post install
Back to top
View user's profile Send private message
xororand
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 119

PostPosted: Sun Jan 23, 2005 3:36 am    Post subject: Reply with quote

I think tecknojunky wanted to delete the esearch database which is located at /var/cache/edb/esearchdb.py
/var/cache/edb/esearchdb.pyc
Back to top
View user's profile Send private message
YakS
n00b
n00b


Joined: 16 Jul 2003
Posts: 17
Location: Zurich, Switzerland

PostPosted: Sun Jan 23, 2005 12:18 pm    Post subject: Reply with quote

A manpage is coming soon. For usage information please use

Code:
bash-2.05b$ eix -h

Usage: eix [options] [command] <search strings>
Options:  -n, --nocolor      Do not use ANSI color codes
          -c, --compact      Compact search results
          -v, --verbose      Verbose search results
Commands: -u, --update       Updates the database in /var/cache/eix
          -s, --search       Search for ebuilds (posix regex) (default command)
          -S, --searchdesc   Search for ebuilds + descriptions (posix regex)


until then.
_________________
eix
Back to top
View user's profile Send private message
olivierweb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2002
Posts: 113
Location: France

PostPosted: Sun Jan 23, 2005 12:51 pm    Post subject: compilation problem Reply with quote

I can't emerge eix :
Code:
Dans le fichier inclus à partir de globals.cc:26:
/usr/include/regex.h:362: « size_t » est utilisé comme type, mais n'est pas
   défini comme type.
/usr/include/regex.h:461: spécificateur de type omis pour le paramètre « size_t
   »
/usr/include/regex.h:461: erreur de syntaxes avantle jeton « , »
/usr/include/regex.h:554: spécificateur de type omis pour le paramètre « size_t
   »
/usr/include/regex.h:554: erreur de syntaxes avantle jeton « , »
/usr/include/regex.h:556: erreur de syntaxes avantle jeton « ( »
make[2]: *** [globals.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
make[2]: Leaving directory `/var/tmp/portage/eix-0.1.4/work/eix-0.1.4/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/eix-0.1.4/work/eix-0.1.4'
make: *** [all] Erreur 2


These are the versions of gcc 3.2.3-r1 and glibc 2.3.2-r3.

I emerge eix on another system which has gcc 3.3.4-r1 and glibc 2.3.4.20040808-r1

If you have another solution of emerging gcc 3.3.4, it could be great.

Thanks

Olivier
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Mon Jan 24, 2005 2:20 am    Post subject: Reply with quote

xororand wrote:
I think tecknojunky wanted to delete the esearch database which is located at /var/cache/edb/esearchdb.py
/var/cache/edb/esearchdb.pyc
thanks
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Mon Jan 24, 2005 2:42 pm    Post subject: Reply with quote

[quote="xororand"]
I'll add support for /etc/portage/categories. Then this shouldn't be a problem any longer.

Hope to see this feature soon
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
xororand
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 119

PostPosted: Mon Jan 24, 2005 5:25 pm    Post subject: Reply with quote

[quote="federico"]
xororand wrote:

I'll add support for /etc/portage/categories. Then this shouldn't be a problem any longer.

Hope to see this feature soon

It's already in the portage with this feature. http://eix.sf.net/ChangeLog
You have to define custom categories in /etc/portage/categories according to the portage manual.
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Sun Jan 30, 2005 1:27 pm    Post subject: Reply with quote

eix is currently masked "~x86" only. I just installed it on my PPC and can confirm it compiles here too. So a "~ppc" can be added at least :-)

But it has a problem during runtime which doesn't happen with x86.

PPC wrote:

peggy ~ # eix -sS ethereal
* net-analyzer/ethereal
!--PORTAGEDB-BUG--keyUndefined--!!--PORTAGEDB-BUG--keyUndefined--!!--PORTAGEDB-BUG--
keyUndefined--!!--PORTAGEDB-BUG--keyUndefined--!!--PORTAGEDB-BUG--keyUndefined--!!--PORTAGEDB-BUG--
keyUndefined--!

Available versions: none for ppc
Installed: 0.10.9-r1
Homepage: http://www.ethereal.com/
Description: A commercial-quality network protocol analyzer



Do you need any more informations?

BTW: Since a reverse dependency search isn't included, is this feature planed?
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
Goto page 1, 2, 3 ... 17, 18, 19  Next
Page 1 of 19

 
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