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 Previous  1, 2, 3, ... 17, 18, 19  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
YakS
n00b
n00b


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

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

Does it also happen when you do


Code:
eix -S ethereal


instead of -sS ? Because you don't need 2 s since -S does this (see eix -h).

However, i'll pick this bug up, thank you for your report.

Wel'll discuss your suggestion about reverse dependency search.

Also thank you for your suggestion.
_________________
eix
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 2:10 pm    Post subject: Reply with quote

Yes, the "portagedb"-bug occurs with every combination ("nothing", -s, -S, -sS). When using -c it doesn't complain. But for now it doesn't seem to have have any impacts on the search results. I alway get what I expected...
Back to top
View user's profile Send private message
appro
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2003
Posts: 144
Location: Germany/Rosenheim

PostPosted: Sun Jan 30, 2005 11:16 pm    Post subject: Reply with quote

Hi there,
I fixed the -S/-s bug and added some verbose warnings about the keyUndefiend-thingy. I suspect that the reason for your error is a faulty ebuild that has a typo in KEYWORDS .. something like "fppc" instead of "ppc" would generate your error.
It would be nice if you could install the latest cvs-source and check if you get error-messages while doing a eix -u.
_________________
If a packet hits a pocket on a socket on a port, and the bus is interrupted and the interrupt's not caught, then the socket packet pocket has an error to report.
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 31, 2005 1:26 am    Post subject: Reply with quote

The latest CVS version is available here: http://eix.sf.net/eix-cvs-0.1.ebuild
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Mon Jan 31, 2005 2:48 am    Post subject: Reply with quote

Code:
# 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/]
Segmentation fault

It does this with eix-cvs too. Any ideas as to why or what I can do to put up some debug info?

Thx
_________________
The strong must protect the Sweet.
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 31, 2005 6:00 am    Post subject: Reply with quote

HomerSimpson wrote:
Code:
# 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/]
Segmentation fault

It does this with eix-cvs too. Any ideas as to why or what I can do to put up some debug info?

Thx


You could post the last ~10 or 20 lines of an "strace eix -u". strace is a debugging tool and available through portage: emerge dev-util/strace.
If you want, you can post the results on the eix project page.
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


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

PostPosted: Mon Jan 31, 2005 11:33 am    Post subject: Reply with quote

Hi appro,

appro wrote:
It would be nice if you could install the latest cvs-source and check if you get error-messages while doing a eix -u.


Code:

peggy eix-cvs # ls -l /usr/bin/eix
-rwxr-xr-x  1 root root 203848 Jan 31 12:11 /usr/bin/eix
peggy eix-cvs # qpkg -f /usr/bin/eix
app-portage/eix-cvs *
peggy eix-cvs # 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/]
Database updated successfully. 8808 packages.
peggy eix-cvs # eix ethereal
Search results: 1
* net-analyzer/ethereal

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)
     Available versions:  none for ppc
     Installed:           0.10.9-r1
     Homepage:            http://www.ethereal.com/
     Description:         A commercial-quality network protocol analyzer

peggy eix-cvs # eix eix
Search results: 2
* app-portage/eix

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)
     Available versions:  none for ppc
     Installed:           no
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results

* app-portage/eix-cvs

portagedb.cc: Stability is keyUndefined (Probably a typo in the ebuild)
     Available versions:  none for ppc
     Installed:           0.1
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results

peggy eix-cvs #



Grüße nach Rosenheim ;-)
Marcel


Code:

