View previous topic :: View next topic |
Should Ebuilds update whatis database? |
Yes |
|
78% |
[ 18 ] |
No, it's up to the user |
|
21% |
[ 5 ] |
|
Total Votes : 23 |
|
Author |
Message |
ClaesBas n00b
Joined: 20 Jul 2002 Posts: 38 Location: Stockholm
|
Posted: Tue Feb 18, 2003 9:52 am Post subject: The Gentoo way of "whatis database"? |
|
|
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 |
|
|
Carlos Guru
Joined: 07 Aug 2002 Posts: 458 Location: Providence, RI
|
Posted: Tue Feb 18, 2003 10:06 am Post subject: |
|
|
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 |
|
|
ClaesBas n00b
Joined: 20 Jul 2002 Posts: 38 Location: Stockholm
|
Posted: Tue Feb 18, 2003 10:17 am Post subject: |
|
|
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 |
|
|
Carlos Guru
Joined: 07 Aug 2002 Posts: 458 Location: Providence, RI
|
Posted: Tue Feb 18, 2003 10:41 am Post subject: |
|
|
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 |
|
|
telex4 l33t
Joined: 21 Sep 2002 Posts: 704 Location: Reading, UK
|
Posted: Thu Feb 20, 2003 11:19 am Post subject: |
|
|
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 |
|
|
Yazmon Tux's lil' helper
Joined: 13 Jan 2003 Posts: 84
|
Posted: Thu Feb 20, 2003 2:08 pm Post subject: |
|
|
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 |
|
|
charlieg Advocate
Joined: 30 Jul 2002 Posts: 2149 Location: Manchester UK
|
Posted: Thu Feb 20, 2003 4:28 pm Post subject: |
|
|
WTF is 'makewhatis'? _________________ Want Free games?
Free Gamer - open source games list & commentary
Open source web-enabled rich UI platform: Vexi |
|
Back to top |
|
|
telex4 l33t
Joined: 21 Sep 2002 Posts: 704 Location: Reading, UK
|
Posted: Thu Feb 20, 2003 7:33 pm Post subject: |
|
|
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 |
|
|
|