Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The Gentoo way of "whatis database"?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

Should Ebuilds update whatis database?
Yes
78%
 78%  [ 18 ]
No, it's up to the user
21%
 21%  [ 5 ]
Total Votes : 23

Author Message
ClaesBas
n00b
n00b


Joined: 20 Jul 2002
Posts: 38
Location: Stockholm

PostPosted: Tue Feb 18, 2003 9:52 am    Post subject: The Gentoo way of "whatis database"? Reply with quote

I wonder how the Gentoo "Gurus" have thougt about the whatis database...

To be able to do apropos or whatis the whatis database must have been build before (ie makewhatis).

Shouldn't every ebuild containing a man-page do a makewhatis?
If not should every user have to do it manualy (or from cron)?

Just an wondering....
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Tue Feb 18, 2003 10:06 am    Post subject: Reply with quote

makewhatis takes forever, and it's done from scratch each time so it would be a colossal waste if, in emerging nine packages, Portage did makewhatis after each one. Sure, you could tell Portage to do makewhatis only after it's emerged each package passed to it, but what if you're doing them one by one for whatever reason?

There's also the fact that when you're using whatis and apropos, you're generally searching for tool foo to do task bar, knowing bar. Since you're the one emerging package foo, you're probably going to do it too, so doing makewhatis after each package doesn't make so much sense.

Having a cron job seems like the best way for me; I do it daily around 4 am.
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
ClaesBas
n00b
n00b


Joined: 20 Jul 2002
Posts: 38
Location: Stockholm

PostPosted: Tue Feb 18, 2003 10:17 am    Post subject: Reply with quote

I'm no expert at the makewhatis command but it looks like it has an -u pararmeter for updates of new pages and -s for sections and so on...

How does other distros handle it (RPM for example)?
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Tue Feb 18, 2003 10:41 am    Post subject: Reply with quote

You're right; 'makewhatis -u' takes mere seconds. I'm changing my vote.
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
telex4
l33t
l33t


Joined: 21 Sep 2002
Posts: 704
Location: Reading, UK

PostPosted: Thu Feb 20, 2003 11:19 am    Post subject: Reply with quote

Absolutely. Yes. Definitely :)

It's a real pain having to remember to do "makewhatis" after every installation, and many people own't even realise it needs to be done!
Back to top
View user's profile Send private message
Yazmon
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jan 2003
Posts: 84

PostPosted: Thu Feb 20, 2003 2:08 pm    Post subject: Reply with quote

telex4 wrote:
Absolutely. Yes. Definitely :)

It's a real pain having to remember to do "makewhatis" after every installation, and many people own't even realise it needs to be done!


Heh, like me, whats it do? :)
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Thu Feb 20, 2003 4:28 pm    Post subject: Reply with quote

WTF is 'makewhatis'?
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
telex4
l33t
l33t


Joined: 21 Sep 2002
Posts: 704
Location: Reading, UK

PostPosted: Thu Feb 20, 2003 7:33 pm    Post subject: Reply with quote

makewhatis makes the database for tools like apropos and whatis from all of your manfiles. Apropos can then tell you programs whose manfiles include your specified word, and whatis prints out the summary of the program you specify.

They're cool tools :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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