peggy eix-cvs # strace eix eix 2>&1 | tail --lines=42
write(1, "\33[0;0m     Available versions:  "..., 57     Available versions:  none for ppc
) = 57
write(1, "\33[0;0m     Installed:           "..., 41     Installed:           no
) = 41
write(1, "\33[0;0m     Homepage:            "..., 74     Homepage:            http://sourceforge.net/projects/eix
) = 74
write(1, "\33[0;0m     Description:         "..., 105     Description:         Small utility for searching ebuilds with indexing for fast results
) = 105
write(1, "\n", 1
)                       = 1
open("/var/db/pkg/app-portage", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 5 entries */, 4096)    = 152
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
write(1, "\33[0;32m* \33[0;32mapp-portage/eix-"..., 36* app-portage/eix-cvs
) = 36
write(2, "\n", 1
)                       = 1
write(2, "\33[", 2                     = 2
write(2, "1", 11)                        = 1
write(2, ";", 1;)                        = 1
write(2, "35", 235)                       = 2
write(2, "m", 1m)                        = 1
write(2, "portagedb.cc", 12portagedb.cc)            = 12
write(2, ": Stability is keyUndefined (Pro"..., 59: Stability is keyUndefined (Probably a typo in the ebuild))= 59
write(2, "\n", 1
)                       = 1
write(1, "\33[0;0m     Available versions:  "..., 57     Available versions:  none for ppc
) = 57
write(1, "\33[0;0m     Installed:           "..., 42     Installed:           0.1
) = 42
write(1, "\33[0;0m     Homepage:            "..., 74     Homepage:            http://sourceforge.net/projects/eix
) = 74
write(1, "\33[0;0m     Description:         "..., 105     Description:         Small utility for searching ebuilds with indexing for fast results
) = 105
write(1, "\n", 1
)                       = 1
munmap(0x3001d000, 356352)              = 0
munmap(0x30074000, 4096)                = 0
exit_group(0)                           = ?
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


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

PostPosted: Mon Jan 31, 2005 11:40 am    Post subject: Reply with quote

Oh, and it says "none for ppc" at the version. That isn't correct. :?
Back to top
View user's profile Send private message
Imago
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 157
Location: Germany

PostPosted: Mon Jan 31, 2005 1:24 pm    Post subject: Reply with quote

really nice work 8)

just one thing: would it possible to mark versions which comes from an overlay. Similar to the way emerge does it.(... [1])?

CU
Imago
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 31, 2005 1:53 pm    Post subject: Reply with quote

[Imago] wrote:
really nice work 8)

just one thing: would it possible to mark versions which comes from an overlay. Similar to the way emerge does it.(... [1])?

CU
Imago

Thanks for your suggestion. I put it on the to-do list which is currently growing faster than we can work it through due to lots of good ideas from various users.
Back to top
View user's profile Send private message
appro
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2003
Posts: 144
Location: Germany/Rosenheim

PostPosted: Mon Jan 31, 2005 4:22 pm    Post subject: Reply with quote

meyerm,
could you please try this ebuild http://www.fh-rosenheim.de/~emil.beinroth/eix/eix-cvs-20050131_alpha.ebuild
I converted the read/write-code for the db to use c-style FILE*, fread and fwrite. It's faster and cleaner (imho) .. I don't know *exactly* where your bug comes from, but those changes could solve it (since it obviously has something to do with the db-write/read :).

PS: grüße nach münchen *rüberwink* :)
_________________
If a packet hits a pocket on a socket on a port, and the bus is interrupted and the interrupt's not caught, then the socket packet pocket has an error to report.
Back to top
View user's profile Send private message
teilo
Apprentice
Apprentice


Joined: 20 Jun 2003
Posts: 276
Location: Minneapolis, MN

PostPosted: Mon Jan 31, 2005 5:39 pm    Post subject: Reply with quote

appro wrote:
meyerm,
could you please try this ebuild http://www.fh-rosenheim.de/~emil.beinroth/eix/eix-cvs-20050131_alpha.ebuild
I converted the read/write-code for the db to use c-style FILE*, fread and fwrite. It's faster and cleaner (imho) .. I don't know *exactly* where your bug comes from, but those changes could solve it (since it obviously has something to do with the db-write/read :).

PS: grüße nach münchen *rüberwink* :)


I had the segfault also (on x86). This ebuild does not fix the problem.

Here are my observations: If I comment out my PORTAGE_OVERLAY line in make.conf, the problem does not occur, and the indexing completes successfully.

I had some junk in my overlay directory - namely .tar.bz2 archives of various ebuilds that I have unpacked into my overlay directory tree. The segfault seems to occur whenever eix encounters a file in /usr/local/portage or any of its sub-directories, that is not a directory. By deleting these exteraneous files, I was able to successfully index my overlays.

Viele grüße auf Minneapolis.
_________________
Teilo who is called Teilo
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Mon Jan 31, 2005 7:33 pm    Post subject: Reply with quote

Wow, some speed!

Its working very well for me on development-sources-2.6.11-rc2

thanks
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


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

PostPosted: Mon Jan 31, 2005 8:40 pm    Post subject: Reply with quote

appro wrote:
could you please try this ebuild http://www.fh-rosenheim.de/~emil.beinroth/eix/eix-cvs-20050131_alpha.ebuild


Sure

Code:
peggy eix-cvs # 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/]
Database updated successfully. 8808 packages.
peggy eix-cvs # eix eix
Search results: 2
* app-portage/eix
     Available versions:  [-]0.1.2  [-]0.1.3  [-]0.1.4
     Installed:           no
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results

* app-portage/eix-cvs
     Available versions:  ~0.1  ~20050131_alpha
     Installed:           20050131_alpha
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results

peggy eix-cvs # qpkg -f /usr/bin/eix
app-portage/eix-cvs *
peggy eix-cvs #


Well, looks good. 8) Shall I try other things on PPC?


appro wrote:
PS: grüße nach münchen *rüberwink* :)

:D
Back to top
View user's profile Send private message
BastianBalthazarBux
Retired Dev
Retired Dev


Joined: 10 Dec 2004
Posts: 78

PostPosted: Mon Jan 31, 2005 11:21 pm    Post subject: Reply with quote

great app. !!!

Code:
# uname -a ; time eix -s eix
Linux db 2.6.11-rc2-mm1 #4 SMP Sat Jan 29 19:18:39 CET 2005 x86_64 AMD Opteron(tm) Processor 246 AuthenticAMD GNU/Linux
* app-portage/eix
     Available versions:  [-]0.1.2  [-]0.1.3  [-]0.1.4
     Installed:           0.1.4
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results


real    0m0.271s
user    0m0.252s
sys     0m0.019s


please keyword ~amd64
Back to top
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Tue Feb 01, 2005 12:17 am    Post subject: Reply with quote

xororand, thanks for the strace idea. It turns out that the post by teilo was the answer. I deleted all the archives that were not in directories and no segfault!

Thx
_________________
The strong must protect the Sweet.
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: Tue Feb 01, 2005 1:13 am    Post subject: Reply with quote

HomerSimpson wrote:
xororand, thanks for the strace idea. It turns out that the post by teilo was the answer. I deleted all the archives that were not in directories and no segfault!

Thx

Nice to hear that it works now. This should be fixed anyway. I'll implement a fix as soon as I can find the time.

eix-0.2.0_alpha is here

Main changes are
- several bug fixes & major speed improvements compared to 0.1.4 (thanks a lot to appro who joined eix after 0.1.3)
- fuzzy search, e.g. ./eix -f mortsilla -> korilla, mozilla, ...
For more details, consider the ChangeLog: as always, in the tarball and at http://eix.sourceforge.net/ChangeLog
Tarball: Get it here. Until it's on the sourceforge mirrors which usually takes a few hours, portage doesn't find it and you have to copy it manually to $PORTDIR/distfiles
EBuild: http://eix.sourceforge.net/eix-0.2.0_alpha.ebuild.tar.bz2
Back to top
View user's profile Send private message
meyerm
Veteran
Veteran


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

PostPosted: Tue Feb 01, 2005 6:31 pm    Post subject: Reply with quote

Reporting from the PPC front:

Code:

peggy eix # emerge -C eix-cvs
...
peggy eix # emerge -p eix

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] app-portage/eix-0.2.0_alpha
peggy eix # emerge eix
...
peggy eix # 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/]
Error in versions.cc: invalid suffix number in "0.2.0_alpha.ebuild."
Database updated successfully. 8808 packages.
peggy eix # eix eix
Search results: 2
* app-portage/eix
     Available versions:  [-]0.1.2  [-]0.1.3  [-]0.1.4  ~0.2.0_alpha
     Installed:           0.2.0_alpha
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results

* app-portage/eix-cvs
     Available versions:  ~0.1  ~20050131_alpha
     Installed:           no
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results
peggy eix #


Well, so far so good. It seems to work despite of the error with the eix-ebuild itself.

Congrats! The fuzzy search is soo cool! :D
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Tue Feb 01, 2005 8:42 pm    Post subject: Reply with quote

Hei xororand

After emerging eix earlier, all went well ref post above.. however, a few hours later when I tried again (having played with cdb - see http://forums.gentoo.org/viewtopic.php?p=2044998#2044998 - in the meantime) eix failed with a message about /usr/portage/... whereas my portage is in /mnt/hdb9/portage.

I'm afraid the error information was lost, but re-emerging eix and re-running emerge sync allowed eix to work as normal again. I'll make sure of noting the errors if/when it repeats.

regards
Code:
#  time eix -s eix
Search results: 1
* app-portage/eix
     Available versions:  ~0.1.2  ~0.1.3  ~0.1.4  ~0.2.0_alpha
     Installed:           0.2.0_alpha
     Homepage:            http://sourceforge.net/projects/eix
     Description:         Small utility for searching ebuilds with indexing for fast results


real    0m0.037s
user    0m0.020s
sys     0m0.006s
thats as good as instant :-)
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
appro
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2003
Posts: 144
Location: Germany/Rosenheim

PostPosted: Tue Feb 01, 2005 9:48 pm    Post subject: Reply with quote

Cintra,
your problem has been fixed and is included in the ebuild. That's because everything worked fine after the re-emerge :) http://bugs.gentoo.org/show_bug.cgi?id=80318
_________________
If a packet hits a pocket on a socket on a port, and the bus is interrupted and the interrupt's not caught, then the socket packet pocket has an error to report.
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Wed Feb 02, 2005 6:18 am    Post subject: Reply with quote

appro wrote:
Cintra,
your problem has been fixed and is included in the ebuild. That's because everything worked fine after the re-emerge :) http://bugs.gentoo.org/show_bug.cgi?id=80318

Great, thanks! Its a fantastic little app :-)
mvh

Btw after
Code:

# emerge -v eix
Calculating dependencies ...done!
>>> emerge (1 of 1) app-portage/eix-0.2.0_alpha to...

the version number remains:

# eix -v
Error: No search string provided!
Ebuild IndeX Version 0.1.4     <<<<


_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
appro
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2003
Posts: 144
Location: Germany/Rosenheim

PostPosted: Wed Feb 02, 2005 7:33 pm    Post subject: Reply with quote

This little bug, and two other big bugs (segfault and the "double free or corruption" when indexing overlays), have been fixed and a patch is already in portage. Just emerge --sync && emerge -va eix :)
_________________
If a packet hits a pocket on a socket on a port, and the bus is interrupted and the interrupt's not caught, then the socket packet pocket has an error to report.
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sat Feb 05, 2005 1:50 pm    Post subject: Reply with quote

http://bugs.gentoo.org/show_bug.cgi?id=80857
Back to top
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Sun Feb 06, 2005 11:55 am    Post subject: Reply with quote

Great, really fast,

Till today, I used esearch, but eix ROCKS both in searching and updating the database.

Little question. I would like to run "eix -u" after every "emerge sync". The best it would be via some alias. One command for this 2 operations.
So what line I have to put in my .bashrc?

Thanks
Back to top
View user's profile Send private message
DaPhreak
n00b
n00b


Joined: 22 Aug 2004
Posts: 13

PostPosted: Sun Feb 06, 2005 12:13 pm    Post subject: Reply with quote

radfoj wrote:
Great, really fast,

Till today, I used esearch, but eix ROCKS both in searching and updating the database.

Little question. I would like to run "eix -u" after every "emerge sync". The best it would be via some alias. One command for this 2 operations.
So what line I have to put in my .bashrc?

Thanks


You could try
Code:

alias eupdatedb='/usr/bin/emerge --sync && /usr/bin/eix -u'
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 Previous  1, 2, 3, ... 17, 18, 19  Next
Page 2 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